tx · 7fD6oRtzNkHJ7eQCB8ea6S7EmwnthUWpPWcJ9HbSJ9S8 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm: -0.10400000 Waves 2023.11.13 00:24 [2840655] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves
{ "type": 13, "id": "7fD6oRtzNkHJ7eQCB8ea6S7EmwnthUWpPWcJ9HbSJ9S8", "fee": 10400000, "feeAssetId": null, "timestamp": 1699824247136, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "4SYEZkoxmZaRhXyKDRbUnfmPf2ckU95Qwn9zwrLECvjK94o33JjrbzuLwUr5U8TCFNQn8w2TYtYkj1rqM7tELWbY" ], "script": "base64:BgLgAQgCEgMKAQgSBAoCCAESAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASABIECgICAhIAEgMKAQgSBAoCCAgSAwoBGBIECgIICBIECgIICBIFCgMICAgSBAoCCAgSBwoFAQEBAQESAwoBARIFCgMBAQgSAwoBCBIDCgEIEgASBAoCCAESBAoCCAESAwoBCBIECgIICBIDCgEIEgASABIDCgEIEgMKAQgSBgoECAEIARIAEgQKAgICEgQKAgICEgASAwoBCBIApgIACURBWU1JTExJUwCAuJkpARRrZXlMYXN0QXJiVGltZUJ5VXNlcgEEYWRkcgkArAICAhBsYXN0QXJiVGltZVVzZXJfBQRhZGRyARprZXlBY3Jlc1N0YWtlZEFtb3VudEJ5VXNlcgEEYWRkcgkArAICAhhhY3Jlc1N0YWtlZEFtb3VudEJ5VXNlcl8FBGFkZHIABlNDQUxFOACAwtcvAAx4cExldmVsU2NhbGUAgBkAD3hwTGV2ZWxSZWNpcFBvdwCgHwASbnVtUG9pbnRzT25MZXZlbFVwAAMADnJvYmJlcnlDb3N0TWluAI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ElkCQEOU2NyaXB0VHJhbnNmZXIDBQ9lY29ub215Q29udHJhY3QIBQNwbXQGYW1vdW50BQt1c2R0QXNzZXRJZAkAlAoCCQDYBAEFB2Fzc2V0SWQFBWNvbG9yAKG24gA=", "height": 2840655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GdBmar5LDBNngKGezh1CvQkUhdmduvM9t1HhNWbUK8i Next: B4NhghdQFuZ21y1b6En9kfY7Noo1kNA2YPBneFYxqHJH Diff:
Old | New | Differences | |
---|---|---|---|
201 | 201 | ||
202 | 202 | let ACRES_FOR_DELIVERY_ATTEMPT = 50000000 | |
203 | 203 | ||
204 | - | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3"] | |
204 | + | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3", "CaboomDog L1", "CaboomDog L2", "CaboomDog L3"] | |
205 | 205 | ||
206 | 206 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
207 | 207 | ||
209 | 209 | ||
210 | 210 | let fortAllowedProds = [15, 16, 17, 18, 19, 20] | |
211 | 211 | ||
212 | - | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
212 | + | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_", "23_23_5_20_23_6_35_2_0_0,0,0,0,0,0,0_", "23_23_5_20_23_6_70_2_0_0,0,0,0,0,0,0_", "23_23_5_20_23_6_105_2_0_0,0,0,0,0,0,0_"] | |
213 | 213 | ||
214 | 214 | let rIdxCoeff = 6 | |
215 | 215 | ||
411 | 411 | ||
412 | 412 | let KS_ALLOW_BIG_INFRA_MERGE = false | |
413 | 413 | ||
414 | - | let KS_ALLOW_ROBO_DUCKS = | |
414 | + | let KS_ALLOW_ROBO_DUCKS = false | |
415 | 415 | ||
416 | 416 | let DAY_MILLIS = 86400000 | |
417 | 417 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let DAYMILLIS = 86400000 | |
5 | 5 | ||
6 | 6 | func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | let SCALE8 = 100000000 | |
13 | 13 | ||
14 | 14 | let xpLevelScale = 3200 | |
15 | 15 | ||
16 | 16 | let xpLevelRecipPow = 4000 | |
17 | 17 | ||
18 | 18 | let numPointsOnLevelUp = 3 | |
19 | 19 | ||
20 | 20 | let robberyCostMin = 100000000 | |
21 | 21 | ||
22 | 22 | let robberyCooldownCoeff = 400 | |
23 | 23 | ||
24 | 24 | let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"] | |
25 | 25 | ||
26 | 26 | let charStrength = 0 | |
27 | 27 | ||
28 | 28 | let charAccuracy = 1 | |
29 | 29 | ||
30 | 30 | let charIntellect = 2 | |
31 | 31 | ||
32 | 32 | let charEndurance = 3 | |
33 | 33 | ||
34 | 34 | let charDexterity = 4 | |
35 | 35 | ||
36 | 36 | let segBackpack = 0 | |
37 | 37 | ||
38 | 38 | let NUMSEGMENTS = 6 | |
39 | 39 | ||
40 | 40 | let NUMMAINAUX = 2 | |
41 | 41 | ||
42 | 42 | let MAXSLOTS = 2 | |
43 | 43 | ||
44 | 44 | let MAXPRODINSLOT = 30 | |
45 | 45 | ||
46 | 46 | let landRobCooldowns = [0, 600000, 900000, 43200000, 21600000] | |
47 | 47 | ||
48 | 48 | let MIN_RES_TO_ROB = 20000000 | |
49 | 49 | ||
50 | 50 | let robIdxLocked = 1 | |
51 | 51 | ||
52 | 52 | let duckIdxFree = 0 | |
53 | 53 | ||
54 | 54 | let duckIdxPreparing = 1 | |
55 | 55 | ||
56 | 56 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyUserXP (addr) = ("userXP_" + addr) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keySavedHealth (duckAssetId) = ("savedHealth_" + duckAssetId) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keySavedLocation (duckAssetId) = ("savedLocation_" + duckAssetId) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyDuckBuffs (duckAssetId) = ("duckBuffs_" + duckAssetId) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyLastRobberyTimeByDuck (duckAssetId) = ("lastRobberyTime_" + duckAssetId) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyLastRobberyCostByDuck (duckAssetId) = ("lastRobberyCost_" + duckAssetId) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyLandRobberyState (landAssetId) = ("landRobberyState_" + landAssetId) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyLandCooldownETA (landAssetId) = ("landCooldownETA_" + landAssetId) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyDuckRobberyState (duckAssetId) = ("duckRobberyState_" + duckAssetId) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyLockedLandByDuck (duckAssetId) = ("lockedLandByDuck_" + duckAssetId) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyDeliveryDelayByDuck (duckAssetId) = ("deliveryDelayByDuck_" + duckAssetId) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyUserDeliveryCount (addr) = ("userDeliveryCount_" + addr) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyUserLastDeliveryDay (addr) = ("userLastDeliveryDay_" + addr) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | let xpClaim = 10000 | |
120 | 120 | ||
121 | 121 | let xpSuccessFlight = 10000 | |
122 | 122 | ||
123 | 123 | let xpFailFlight = 2000 | |
124 | 124 | ||
125 | 125 | let xpCallES = 100000 | |
126 | 126 | ||
127 | 127 | let xpCustomName = 1000000 | |
128 | 128 | ||
129 | 129 | let xpNewSLand = 5000000 | |
130 | 130 | ||
131 | 131 | let xpUpgradeInfra = 10000 | |
132 | 132 | ||
133 | 133 | let xpMerge = 1000000 | |
134 | 134 | ||
135 | 135 | let xpOnboard = 1000000 | |
136 | 136 | ||
137 | 137 | let xpHeal = 10000 | |
138 | 138 | ||
139 | 139 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func maxHealth (level) = (100 + level) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func levelUp (currLevel,newXP) = { | |
146 | 146 | let newLevel = levelByXP(newXP) | |
147 | 147 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getDuckStats (stakingContract,duckAssetId,buffEffect,forceBuffs) = { | |
152 | 152 | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
153 | 153 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
154 | 154 | let health = valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHealth(lvl)) | |
155 | 155 | let stateBuffs = split(valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0"), "_") | |
156 | 156 | ([parseIntValue(chars[charStrength]), parseIntValue(chars[charAccuracy]), parseIntValue(chars[charIntellect]), parseIntValue(chars[charEndurance]), parseIntValue(chars[charDexterity]), lvl, health] ++ (if (forceBuffs) | |
157 | 157 | then [buffEffect, buffEffect, buffEffect, buffEffect, buffEffect] | |
158 | 158 | else [parseIntValue(stateBuffs[charStrength]), parseIntValue(stateBuffs[charAccuracy]), parseIntValue(stateBuffs[charIntellect]), parseIntValue(stateBuffs[charEndurance]), parseIntValue(stateBuffs[charDexterity])])) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func getRobberyData (stakingContract,duckAssetId) = { | |
163 | 163 | let lastRobCost = valueOrElse(getInteger(stakingContract, keyLastRobberyCostByDuck(duckAssetId)), 0) | |
164 | 164 | let lastRobTime = valueOrElse(getInteger(stakingContract, keyLastRobberyTimeByDuck(duckAssetId)), 0) | |
165 | 165 | let now = lastBlock.timestamp | |
166 | 166 | let robCost = max([robberyCostMin, (lastRobCost - (robberyCooldownCoeff * (now - lastRobTime)))]) | |
167 | 167 | let duckState = valueOrElse(getInteger(stakingContract, keyDuckRobberyState(duckAssetId)), 0) | |
168 | 168 | let lockedLand = valueOrElse(getString(stakingContract, keyLockedLandByDuck(duckAssetId)), "") | |
169 | 169 | let landETA = valueOrElse(getInteger(stakingContract, keyLandCooldownETA(lockedLand)), 0) | |
170 | 170 | $Tuple5(robCost, lastRobTime, duckState, lockedLand, landETA) | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | let LANDPREFIX = "LAND" | |
175 | 175 | ||
176 | 176 | let DUCKPREFIX = "DUCK" | |
177 | 177 | ||
178 | 178 | let ROBO_PREFIX = "ROBO" | |
179 | 179 | ||
180 | 180 | let ARTPRESALE = "PRESALE" | |
181 | 181 | ||
182 | 182 | let NUMRES = 6 | |
183 | 183 | ||
184 | 184 | let MAX_LANDS_STAKED_BY_USER = 25 | |
185 | 185 | ||
186 | 186 | let DAILYRESBYPIECE = 3456000 | |
187 | 187 | ||
188 | 188 | let WHMULTIPLIER = 10000000000 | |
189 | 189 | ||
190 | 190 | let DEFAULTLOCATION = "Africa_F_Africa" | |
191 | 191 | ||
192 | 192 | let RESOURCEPRICEMIN = 39637 | |
193 | 193 | ||
194 | 194 | let ESSELLCOEF = 10 | |
195 | 195 | ||
196 | 196 | let MIN_USDT_FEE_DELIVERY = 50000 | |
197 | 197 | ||
198 | 198 | let TEN_MINUTES_MILLIS = 600000 | |
199 | 199 | ||
200 | 200 | let ALLOWED_FREE_DELIVERIES = 1 | |
201 | 201 | ||
202 | 202 | let ACRES_FOR_DELIVERY_ATTEMPT = 50000000 | |
203 | 203 | ||
204 | - | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3"] | |
204 | + | let prodTypes = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3", "Mine L1", "Mine L2", "Mine L3", "Trap L1", "Trap L2", "Trap L3", "CaboomDog L1", "CaboomDog L2", "CaboomDog L3"] | |
205 | 205 | ||
206 | 206 | let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
207 | 207 | ||
208 | 208 | let COEFF2MAT = 10000000 | |
209 | 209 | ||
210 | 210 | let fortAllowedProds = [15, 16, 17, 18, 19, 20] | |
211 | 211 | ||
212 | - | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
212 | + | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_", "23_23_5_20_23_6_35_2_0_0,0,0,0,0,0,0_", "23_23_5_20_23_6_70_2_0_0,0,0,0,0,0,0_", "23_23_5_20_23_6_105_2_0_0,0,0,0,0,0,0_"] | |
213 | 213 | ||
214 | 214 | let rIdxCoeff = 6 | |
215 | 215 | ||
216 | 216 | let rIdxEffect = 8 | |
217 | 217 | ||
218 | 218 | let rIdxRequirements = 9 | |
219 | 219 | ||
220 | 220 | let rIdxSlots = 10 | |
221 | 221 | ||
222 | 222 | let PRODUCTPKGSIZE = 10 | |
223 | 223 | ||
224 | 224 | let whIdxLevels = 0 | |
225 | 225 | ||
226 | 226 | let whIdxRes = 1 | |
227 | 227 | ||
228 | 228 | let whIdxMat = 2 | |
229 | 229 | ||
230 | 230 | let whIdxProd = 3 | |
231 | 231 | ||
232 | 232 | let whIdxLOFT = 4 | |
233 | 233 | ||
234 | 234 | let volLocked = 0 | |
235 | 235 | ||
236 | 236 | let volOccupied = 1 | |
237 | 237 | ||
238 | 238 | let volFree = 2 | |
239 | 239 | ||
240 | 240 | let volTotal = 3 | |
241 | 241 | ||
242 | 242 | let bpIdxLevel = 0 | |
243 | 243 | ||
244 | 244 | let bpIdxRes = 1 | |
245 | 245 | ||
246 | 246 | let bpIdxMat = 2 | |
247 | 247 | ||
248 | 248 | let bpIdxProd = 3 | |
249 | 249 | ||
250 | 250 | let locIdxContinent = 0 | |
251 | 251 | ||
252 | 252 | let locIdxType = 1 | |
253 | 253 | ||
254 | 254 | let locIdxId = 2 | |
255 | 255 | ||
256 | 256 | func keyLandAssetIdToOwner (assetId) = ("no_" + assetId) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func keyLandAssetIdToCustomName (assetId) = ("lcna_" + assetId) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func keyStakedTimeByAssetId (assetId) = ("st_" + assetId) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["las", type, assetId], "_") | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("sttao_" + nftType) + "_") + assetId) + "_") + ownerAddr) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func keyWarehouseByLand (landAssetId) = ("wh_" + landAssetId) | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func keyFortificationsByLand (landAssetId) = ("fortifications_" + landAssetId) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId) | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | let deliveryFundKey = "deliveryFund" | |
317 | 317 | ||
318 | 318 | let deliveryLockedKey = "deliveryLocked" | |
319 | 319 | ||
320 | 320 | let lastTourIdKey = "%s__lastTourId" | |
321 | 321 | ||
322 | 322 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func keyBestResultByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__bestResultByTourAndDuck", toString(tId), duckAssetId], "__") | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | let idxStatic = 0 | |
332 | 332 | ||
333 | 333 | let idxDynamic = 1 | |
334 | 334 | ||
335 | 335 | let tStaticEnd = 6 | |
336 | 336 | ||
337 | 337 | let tDynamicStatus = 1 | |
338 | 338 | ||
339 | 339 | func getTourData (tourContract,tId) = { | |
340 | 340 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
341 | 341 | let dynamic = split_4C(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
342 | 342 | [static, dynamic] | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | func isInTournament (tourContract,location) = { | |
347 | 347 | let lastId = valueOrElse(getInteger(tourContract, lastTourIdKey), 0) | |
348 | 348 | let loc = split(location, "_") | |
349 | 349 | let now = lastBlock.timestamp | |
350 | 350 | let tData = getTourData(tourContract, lastId) | |
351 | 351 | let static = tData[idxStatic] | |
352 | 352 | let dynamic = tData[idxDynamic] | |
353 | 353 | if (if (if ((loc[locIdxType] == "T")) | |
354 | 354 | then (parseIntValue(loc[locIdxContinent]) == lastId) | |
355 | 355 | else false) | |
356 | 356 | then (dynamic[tDynamicStatus] == "INPROGRESS") | |
357 | 357 | else false) | |
358 | 358 | then (parseIntValue(static[tStaticEnd]) > now) | |
359 | 359 | else false | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func isInDelivery (location) = { | |
364 | 364 | let loc = split(location, "_") | |
365 | 365 | let now = lastBlock.timestamp | |
366 | 366 | let startTime = parseIntValue(loc[locIdxContinent]) | |
367 | 367 | let distance = parseIntValue(loc[locIdxId]) | |
368 | 368 | if (if ((loc[locIdxType] == "D")) | |
369 | 369 | then ((startTime + TEN_MINUTES_MILLIS) > now) | |
370 | 370 | else false) | |
371 | 371 | then (3 >= distance) | |
372 | 372 | else false | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func isUsualLocation (location) = { | |
377 | 377 | let locType = split(location, "_")[locIdxType] | |
378 | 378 | if ((locType != "T")) | |
379 | 379 | then (locType != "D") | |
380 | 380 | else false | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | func onMission (tourContract,location) = { | |
385 | 385 | let lastId = valueOrElse(getInteger(tourContract, lastTourIdKey), 0) | |
386 | 386 | let loc = split(location, "_") | |
387 | 387 | let now = lastBlock.timestamp | |
388 | 388 | let tData = getTourData(tourContract, lastId) | |
389 | 389 | let static = tData[idxStatic] | |
390 | 390 | let dynamic = tData[idxDynamic] | |
391 | 391 | let locType = loc[locIdxType] | |
392 | 392 | if ((locType == "D")) | |
393 | 393 | then true | |
394 | 394 | else if (if (if ((loc[locIdxType] == "T")) | |
395 | 395 | then (parseIntValue(loc[locIdxContinent]) == lastId) | |
396 | 396 | else false) | |
397 | 397 | then (dynamic[tDynamicStatus] == "INPROGRESS") | |
398 | 398 | else false) | |
399 | 399 | then (parseIntValue(static[tStaticEnd]) > now) | |
400 | 400 | else false | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | func cheatAttempt (oldLoc,newLoc,cheatCase) = throw(((((("Cheat attempt: oldLoc=" + oldLoc) + ", newLoc=") + newLoc) + ", case=") + toString(cheatCase))) | |
408 | 408 | ||
409 | 409 | ||
410 | 410 | let KS_SEPARATE_PUBLIC_KEY = false | |
411 | 411 | ||
412 | 412 | let KS_ALLOW_BIG_INFRA_MERGE = false | |
413 | 413 | ||
414 | - | let KS_ALLOW_ROBO_DUCKS = | |
414 | + | let KS_ALLOW_ROBO_DUCKS = false | |
415 | 415 | ||
416 | 416 | let DAY_MILLIS = 86400000 | |
417 | 417 | ||
418 | 418 | let chain = take(drop(this.bytes, 1), 1) | |
419 | 419 | ||
420 | 420 | let usdtAssetId = match chain { | |
421 | 421 | case _ => | |
422 | 422 | if ((base58'2W' == $match0)) | |
423 | 423 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
424 | 424 | else if ((base58'2T' == $match0)) | |
425 | 425 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
426 | 426 | else throw("Unknown chain") | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | let defaultRestAddressStr = match chain { | |
430 | 430 | case _ => | |
431 | 431 | if ((base58'2W' == $match0)) | |
432 | 432 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
433 | 433 | else if ((base58'2T' == $match0)) | |
434 | 434 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
435 | 435 | else throw("Unknown chain") | |
436 | 436 | } | |
437 | 437 | ||
438 | 438 | let InfraUpgradeCostS = match chain { | |
439 | 439 | case _ => | |
440 | 440 | if ((base58'2W' == $match0)) | |
441 | 441 | then 10000000000 | |
442 | 442 | else if ((base58'2T' == $match0)) | |
443 | 443 | then 100000000 | |
444 | 444 | else throw("Unknown chain") | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | let arbitrageDelay = match chain { | |
448 | 448 | case _ => | |
449 | 449 | if ((base58'2W' == $match0)) | |
450 | 450 | then DAY_MILLIS | |
451 | 451 | else if ((base58'2T' == $match0)) | |
452 | 452 | then 60000 | |
453 | 453 | else throw("Unknown chain") | |
454 | 454 | } | |
455 | 455 | ||
456 | 456 | let DELIVERY_PUNISHMENT = match chain { | |
457 | 457 | case _ => | |
458 | 458 | if ((base58'2W' == $match0)) | |
459 | 459 | then 10800000 | |
460 | 460 | else if ((base58'2T' == $match0)) | |
461 | 461 | then 900000 | |
462 | 462 | else throw("Unknown chain") | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | let SEP = "__" | |
466 | 466 | ||
467 | 467 | let MULT6 = 1000000 | |
468 | 468 | ||
469 | 469 | let MULT8 = 100000000 | |
470 | 470 | ||
471 | 471 | let SSIZE = 25 | |
472 | 472 | ||
473 | 473 | let MSIZE = 100 | |
474 | 474 | ||
475 | 475 | let LSIZE = 225 | |
476 | 476 | ||
477 | 477 | let XLSIZE = 400 | |
478 | 478 | ||
479 | 479 | let XXLSIZE = 625 | |
480 | 480 | ||
481 | 481 | let ITER6 = [0, 1, 2, 3, 4, 5] | |
482 | 482 | ||
483 | 483 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | let IdxCfgStakingDapp = 1 | |
487 | 487 | ||
488 | 488 | let IdxCfgEconomyDapp = 2 | |
489 | 489 | ||
490 | 490 | let IdxCfgGovernanceDapp = 3 | |
491 | 491 | ||
492 | 492 | let IdxCfgWlgDapp = 4 | |
493 | 493 | ||
494 | 494 | let IdxCfgTournamentDapp = 7 | |
495 | 495 | ||
496 | 496 | let IdxCfgAcresDapp = 8 | |
497 | 497 | ||
498 | 498 | func keyRestCfg () = "%s__restConfig" | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | func keyRestAddress () = "%s__restAddr" | |
502 | 502 | ||
503 | 503 | ||
504 | 504 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
505 | 505 | ||
506 | 506 | ||
507 | 507 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
508 | 508 | ||
509 | 509 | ||
510 | 510 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
511 | 511 | ||
512 | 512 | let restCfg = readRestCfgOrFail(restContract) | |
513 | 513 | ||
514 | 514 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
515 | 515 | ||
516 | 516 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
517 | 517 | ||
518 | 518 | let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp) | |
519 | 519 | ||
520 | 520 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
521 | 521 | ||
522 | 522 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
523 | 523 | ||
524 | 524 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
525 | 525 | ||
526 | 526 | let recLandNum = 0 | |
527 | 527 | ||
528 | 528 | let recLandSize = 1 | |
529 | 529 | ||
530 | 530 | let recTerrains = 2 | |
531 | 531 | ||
532 | 532 | let recContinent = 3 | |
533 | 533 | ||
534 | 534 | let wlgAssetIdKey = "wlg_assetId" | |
535 | 535 | ||
536 | 536 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
537 | 537 | ||
538 | 538 | let acresAssetIdKey = "acresAssetId" | |
539 | 539 | ||
540 | 540 | let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet") | |
541 | 541 | ||
542 | 542 | let randomDelay = 2 | |
543 | 543 | ||
544 | 544 | func keyCommit (address) = ("finishBlockForAddr_" + address) | |
545 | 545 | ||
546 | 546 | ||
547 | 547 | func keyResProportions () = "resTypesProportions" | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | func keyResTypesByContinent (continent) = ("resTypesByContinent_" + continent) | |
551 | 551 | ||
552 | 552 | ||
553 | 553 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
557 | 557 | ||
558 | 558 | ||
559 | 559 | func asString (v) = match v { | |
560 | 560 | case s: String => | |
561 | 561 | s | |
562 | 562 | case _ => | |
563 | 563 | throw("fail to cast into String") | |
564 | 564 | } | |
565 | 565 | ||
566 | 566 | ||
567 | 567 | func asInt (v) = match v { | |
568 | 568 | case n: Int => | |
569 | 569 | n | |
570 | 570 | case _ => | |
571 | 571 | throw("fail to cast into Int") | |
572 | 572 | } | |
573 | 573 | ||
574 | 574 | ||
575 | 575 | func asAnyList (v) = match v { | |
576 | 576 | case l: List[Any] => | |
577 | 577 | l | |
578 | 578 | case _ => | |
579 | 579 | throw("fail to cast into List[Any]") | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | func asBoolean (v) = match v { | |
584 | 584 | case s: Boolean => | |
585 | 585 | s | |
586 | 586 | case _ => | |
587 | 587 | throw("fail to cast into Boolean") | |
588 | 588 | } | |
589 | 589 | ||
590 | 590 | ||
591 | 591 | func numPiecesBySize (landSize) = match landSize { | |
592 | 592 | case _ => | |
593 | 593 | if (("S" == $match0)) | |
594 | 594 | then SSIZE | |
595 | 595 | else if (("M" == $match0)) | |
596 | 596 | then MSIZE | |
597 | 597 | else if (("L" == $match0)) | |
598 | 598 | then LSIZE | |
599 | 599 | else if (("XL" == $match0)) | |
600 | 600 | then XLSIZE | |
601 | 601 | else if (("XXL" == $match0)) | |
602 | 602 | then XXLSIZE | |
603 | 603 | else throw("Unknown land size") | |
604 | 604 | } | |
605 | 605 | ||
606 | 606 | ||
607 | 607 | func isDigit (s) = isDefined(parseInt(s)) | |
608 | 608 | ||
609 | 609 | ||
610 | 610 | func keyBlocked () = "contractsBlocked" | |
611 | 611 | ||
612 | 612 | ||
613 | 613 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
614 | 614 | ||
615 | 615 | ||
616 | 616 | func fixedPoint (val,decimals) = { | |
617 | 617 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
618 | 618 | let lowPart = toString((val % tenPow)) | |
619 | 619 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
620 | 620 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
621 | 621 | } | |
622 | 622 | ||
623 | 623 | ||
624 | 624 | func getRandomNumber (maxValue,salt,entropy) = { | |
625 | 625 | let randomHash = sha256((salt + entropy)) | |
626 | 626 | (toInt(randomHash) % maxValue) | |
627 | 627 | } | |
628 | 628 | ||
629 | 629 | ||
630 | 630 | let incubatorAddr = match chain { | |
631 | 631 | case _ => | |
632 | 632 | if ((base58'2W' == $match0)) | |
633 | 633 | then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv") | |
634 | 634 | else if ((base58'2T' == $match0)) | |
635 | 635 | then this | |
636 | 636 | else throw("Unknown chain") | |
637 | 637 | } | |
638 | 638 | ||
639 | 639 | let breederAddr = match chain { | |
640 | 640 | case _ => | |
641 | 641 | if ((base58'2W' == $match0)) | |
642 | 642 | then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb") | |
643 | 643 | else if ((base58'2T' == $match0)) | |
644 | 644 | then this | |
645 | 645 | else throw("Unknown chain") | |
646 | 646 | } | |
647 | 647 | ||
648 | 648 | let pub = match chain { | |
649 | 649 | case _ => | |
650 | 650 | if ((base58'2W' == $match0)) | |
651 | 651 | then if (KS_SEPARATE_PUBLIC_KEY) | |
652 | 652 | then base58'CWsMtTZC5BjjoL4Q1ayW4Wwb1ehGACQB6DrKyPgotKfm' | |
653 | 653 | else base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
654 | 654 | else if ((base58'2T' == $match0)) | |
655 | 655 | then base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD' | |
656 | 656 | else throw("Unknown chain") | |
657 | 657 | } | |
658 | 658 | ||
659 | 659 | let EMPTY_PROD50 = base64'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==' | |
660 | 660 | ||
661 | 661 | let FIVEMINUTESMILLIS = 300000 | |
662 | 662 | ||
663 | 663 | let RENAMINGCOST = 5000000 | |
664 | 664 | ||
665 | 665 | let MAXNAMELEN = 50 | |
666 | 666 | ||
667 | 667 | let InfraUpgradeCostSUsdt = 10000000 | |
668 | 668 | ||
669 | 669 | let EXPMATERIALS = match chain { | |
670 | 670 | case _ => | |
671 | 671 | if ((base58'2W' == $match0)) | |
672 | 672 | then 252289527462 | |
673 | 673 | else if ((base58'2T' == $match0)) | |
674 | 674 | then 2522895274 | |
675 | 675 | else throw("Unknown chain") | |
676 | 676 | } | |
677 | 677 | ||
678 | 678 | let EXPUSDT = match chain { | |
679 | 679 | case _ => | |
680 | 680 | if ((base58'2W' == $match0)) | |
681 | 681 | then 250000000 | |
682 | 682 | else if ((base58'2T' == $match0)) | |
683 | 683 | then 250000000 | |
684 | 684 | else throw("Unknown chain") | |
685 | 685 | } | |
686 | 686 | ||
687 | 687 | let ROBO_DUCK_USDT = 100000 | |
688 | 688 | ||
689 | 689 | let S_COST_ACRES = 2500000000 | |
690 | 690 | ||
691 | 691 | let FIVEX = toBigInt(5) | |
692 | 692 | ||
693 | 693 | let TWENTYX = toBigInt(20) | |
694 | 694 | ||
695 | 695 | let TWENTY2X = toBigInt((20 * 20)) | |
696 | 696 | ||
697 | 697 | let TWENTY3X = toBigInt(((20 * 20) * 20)) | |
698 | 698 | ||
699 | 699 | let TWENTY4X = toBigInt((((20 * 20) * 20) * 20)) | |
700 | 700 | ||
701 | 701 | let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20)) | |
702 | 702 | ||
703 | 703 | let PRESALENUMLANDS = 500 | |
704 | 704 | ||
705 | 705 | func keyNextFreeLandNum () = "nextLandNum" | |
706 | 706 | ||
707 | 707 | ||
708 | 708 | func keyLandCustomNameToAssetId (name) = ("lcn_" + name) | |
709 | 709 | ||
710 | 710 | ||
711 | 711 | func keyLandToAssetId (landNum) = ("la_" + landNum) | |
712 | 712 | ||
713 | 713 | ||
714 | 714 | func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("ilao_" + assetId) + "_") + ownerAddr) | |
715 | 715 | ||
716 | 716 | ||
717 | 717 | func keyLandNumToOwner (landNum) = ("lo_" + landNum) | |
718 | 718 | ||
719 | 719 | ||
720 | 720 | func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name) | |
721 | 721 | ||
722 | 722 | ||
723 | 723 | func keyCustomNameToAddress (name) = ("accountByCustomName_" + name) | |
724 | 724 | ||
725 | 725 | ||
726 | 726 | func keyOldies () = "oldiesList" | |
727 | 727 | ||
728 | 728 | ||
729 | 729 | func keyNextRoboDuck () = "nextRoboDuck" | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | let claimModeWh = 0 | |
733 | 733 | ||
734 | 734 | let claimModeDuck = 1 | |
735 | 735 | ||
736 | 736 | let claimModeWhThenDuck = 2 | |
737 | 737 | ||
738 | 738 | let flHealth = 0 | |
739 | 739 | ||
740 | 740 | let flTimestamp = 5 | |
741 | 741 | ||
742 | 742 | let flBonus = 6 | |
743 | 743 | ||
744 | 744 | let flProdsUsed = 7 | |
745 | 745 | ||
746 | 746 | func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize) | |
747 | 747 | ||
748 | 748 | ||
749 | 749 | func toVolume (amount,pkgSize) = { | |
750 | 750 | let pkgs = if ((amount >= 0)) | |
751 | 751 | then (((amount + pkgSize) - 1) / pkgSize) | |
752 | 752 | else -((((-(amount) + pkgSize) - 1) / pkgSize)) | |
753 | 753 | (pkgs * MULT8) | |
754 | 754 | } | |
755 | 755 | ||
756 | 756 | ||
757 | 757 | func distributeByWeights (total,weights) = { | |
758 | 758 | let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5]) | |
759 | 759 | if ((0 >= sum)) | |
760 | 760 | then throw("Zero weights sum") | |
761 | 761 | else { | |
762 | 762 | let norm6 = fraction(total, MULT6, sum) | |
763 | 763 | func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6)) | |
764 | 764 | ||
765 | 765 | let $l = weights | |
766 | 766 | let $s = size($l) | |
767 | 767 | let $acc0 = nil | |
768 | 768 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
769 | 769 | then $a | |
770 | 770 | else normalizer($a, $l[$i]) | |
771 | 771 | ||
772 | 772 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
773 | 773 | then $a | |
774 | 774 | else throw("List size exceeds 6") | |
775 | 775 | ||
776 | 776 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
777 | 777 | } | |
778 | 778 | } | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | func getNeededMaterials (total) = { | |
782 | 782 | let props = split(value(getString(keyResProportions())), "_") | |
783 | 783 | if ((size(props) != NUMRES)) | |
784 | 784 | then throw("Wrong proportions data") | |
785 | 785 | else { | |
786 | 786 | let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])] | |
787 | 787 | distributeByWeights(total, r) | |
788 | 788 | } | |
789 | 789 | } | |
790 | 790 | ||
791 | 791 | ||
792 | 792 | func subtractMaterials (shouldUseMat,has,totalNeed) = { | |
793 | 793 | let need = getNeededMaterials(totalNeed) | |
794 | 794 | func subtractor (acc,idx) = { | |
795 | 795 | let result = (parseIntValue(has[idx]) - need[idx]) | |
796 | 796 | if ((0 > result)) | |
797 | 797 | then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx]))) | |
798 | 798 | else (acc :+ toString(result)) | |
799 | 799 | } | |
800 | 800 | ||
801 | 801 | if (shouldUseMat) | |
802 | 802 | then { | |
803 | 803 | let $l = ITER6 | |
804 | 804 | let $s = size($l) | |
805 | 805 | let $acc0 = nil | |
806 | 806 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
807 | 807 | then $a | |
808 | 808 | else subtractor($a, $l[$i]) | |
809 | 809 | ||
810 | 810 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
811 | 811 | then $a | |
812 | 812 | else throw("List size exceeds 6") | |
813 | 813 | ||
814 | 814 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
815 | 815 | } | |
816 | 816 | else has | |
817 | 817 | } | |
818 | 818 | ||
819 | 819 | ||
820 | 820 | func subtractEquipment (oldEq,pUsed) = if ((pUsed == "")) | |
821 | 821 | then $Tuple2(oldEq, false) | |
822 | 822 | else { | |
823 | 823 | func subUsed (acc,idxAmt) = { | |
824 | 824 | let parts = split(idxAmt, ",") | |
825 | 825 | if ((size(parts) != 2)) | |
826 | 826 | then throw("Incorrect format, should be index,amount") | |
827 | 827 | else { | |
828 | 828 | let idx = parseIntValue(parts[0]) | |
829 | 829 | if (if ((0 > idx)) | |
830 | 830 | then true | |
831 | 831 | else (idx >= size(productionMatrix))) | |
832 | 832 | then throw("Unknown product idx") | |
833 | 833 | else { | |
834 | 834 | let amt = parseIntValue(parts[1]) | |
835 | 835 | let eqParts = split(acc._1, (parts[0] + ":")) | |
836 | 836 | if ((size(eqParts) != 2)) | |
837 | 837 | then throw((("You don't have " + prodTypes[idx]) + " equipped")) | |
838 | 838 | else { | |
839 | 839 | let tmp = eqParts[1] | |
840 | 840 | let numLen = if (isDigit(take(drop(tmp, 1), 1))) | |
841 | 841 | then 2 | |
842 | 842 | else 1 | |
843 | 843 | let curr = parseIntValue(take(tmp, numLen)) | |
844 | 844 | let tail = drop(tmp, numLen) | |
845 | 845 | let newAmt = if ((curr >= amt)) | |
846 | 846 | then (curr - amt) | |
847 | 847 | else throw(((((("You equipped " + toString(curr)) + " of ") + prodTypes[idx]) + ", but tried to use ") + toString(amt))) | |
848 | 848 | $Tuple2(((((eqParts[0] + parts[0]) + ":") + toString(newAmt)) + tail), if (acc._2) | |
849 | 849 | then true | |
850 | 850 | else if (if ((idx >= 6)) | |
851 | 851 | then (8 >= idx) | |
852 | 852 | else false) | |
853 | 853 | then (newAmt == 0) | |
854 | 854 | else false) | |
855 | 855 | } | |
856 | 856 | } | |
857 | 857 | } | |
858 | 858 | } | |
859 | 859 | ||
860 | 860 | let $l = split(pUsed, "_") | |
861 | 861 | let $s = size($l) | |
862 | 862 | let $acc0 = $Tuple2(oldEq, false) | |
863 | 863 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
864 | 864 | then $a | |
865 | 865 | else subUsed($a, $l[$i]) | |
866 | 866 | ||
867 | 867 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
868 | 868 | then $a | |
869 | 869 | else throw("List size exceeds 10") | |
870 | 870 | ||
871 | 871 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
872 | 872 | } | |
873 | 873 | ||
874 | 874 | ||
875 | 875 | func prodStrToBytes (prodStr) = { | |
876 | 876 | let pList = if ((prodStr == "")) | |
877 | 877 | then nil | |
878 | 878 | else split_4C(prodStr, "_") | |
879 | 879 | func toBV (acc,recipe) = { | |
880 | 880 | let j = (size(acc) / 8) | |
881 | 881 | let curr = if ((size(pList) > j)) | |
882 | 882 | then parseIntValue(pList[j]) | |
883 | 883 | else 0 | |
884 | 884 | (acc + toBytes(curr)) | |
885 | 885 | } | |
886 | 886 | ||
887 | 887 | let $l = productionMatrix | |
888 | 888 | let $s = size($l) | |
889 | 889 | let $acc0 = base58'' | |
890 | 890 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
891 | 891 | then $a | |
892 | 892 | else toBV($a, $l[$i]) | |
893 | 893 | ||
894 | 894 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
895 | 895 | then $a | |
896 | 896 | else throw("List size exceeds 50") | |
897 | 897 | ||
898 | 898 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
899 | 899 | } | |
900 | 900 | ||
901 | 901 | ||
902 | 902 | func bytesToProdStr (bv) = { | |
903 | 903 | func fromBV (acc,recipe) = { | |
904 | 904 | let j = size(acc) | |
905 | 905 | let b = take(drop(bv, (8 * j)), 8) | |
906 | 906 | (acc :+ toString(toInt(b))) | |
907 | 907 | } | |
908 | 908 | ||
909 | 909 | makeString_2C({ | |
910 | 910 | let $l = productionMatrix | |
911 | 911 | let $s = size($l) | |
912 | 912 | let $acc0 = nil | |
913 | 913 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
914 | 914 | then $a | |
915 | 915 | else fromBV($a, $l[$i]) | |
916 | 916 | ||
917 | 917 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
918 | 918 | then $a | |
919 | 919 | else throw("List size exceeds 50") | |
920 | 920 | ||
921 | 921 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
922 | 922 | }, "_") | |
923 | 923 | } | |
924 | 924 | ||
925 | 925 | ||
926 | 926 | func checkStatRequirements (duckStats,reqs) = { | |
927 | 927 | func check (acc,j) = { | |
928 | 928 | let buff = if ((size(duckStats) > (7 + j))) | |
929 | 929 | then duckStats[(7 + j)] | |
930 | 930 | else 0 | |
931 | 931 | if ((parseIntValue(reqs[j]) > (duckStats[j] + buff))) | |
932 | 932 | then throw(("Requirement not satisfied: " + requirements[j])) | |
933 | 933 | else true | |
934 | 934 | } | |
935 | 935 | ||
936 | 936 | let $l = [0, 1, 2, 3, 4, 5, 6] | |
937 | 937 | let $s = size($l) | |
938 | 938 | let $acc0 = false | |
939 | 939 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
940 | 940 | then $a | |
941 | 941 | else check($a, $l[$i]) | |
942 | 942 | ||
943 | 943 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
944 | 944 | then $a | |
945 | 945 | else throw("List size exceeds 7") | |
946 | 946 | ||
947 | 947 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7) | |
948 | 948 | } | |
949 | 949 | ||
950 | 950 | ||
951 | 951 | func placeProdB (idxCnt,pList,isPositive,duckStats,occupied,free) = { | |
952 | 952 | let parts = split(idxCnt, ":") | |
953 | 953 | if ((size(parts) != 2)) | |
954 | 954 | then throw("Incorrect format, should be index:amount") | |
955 | 955 | else if (if (!(isPositive)) | |
956 | 956 | then (size(parts[0]) != 2) | |
957 | 957 | else false) | |
958 | 958 | then throw("Product idx should be 2 digits, zero padded") | |
959 | 959 | else { | |
960 | 960 | let productIdx = parseIntValue(parts[0]) | |
961 | 961 | let count = parseIntValue(parts[1]) | |
962 | 962 | if (!(containsElement(fortAllowedProds, productIdx))) | |
963 | 963 | then throw((("Product '" + prodTypes[productIdx]) + "' cannot be used for land defense")) | |
964 | 964 | else if ((0 > count)) | |
965 | 965 | then throw("Count can't be negative") | |
966 | 966 | else if ((count > MAXPRODINSLOT)) | |
967 | 967 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
968 | 968 | else if ((count == 0)) | |
969 | 969 | then $Tuple3(pList, occupied, free) | |
970 | 970 | else { | |
971 | 971 | let head = take(pList, (8 * productIdx)) | |
972 | 972 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
973 | 973 | let tail = drop(pList, (8 * (productIdx + 1))) | |
974 | 974 | let recipe = split(productionMatrix[productIdx], "_") | |
975 | 975 | if (if (!(isPositive)) | |
976 | 976 | then (count > curr) | |
977 | 977 | else false) | |
978 | 978 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
979 | 979 | else { | |
980 | 980 | let newAmt = if (if (!(isPositive)) | |
981 | 981 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
982 | 982 | else false) | |
983 | 983 | then (curr - count) | |
984 | 984 | else (curr + count) | |
985 | 985 | let deltaVol = (toVolume(newAmt, PRODUCTPKGSIZE) - toVolume(curr, PRODUCTPKGSIZE)) | |
986 | 986 | $Tuple3(((head + toBytes(newAmt)) + tail), (occupied + deltaVol), (free - deltaVol)) | |
987 | 987 | } | |
988 | 988 | } | |
989 | 989 | } | |
990 | 990 | } | |
991 | 991 | ||
992 | 992 | ||
993 | 993 | func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = { | |
994 | 994 | let parts = split(idxCnt, ":") | |
995 | 995 | if ((size(parts) != 2)) | |
996 | 996 | then throw("Incorrect format, should be index:amount") | |
997 | 997 | else if (if (!(isPositive)) | |
998 | 998 | then (size(parts[0]) != 2) | |
999 | 999 | else false) | |
1000 | 1000 | then throw("Product idx should be 2 digits, zero padded") | |
1001 | 1001 | else { | |
1002 | 1002 | let productIdx = parseIntValue(parts[0]) | |
1003 | 1003 | let count = parseIntValue(parts[1]) | |
1004 | 1004 | if (if ((0 > productIdx)) | |
1005 | 1005 | then true | |
1006 | 1006 | else (productIdx >= size(productionMatrix))) | |
1007 | 1007 | then throw("Unknown product idx") | |
1008 | 1008 | else if ((0 > count)) | |
1009 | 1009 | then throw("Count can't be negative") | |
1010 | 1010 | else if ((count > MAXPRODINSLOT)) | |
1011 | 1011 | then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx])) | |
1012 | 1012 | else if ((count == 0)) | |
1013 | 1013 | then $Tuple2(pList, false) | |
1014 | 1014 | else { | |
1015 | 1015 | let head = take(pList, (8 * productIdx)) | |
1016 | 1016 | let curr = toInt(take(drop(pList, (8 * productIdx)), 8)) | |
1017 | 1017 | let tail = drop(pList, (8 * (productIdx + 1))) | |
1018 | 1018 | let recipe = split(productionMatrix[productIdx], "_") | |
1019 | 1019 | if (if (!(isPositive)) | |
1020 | 1020 | then (count > curr) | |
1021 | 1021 | else false) | |
1022 | 1022 | then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count))) | |
1023 | 1023 | else { | |
1024 | 1024 | let isBigItem = if (if (!(isPositive)) | |
1025 | 1025 | then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ",")) | |
1026 | 1026 | else false) | |
1027 | 1027 | then { | |
1028 | 1028 | let compat = recipe[rIdxSlots] | |
1029 | 1029 | if ((compat == "")) | |
1030 | 1030 | then throw("Item cannot be equipped") | |
1031 | 1031 | else { | |
1032 | 1032 | let c = parseIntValue(compat) | |
1033 | 1033 | let cSeg = (c / 100) | |
1034 | 1034 | if ((segment != cSeg)) | |
1035 | 1035 | then throw("Segment incompatible") | |
1036 | 1036 | else { | |
1037 | 1037 | let cMainAux = ((c % 100) / 10) | |
1038 | 1038 | if ((mainAux != cMainAux)) | |
1039 | 1039 | then throw("Slot incompatible") | |
1040 | 1040 | else { | |
1041 | 1041 | let cNumSlots = (c % 10) | |
1042 | 1042 | if (if ((slot != 0)) | |
1043 | 1043 | then (cNumSlots > 1) | |
1044 | 1044 | else false) | |
1045 | 1045 | then throw("Big items should occupy slot 0") | |
1046 | 1046 | else (cNumSlots > 1) | |
1047 | 1047 | } | |
1048 | 1048 | } | |
1049 | 1049 | } | |
1050 | 1050 | } | |
1051 | 1051 | else false | |
1052 | 1052 | $Tuple2(((head + toBytes((curr + (if (isPositive) | |
1053 | 1053 | then count | |
1054 | 1054 | else -(count))))) + tail), isBigItem) | |
1055 | 1055 | } | |
1056 | 1056 | } | |
1057 | 1057 | } | |
1058 | 1058 | } | |
1059 | 1059 | ||
1060 | 1060 | ||
1061 | 1061 | func slotsGroupB (g,bpIn,isPositive,segment,mainAux,stats) = if ((g != "")) | |
1062 | 1062 | then { | |
1063 | 1063 | let slots = split(g, ",") | |
1064 | 1064 | if ((size(slots) > MAXSLOTS)) | |
1065 | 1065 | then throw("Wrong slots format") | |
1066 | 1066 | else { | |
1067 | 1067 | let s0 = slots[0] | |
1068 | 1068 | let s1 = if ((size(slots) > 1)) | |
1069 | 1069 | then slots[1] | |
1070 | 1070 | else "" | |
1071 | 1071 | if (if ((s0 == "")) | |
1072 | 1072 | then (s1 == "") | |
1073 | 1073 | else false) | |
1074 | 1074 | then bpIn | |
1075 | 1075 | else { | |
1076 | 1076 | let tmpS0 = if ((s0 != "")) | |
1077 | 1077 | then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, stats) | |
1078 | 1078 | else $Tuple2(bpIn, false) | |
1079 | 1079 | if ((s1 != "")) | |
1080 | 1080 | then if (tmpS0._2) | |
1081 | 1081 | then throw("Big item already occupies slot") | |
1082 | 1082 | else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, stats)._1 | |
1083 | 1083 | else tmpS0._1 | |
1084 | 1084 | } | |
1085 | 1085 | } | |
1086 | 1086 | } | |
1087 | 1087 | else bpIn | |
1088 | 1088 | ||
1089 | 1089 | ||
1090 | 1090 | func dressB (segList,pBytes,isPositive,stats) = { | |
1091 | 1091 | func segment (acc,seg) = { | |
1092 | 1092 | let j = acc._1 | |
1093 | 1093 | let mainAux = split(seg, ";") | |
1094 | 1094 | if ((size(mainAux) != NUMMAINAUX)) | |
1095 | 1095 | then throw("Wrong segment format") | |
1096 | 1096 | else { | |
1097 | 1097 | let m = mainAux[0] | |
1098 | 1098 | let a = mainAux[1] | |
1099 | 1099 | if (if ((m == "")) | |
1100 | 1100 | then (a == "") | |
1101 | 1101 | else false) | |
1102 | 1102 | then $Tuple2((j + 1), acc._2) | |
1103 | 1103 | else { | |
1104 | 1104 | let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, stats) | |
1105 | 1105 | $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, stats)) | |
1106 | 1106 | } | |
1107 | 1107 | } | |
1108 | 1108 | } | |
1109 | 1109 | ||
1110 | 1110 | ( let $l = segList | |
1111 | 1111 | let $s = size($l) | |
1112 | 1112 | let $acc0 = $Tuple2(0, pBytes) | |
1113 | 1113 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1114 | 1114 | then $a | |
1115 | 1115 | else segment($a, $l[$i]) | |
1116 | 1116 | ||
1117 | 1117 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1118 | 1118 | then $a | |
1119 | 1119 | else throw("List size exceeds 6") | |
1120 | 1120 | ||
1121 | 1121 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2 | |
1122 | 1122 | } | |
1123 | 1123 | ||
1124 | 1124 | ||
1125 | 1125 | func fortB (segList,pBytes,occupied,free,isPositive,duckStats) = if ((3 > size(segList))) | |
1126 | 1126 | then throw("At least duck, mines and traps parts are required") | |
1127 | 1127 | else { | |
1128 | 1128 | func segment (acc,seg) = { | |
1129 | 1129 | let j = acc._1 | |
1130 | 1130 | if ((j == 0)) | |
1131 | 1131 | then $Tuple4((j + 1), acc._2, acc._3, acc._4) | |
1132 | 1132 | else { | |
1133 | 1133 | let p = placeProdB(seg, acc._2, isPositive, duckStats, acc._3, acc._4) | |
1134 | 1134 | $Tuple4((j + 1), p._1, p._2, p._3) | |
1135 | 1135 | } | |
1136 | 1136 | } | |
1137 | 1137 | ||
1138 | 1138 | let t = { | |
1139 | 1139 | let $l = segList | |
1140 | 1140 | let $s = size($l) | |
1141 | 1141 | let $acc0 = $Tuple4(0, pBytes, occupied, free) | |
1142 | 1142 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1143 | 1143 | then $a | |
1144 | 1144 | else segment($a, $l[$i]) | |
1145 | 1145 | ||
1146 | 1146 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1147 | 1147 | then $a | |
1148 | 1148 | else throw("List size exceeds 10") | |
1149 | 1149 | ||
1150 | 1150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1151 | 1151 | } | |
1152 | 1152 | $Tuple3(t._2, t._3, t._4) | |
1153 | 1153 | } | |
1154 | 1154 | ||
1155 | 1155 | ||
1156 | 1156 | func canWearCurrentEquipment (duckAssetId) = { | |
1157 | 1157 | let eqKey = keyDuckEquipment(duckAssetId) | |
1158 | 1158 | let currEq = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
1159 | 1159 | let tempProdB = dressB(currEq, EMPTY_PROD50, true, nil) | |
1160 | 1160 | let segBpAux = split(currEq[segBackpack], ";")[1] | |
1161 | 1161 | let buffEffect = if ((segBpAux == "")) | |
1162 | 1162 | then 0 | |
1163 | 1163 | else { | |
1164 | 1164 | let aux0 = split(segBpAux, ",")[0] | |
1165 | 1165 | if ((aux0 == "")) | |
1166 | 1166 | then 0 | |
1167 | 1167 | else { | |
1168 | 1168 | let idxCnt = split(aux0, ":") | |
1169 | 1169 | let idx = idxCnt[0] | |
1170 | 1170 | let cnt = idxCnt[1] | |
1171 | 1171 | if (if (if (if (if ((idx == "06")) | |
1172 | 1172 | then true | |
1173 | 1173 | else (idx == "07")) | |
1174 | 1174 | then true | |
1175 | 1175 | else (idx == "08")) | |
1176 | 1176 | then (cnt != "") | |
1177 | 1177 | else false) | |
1178 | 1178 | then (parseIntValue(cnt) > 0) | |
1179 | 1179 | else false) | |
1180 | 1180 | then parseIntValue(split(productionMatrix[parseIntValue(idx)], "_")[rIdxEffect]) | |
1181 | 1181 | else 0 | |
1182 | 1182 | } | |
1183 | 1183 | } | |
1184 | 1184 | let stats = getDuckStats(this, duckAssetId, buffEffect, true) | |
1185 | 1185 | let newProdB = dressB(currEq, tempProdB, false, stats) | |
1186 | 1186 | (newProdB == newProdB) | |
1187 | 1187 | } | |
1188 | 1188 | ||
1189 | 1189 | ||
1190 | 1190 | func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES)) | |
1191 | 1191 | then throw("Wrong proportions data") | |
1192 | 1192 | else { | |
1193 | 1193 | func updater (acc,i) = { | |
1194 | 1194 | let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex)) | |
1195 | 1195 | if ((0 > result)) | |
1196 | 1196 | then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex))) | |
1197 | 1197 | else (acc :+ toString(result)) | |
1198 | 1198 | } | |
1199 | 1199 | ||
1200 | 1200 | let $l = ITER6 | |
1201 | 1201 | let $s = size($l) | |
1202 | 1202 | let $acc0 = nil | |
1203 | 1203 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1204 | 1204 | then $a | |
1205 | 1205 | else updater($a, $l[$i]) | |
1206 | 1206 | ||
1207 | 1207 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1208 | 1208 | then $a | |
1209 | 1209 | else throw("List size exceeds 6") | |
1210 | 1210 | ||
1211 | 1211 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1212 | 1212 | } | |
1213 | 1213 | ||
1214 | 1214 | ||
1215 | 1215 | func updateProportions (terrainCounts,landSizeIndex,sign) = { | |
1216 | 1216 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
1217 | 1217 | makeString(updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign), "_") | |
1218 | 1218 | } | |
1219 | 1219 | ||
1220 | 1220 | ||
1221 | 1221 | func countTerrains (terrains) = [(size(split(terrains, "A")) - 1), (size(split(terrains, "B")) - 1), (size(split(terrains, "C")) - 1), (size(split(terrains, "D")) - 1), (size(split(terrains, "E")) - 1), (size(split(terrains, "F")) - 1)] | |
1222 | 1222 | ||
1223 | 1223 | ||
1224 | 1224 | func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
1225 | 1225 | func adder (acc,i) = { | |
1226 | 1226 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
1227 | 1227 | (acc :+ toString((parseIntValue(currentRes[i]) + resOfType))) | |
1228 | 1228 | } | |
1229 | 1229 | ||
1230 | 1230 | let r = { | |
1231 | 1231 | let $l = ITER6 | |
1232 | 1232 | let $s = size($l) | |
1233 | 1233 | let $acc0 = nil | |
1234 | 1234 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1235 | 1235 | then $a | |
1236 | 1236 | else adder($a, $l[$i]) | |
1237 | 1237 | ||
1238 | 1238 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1239 | 1239 | then $a | |
1240 | 1240 | else throw("List size exceeds 6") | |
1241 | 1241 | ||
1242 | 1242 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1243 | 1243 | } | |
1244 | 1244 | makeString(r, "_") | |
1245 | 1245 | } | |
1246 | 1246 | ||
1247 | 1247 | ||
1248 | 1248 | func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = { | |
1249 | 1249 | func adder (acc,i) = { | |
1250 | 1250 | let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex) | |
1251 | 1251 | $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType)) | |
1252 | 1252 | } | |
1253 | 1253 | ||
1254 | 1254 | let $l = ITER6 | |
1255 | 1255 | let $s = size($l) | |
1256 | 1256 | let $acc0 = $Tuple2(nil, 0) | |
1257 | 1257 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1258 | 1258 | then $a | |
1259 | 1259 | else adder($a, $l[$i]) | |
1260 | 1260 | ||
1261 | 1261 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1262 | 1262 | then $a | |
1263 | 1263 | else throw("List size exceeds 6") | |
1264 | 1264 | ||
1265 | 1265 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1266 | 1266 | } | |
1267 | 1267 | ||
1268 | 1268 | ||
1269 | 1269 | func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = { | |
1270 | 1270 | let resListToClaim = resToClaim._1 | |
1271 | 1271 | let resAmToClaim = resToClaim._2 | |
1272 | 1272 | if ((resAmToClaim == 0)) | |
1273 | 1273 | then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_")) | |
1274 | 1274 | else if ((whSpaceLeft >= resAmToClaim)) | |
1275 | 1275 | then { | |
1276 | 1276 | func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i]))) | |
1277 | 1277 | ||
1278 | 1278 | let r = { | |
1279 | 1279 | let $l = ITER6 | |
1280 | 1280 | let $s = size($l) | |
1281 | 1281 | let $acc0 = nil | |
1282 | 1282 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1283 | 1283 | then $a | |
1284 | 1284 | else addLists($a, $l[$i]) | |
1285 | 1285 | ||
1286 | 1286 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1287 | 1287 | then $a | |
1288 | 1288 | else throw("List size exceeds 6") | |
1289 | 1289 | ||
1290 | 1290 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1291 | 1291 | } | |
1292 | 1292 | $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_")) | |
1293 | 1293 | } | |
1294 | 1294 | else { | |
1295 | 1295 | func addPartLists (acc,i) = { | |
1296 | 1296 | let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim) | |
1297 | 1297 | $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart)))) | |
1298 | 1298 | } | |
1299 | 1299 | ||
1300 | 1300 | let r = { | |
1301 | 1301 | let $l = ITER6 | |
1302 | 1302 | let $s = size($l) | |
1303 | 1303 | let $acc0 = $Tuple2(nil, nil) | |
1304 | 1304 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1305 | 1305 | then $a | |
1306 | 1306 | else addPartLists($a, $l[$i]) | |
1307 | 1307 | ||
1308 | 1308 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1309 | 1309 | then $a | |
1310 | 1310 | else throw("List size exceeds 6") | |
1311 | 1311 | ||
1312 | 1312 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1313 | 1313 | } | |
1314 | 1314 | $Tuple2(makeString(r._1, "_"), makeString(r._2, "_")) | |
1315 | 1315 | } | |
1316 | 1316 | } | |
1317 | 1317 | ||
1318 | 1318 | ||
1319 | 1319 | func abs (x) = if ((x >= toBigInt(0))) | |
1320 | 1320 | then x | |
1321 | 1321 | else -(x) | |
1322 | 1322 | ||
1323 | 1323 | ||
1324 | 1324 | let freq = [[6, 9, 14, 15, 16], [5, 8, 13, 14, 15], [1, 4, 9, 10, 15], [1, 6, 7, 15, 19], [4, 7, 8, 13, 18]] | |
1325 | 1325 | ||
1326 | 1326 | func genChar (n,freqs) = { | |
1327 | 1327 | let rem = toInt((n % TWENTYX)) | |
1328 | 1328 | let letter = if ((freqs[0] > rem)) | |
1329 | 1329 | then "A" | |
1330 | 1330 | else if ((freqs[1] > rem)) | |
1331 | 1331 | then "B" | |
1332 | 1332 | else if ((freqs[2] > rem)) | |
1333 | 1333 | then "C" | |
1334 | 1334 | else if ((freqs[3] > rem)) | |
1335 | 1335 | then "D" | |
1336 | 1336 | else if ((freqs[4] > rem)) | |
1337 | 1337 | then "E" | |
1338 | 1338 | else "F" | |
1339 | 1339 | letter | |
1340 | 1340 | } | |
1341 | 1341 | ||
1342 | 1342 | ||
1343 | 1343 | func genTerrains (seed,continentIdx) = { | |
1344 | 1344 | let f = freq[continentIdx] | |
1345 | 1345 | func terrainGenerator (acc,elem) = $Tuple2((((((acc._1 + genChar(acc._2, f)) + genChar((acc._2 / TWENTYX), f)) + genChar((acc._2 / TWENTY2X), f)) + genChar((acc._2 / TWENTY3X), f)) + genChar((acc._2 / TWENTY4X), f)), (acc._2 / TWENTY5X)) | |
1346 | 1346 | ||
1347 | 1347 | let t = { | |
1348 | 1348 | let $l = [1, 2, 3, 4, 5] | |
1349 | 1349 | let $s = size($l) | |
1350 | 1350 | let $acc0 = $Tuple2("", (seed / FIVEX)) | |
1351 | 1351 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1352 | 1352 | then $a | |
1353 | 1353 | else terrainGenerator($a, $l[$i]) | |
1354 | 1354 | ||
1355 | 1355 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1356 | 1356 | then $a | |
1357 | 1357 | else throw("List size exceeds 5") | |
1358 | 1358 | ||
1359 | 1359 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
1360 | 1360 | } | |
1361 | 1361 | t._1 | |
1362 | 1362 | } | |
1363 | 1363 | ||
1364 | 1364 | ||
1365 | 1365 | let PERM25 = [7, 2, 15, 19, 8, 24, 1, 21, 16, 5, 0, 22, 20, 23, 11, 4, 18, 12, 6, 10, 3, 17, 13, 9, 14] | |
1366 | 1366 | ||
1367 | 1367 | let TCHARS = ["A", "B", "C", "D", "E", "F"] | |
1368 | 1368 | ||
1369 | 1369 | func genTerrainsForMerge (sumTerrains,landSizeIndex) = { | |
1370 | 1370 | func step1 (acc,s) = { | |
1371 | 1371 | let j = acc._2 | |
1372 | 1372 | let el = parseIntValue(s) | |
1373 | 1373 | let x = if ((el == 0)) | |
1374 | 1374 | then 0 | |
1375 | 1375 | else if ((el >= (4 * landSizeIndex))) | |
1376 | 1376 | then (el / landSizeIndex) | |
1377 | 1377 | else if ((el > (3 * landSizeIndex))) | |
1378 | 1378 | then 3 | |
1379 | 1379 | else (((el - 1) / landSizeIndex) + 1) | |
1380 | 1380 | $Tuple3((acc._1 :+ x), (acc._2 + 1), (acc._3 + x)) | |
1381 | 1381 | } | |
1382 | 1382 | ||
1383 | 1383 | let t = { | |
1384 | 1384 | let $l = sumTerrains | |
1385 | 1385 | let $s = size($l) | |
1386 | 1386 | let $acc0 = $Tuple3(nil, 0, 0) | |
1387 | 1387 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1388 | 1388 | then $a | |
1389 | 1389 | else step1($a, $l[$i]) | |
1390 | 1390 | ||
1391 | 1391 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1392 | 1392 | then $a | |
1393 | 1393 | else throw("List size exceeds 6") | |
1394 | 1394 | ||
1395 | 1395 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1396 | 1396 | } | |
1397 | 1397 | let arr = t._1 | |
1398 | 1398 | let maxIdx = value(indexOf(arr, max(arr))) | |
1399 | 1399 | let delta = (t._3 - 25) | |
1400 | 1400 | func subber (acc,idx) = { | |
1401 | 1401 | let val = if ((idx == maxIdx)) | |
1402 | 1402 | then (arr[idx] - delta) | |
1403 | 1403 | else arr[idx] | |
1404 | 1404 | let zeroes = if ((val == 0)) | |
1405 | 1405 | then nil | |
1406 | 1406 | else split(drop(toString(pow(10, 0, val, 0, 0, DOWN)), 1), "") | |
1407 | 1407 | let c = TCHARS[idx] | |
1408 | 1408 | func listGen (ac,ignored) = (ac :+ c) | |
1409 | 1409 | ||
1410 | 1410 | let z = { | |
1411 | 1411 | let $l = zeroes | |
1412 | 1412 | let $s = size($l) | |
1413 | 1413 | let $acc0 = nil | |
1414 | 1414 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1415 | 1415 | then $a | |
1416 | 1416 | else listGen($a, $l[$i]) | |
1417 | 1417 | ||
1418 | 1418 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1419 | 1419 | then $a | |
1420 | 1420 | else throw("List size exceeds 25") | |
1421 | 1421 | ||
1422 | 1422 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25) | |
1423 | 1423 | } | |
1424 | 1424 | (acc ++ z) | |
1425 | 1425 | } | |
1426 | 1426 | ||
1427 | 1427 | let r = { | |
1428 | 1428 | let $l = ITER6 | |
1429 | 1429 | let $s = size($l) | |
1430 | 1430 | let $acc0 = nil | |
1431 | 1431 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1432 | 1432 | then $a | |
1433 | 1433 | else subber($a, $l[$i]) | |
1434 | 1434 | ||
1435 | 1435 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1436 | 1436 | then $a | |
1437 | 1437 | else throw("List size exceeds 6") | |
1438 | 1438 | ||
1439 | 1439 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1440 | 1440 | } | |
1441 | 1441 | func permut (acc,j) = (acc + r[j]) | |
1442 | 1442 | ||
1443 | 1443 | let $l = PERM25 | |
1444 | 1444 | let $s = size($l) | |
1445 | 1445 | let $acc0 = "" | |
1446 | 1446 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1447 | 1447 | then $a | |
1448 | 1448 | else permut($a, $l[$i]) | |
1449 | 1449 | ||
1450 | 1450 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1451 | 1451 | then $a | |
1452 | 1452 | else throw("List size exceeds 25") | |
1453 | 1453 | ||
1454 | 1454 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25) | |
1455 | 1455 | } | |
1456 | 1456 | ||
1457 | 1457 | ||
1458 | 1458 | func getBackpack (bpKey) = { | |
1459 | 1459 | let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":") | |
1460 | 1460 | [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES)) | |
1461 | 1461 | then p[bpIdxRes] | |
1462 | 1462 | else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES)) | |
1463 | 1463 | then p[bpIdxMat] | |
1464 | 1464 | else "0_0_0_0_0_0", p[bpIdxProd]] | |
1465 | 1465 | } | |
1466 | 1466 | ||
1467 | 1467 | ||
1468 | 1468 | func getWarehouseTotalVolume (volPrefix) = { | |
1469 | 1469 | let parts = split(volPrefix, "_") | |
1470 | 1470 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
1471 | 1471 | } | |
1472 | 1472 | ||
1473 | 1473 | ||
1474 | 1474 | func getWarehouseOccupiedVol (currentWh) = { | |
1475 | 1475 | let goods = currentWh[whIdxProd] | |
1476 | 1476 | func sumResMat (acc,item) = (acc + parseIntValue(item)) | |
1477 | 1477 | ||
1478 | 1478 | func sumProd (acc,item) = { | |
1479 | 1479 | let idx = acc._1 | |
1480 | 1480 | let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE) | |
1481 | 1481 | $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8))) | |
1482 | 1482 | } | |
1483 | 1483 | ||
1484 | 1484 | let whResVol = { | |
1485 | 1485 | let $l = split(currentWh[whIdxRes], "_") | |
1486 | 1486 | let $s = size($l) | |
1487 | 1487 | let $acc0 = 0 | |
1488 | 1488 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1489 | 1489 | then $a | |
1490 | 1490 | else sumResMat($a, $l[$i]) | |
1491 | 1491 | ||
1492 | 1492 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1493 | 1493 | then $a | |
1494 | 1494 | else throw("List size exceeds 6") | |
1495 | 1495 | ||
1496 | 1496 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1497 | 1497 | } | |
1498 | 1498 | let whMatVol = { | |
1499 | 1499 | let $l = split(currentWh[whIdxMat], "_") | |
1500 | 1500 | let $s = size($l) | |
1501 | 1501 | let $acc0 = 0 | |
1502 | 1502 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1503 | 1503 | then $a | |
1504 | 1504 | else sumResMat($a, $l[$i]) | |
1505 | 1505 | ||
1506 | 1506 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1507 | 1507 | then $a | |
1508 | 1508 | else throw("List size exceeds 6") | |
1509 | 1509 | ||
1510 | 1510 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1511 | 1511 | } | |
1512 | 1512 | let whGoodsVol = if ((goods == "")) | |
1513 | 1513 | then 0 | |
1514 | 1514 | else ( let $l = split_4C(goods, "_") | |
1515 | 1515 | let $s = size($l) | |
1516 | 1516 | let $acc0 = $Tuple2(0, 0) | |
1517 | 1517 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1518 | 1518 | then $a | |
1519 | 1519 | else sumProd($a, $l[$i]) | |
1520 | 1520 | ||
1521 | 1521 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1522 | 1522 | then $a | |
1523 | 1523 | else throw("List size exceeds 50") | |
1524 | 1524 | ||
1525 | 1525 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._2 | |
1526 | 1526 | ((whResVol + whMatVol) + whGoodsVol) | |
1527 | 1527 | } | |
1528 | 1528 | ||
1529 | 1529 | ||
1530 | 1530 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
1531 | 1531 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
1532 | 1532 | let whTotal = getWarehouseTotalVolume(volPrefix) | |
1533 | 1533 | let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0")) | |
1534 | 1534 | let wh = split_4C(whStr, ":") | |
1535 | 1535 | let whOccupied = getWarehouseOccupiedVol(wh) | |
1536 | 1536 | let whLoft = if ((5 > size(wh))) | |
1537 | 1537 | then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_") | |
1538 | 1538 | else { | |
1539 | 1539 | let loft = split(wh[whIdxLOFT], "_") | |
1540 | 1540 | let whLocked = parseIntValue(loft[volLocked]) | |
1541 | 1541 | let occ = if ((size(loft) > 1)) | |
1542 | 1542 | then parseIntValue(loft[volOccupied]) | |
1543 | 1543 | else whOccupied | |
1544 | 1544 | makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_") | |
1545 | 1545 | } | |
1546 | 1546 | [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES)) | |
1547 | 1547 | then wh[whIdxRes] | |
1548 | 1548 | else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES)) | |
1549 | 1549 | then wh[whIdxMat] | |
1550 | 1550 | else "0_0_0_0_0_0", wh[whIdxProd], whLoft] | |
1551 | 1551 | } | |
1552 | 1552 | ||
1553 | 1553 | ||
1554 | 1554 | func getWarehouseSpaceLeft (currentWh) = { | |
1555 | 1555 | let occupiedVol = getWarehouseOccupiedVol(currentWh) | |
1556 | 1556 | let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked]) | |
1557 | 1557 | ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol) | |
1558 | 1558 | } | |
1559 | 1559 | ||
1560 | 1560 | ||
1561 | 1561 | func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3)) | |
1562 | 1562 | then throw("cargoListStr should contain exactly 2 ':' separators") | |
1563 | 1563 | else { | |
1564 | 1564 | let resParts = split(cargoParts[0], "_") | |
1565 | 1565 | let matParts = split(cargoParts[1], "_") | |
1566 | 1566 | let prodParts = if ((cargoParts[2] == "")) | |
1567 | 1567 | then nil | |
1568 | 1568 | else split_4C(cargoParts[2], "_") | |
1569 | 1569 | if ((size(resParts) != NUMRES)) | |
1570 | 1570 | then throw("All 6 resources should be passed") | |
1571 | 1571 | else if ((size(matParts) != NUMRES)) | |
1572 | 1572 | then throw("All 6 materials should be passed") | |
1573 | 1573 | else { | |
1574 | 1574 | let whSpaceLeft = getWarehouseSpaceLeft(currentWh) | |
1575 | 1575 | let currWhRes = split(currentWh[whIdxRes], "_") | |
1576 | 1576 | let currWhMat = split(currentWh[whIdxMat], "_") | |
1577 | 1577 | let currWhProd = if ((currentWh[whIdxProd] == "")) | |
1578 | 1578 | then nil | |
1579 | 1579 | else split_4C(currentWh[whIdxProd], "_") | |
1580 | 1580 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1581 | 1581 | let currentPackMat = split(currentPack[bpIdxMat], "_") | |
1582 | 1582 | let currentPackProd = if ((currentPack[bpIdxProd] == "")) | |
1583 | 1583 | then nil | |
1584 | 1584 | else split_4C(currentPack[bpIdxProd], "_") | |
1585 | 1585 | func mvR (acc,item) = { | |
1586 | 1586 | let i = acc._1 | |
1587 | 1587 | let am = parseIntValue(item) | |
1588 | 1588 | let whr = parseIntValue(currWhRes[i]) | |
1589 | 1589 | let bpr = parseIntValue(currentPackRes[i]) | |
1590 | 1590 | if ((am == 0)) | |
1591 | 1591 | then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4) | |
1592 | 1592 | else if ((am > 0)) | |
1593 | 1593 | then if ((am > bpr)) | |
1594 | 1594 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available")) | |
1595 | 1595 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1596 | 1596 | else if ((-(am) > whr)) | |
1597 | 1597 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available")) | |
1598 | 1598 | else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am)) | |
1599 | 1599 | } | |
1600 | 1600 | ||
1601 | 1601 | let r = { | |
1602 | 1602 | let $l = resParts | |
1603 | 1603 | let $s = size($l) | |
1604 | 1604 | let $acc0 = $Tuple4(0, nil, nil, 0) | |
1605 | 1605 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1606 | 1606 | then $a | |
1607 | 1607 | else mvR($a, $l[$i]) | |
1608 | 1608 | ||
1609 | 1609 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1610 | 1610 | then $a | |
1611 | 1611 | else throw("List size exceeds 6") | |
1612 | 1612 | ||
1613 | 1613 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1614 | 1614 | } | |
1615 | 1615 | func mvM (acc,item) = { | |
1616 | 1616 | let i = acc._1 | |
1617 | 1617 | let am = parseIntValue(item) | |
1618 | 1618 | let whm = parseIntValue(currWhMat[i]) | |
1619 | 1619 | let bpm = parseIntValue(currentPackMat[i]) | |
1620 | 1620 | if ((am == 0)) | |
1621 | 1621 | then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4) | |
1622 | 1622 | else if ((am > 0)) | |
1623 | 1623 | then if ((am > bpm)) | |
1624 | 1624 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available")) | |
1625 | 1625 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1626 | 1626 | else if ((-(am) > whm)) | |
1627 | 1627 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available")) | |
1628 | 1628 | else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am)) | |
1629 | 1629 | } | |
1630 | 1630 | ||
1631 | 1631 | let m = { | |
1632 | 1632 | let $l = matParts | |
1633 | 1633 | let $s = size($l) | |
1634 | 1634 | let $acc0 = $Tuple4(0, nil, nil, r._4) | |
1635 | 1635 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
1636 | 1636 | then $a | |
1637 | 1637 | else mvM($a, $l[$i]) | |
1638 | 1638 | ||
1639 | 1639 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
1640 | 1640 | then $a | |
1641 | 1641 | else throw("List size exceeds 6") | |
1642 | 1642 | ||
1643 | 1643 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1644 | 1644 | } | |
1645 | 1645 | func mvP (acc,item) = { | |
1646 | 1646 | let i = acc._1 | |
1647 | 1647 | let am = parseIntValue(item) | |
1648 | 1648 | let whp = if ((size(currWhProd) > i)) | |
1649 | 1649 | then parseIntValue(currWhProd[i]) | |
1650 | 1650 | else 0 | |
1651 | 1651 | let bpp = if ((size(currentPackProd) > i)) | |
1652 | 1652 | then parseIntValue(currentPackProd[i]) | |
1653 | 1653 | else 0 | |
1654 | 1654 | if ((am == 0)) | |
1655 | 1655 | then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4) | |
1656 | 1656 | else if ((am > 0)) | |
1657 | 1657 | then if ((am > bpp)) | |
1658 | 1658 | then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available")) | |
1659 | 1659 | else { | |
1660 | 1660 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1661 | 1661 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1662 | 1662 | } | |
1663 | 1663 | else if ((-(am) > whp)) | |
1664 | 1664 | then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available")) | |
1665 | 1665 | else { | |
1666 | 1666 | let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE)) | |
1667 | 1667 | $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol)) | |
1668 | 1668 | } | |
1669 | 1669 | } | |
1670 | 1670 | ||
1671 | 1671 | let p = if ((size(prodParts) != 0)) | |
1672 | 1672 | then { | |
1673 | 1673 | let $l = prodParts | |
1674 | 1674 | let $s = size($l) | |
1675 | 1675 | let $acc0 = $Tuple4(0, nil, nil, m._4) | |
1676 | 1676 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
1677 | 1677 | then $a | |
1678 | 1678 | else mvP($a, $l[$i]) | |
1679 | 1679 | ||
1680 | 1680 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
1681 | 1681 | then $a | |
1682 | 1682 | else throw("List size exceeds 50") | |
1683 | 1683 | ||
1684 | 1684 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
1685 | 1685 | } | |
1686 | 1686 | else $Tuple4(0, currWhProd, currentPackProd, m._4) | |
1687 | 1687 | let volSaldo = p._4 | |
1688 | 1688 | if ((volSaldo > whSpaceLeft)) | |
1689 | 1689 | then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left")) | |
1690 | 1690 | else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString_2C(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString_2C(p._3, "_"), volSaldo) | |
1691 | 1691 | } | |
1692 | 1692 | } | |
1693 | 1693 | ||
1694 | 1694 | ||
1695 | 1695 | func expeditionInternal (caller,txId) = { | |
1696 | 1696 | let userAddr = toString(caller) | |
1697 | 1697 | let bigNum = abs(toBigInt(txId)) | |
1698 | 1698 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
1699 | 1699 | let landNum = toString(freeNum) | |
1700 | 1700 | let continentIdx = toInt((bigNum % FIVEX)) | |
1701 | 1701 | let terrains = genTerrains(bigNum, continentIdx) | |
1702 | 1702 | let continent = continents[continentIdx] | |
1703 | 1703 | let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false) | |
1704 | 1704 | let assetId = calculateAssetId(issue) | |
1705 | 1705 | let id = toBase58String(assetId) | |
1706 | 1706 | $Tuple2([IntegerEntry(keyNextFreeLandNum(), (freeNum + 1)), issue, StringEntry(keyLandToAssetId(landNum), id), StringEntry(keyLandAssetIdToOwner(id), userAddr), StringEntry(keyLandNumToOwner(landNum), userAddr), IntegerEntry(keyInfraLevelByAssetId(id), 0), IntegerEntry(keyInfraLevelByAssetIdAndOwner(id, userAddr), 0), ScriptTransfer(caller, 1, assetId)], $Tuple2(id, continent)) | |
1707 | 1707 | } | |
1708 | 1708 | ||
1709 | 1709 | ||
1710 | 1710 | func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub))) | |
1711 | 1711 | then throw("signature does not match") | |
1712 | 1712 | else { | |
1713 | 1713 | let parts = split_4C(toUtf8String(message), ";") | |
1714 | 1714 | let flightLog = split_4C(parts[0], "|") | |
1715 | 1715 | let hp = split(flightLog[flHealth], "_") | |
1716 | 1716 | let curHP = parseIntValue(hp[0]) | |
1717 | 1717 | let newHP = parseIntValue(hp[1]) | |
1718 | 1718 | let newLocTxVer = split(parts[1], ":") | |
1719 | 1719 | let newLocation = newLocTxVer[0] | |
1720 | 1720 | let time = parseIntValue(flightLog[flTimestamp]) | |
1721 | 1721 | if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS))) | |
1722 | 1722 | then true | |
1723 | 1723 | else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time)) | |
1724 | 1724 | then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp))) | |
1725 | 1725 | else { | |
1726 | 1726 | let txFromMsg = newLocTxVer[1] | |
1727 | 1727 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
1728 | 1728 | if ((lastTx != txFromMsg)) | |
1729 | 1729 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
1730 | 1730 | else { | |
1731 | 1731 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
1732 | 1732 | let keyHealth = keyDuckHealth(duckAssetId) | |
1733 | 1733 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
1734 | 1734 | let oldFromState = valueOrElse(getInteger(keyHealth), maxHP) | |
1735 | 1735 | if ((oldFromState != curHP)) | |
1736 | 1736 | then throw(((("oldHealth=" + toString(oldFromState)) + " from state does not match one from flight log=") + toString(curHP))) | |
1737 | 1737 | else if ((0 >= curHP)) | |
1738 | 1738 | then throw("You can't fly with zero health") | |
1739 | 1739 | else if (!(canWearCurrentEquipment(duckAssetId))) | |
1740 | 1740 | then throw("Equipment incompatible") | |
1741 | 1741 | else { | |
1742 | 1742 | let bonus = if ((size(flightLog) > flBonus)) | |
1743 | 1743 | then flightLog[flBonus] | |
1744 | 1744 | else "" | |
1745 | 1745 | let prodUsed = if ((size(flightLog) > flProdsUsed)) | |
1746 | 1746 | then flightLog[flProdsUsed] | |
1747 | 1747 | else "" | |
1748 | 1748 | let sentAmount = if (if ((newHP > 0)) | |
1749 | 1749 | then (bonus == "$") | |
1750 | 1750 | else false) | |
1751 | 1751 | then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil)) | |
1752 | 1752 | else 0 | |
1753 | 1753 | $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed) | |
1754 | 1754 | } | |
1755 | 1755 | } | |
1756 | 1756 | } | |
1757 | 1757 | } | |
1758 | 1758 | ||
1759 | 1759 | ||
1760 | 1760 | func applyBonuses (landAssetId,pieces) = { | |
1761 | 1761 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
1762 | 1762 | let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
1763 | 1763 | let add6 = (infraLevel / 6) | |
1764 | 1764 | let add7 = (infraLevel / 7) | |
1765 | 1765 | ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5))) | |
1766 | 1766 | } | |
1767 | 1767 | ||
1768 | 1768 | ||
1769 | 1769 | func checkClaimConditions (addr,claimMode,landAssetIdIn) = { | |
1770 | 1770 | let $t03376734306 = if ((claimMode == claimModeWh)) | |
1771 | 1771 | then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), "")) | |
1772 | 1772 | else { | |
1773 | 1773 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1774 | 1774 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
1775 | 1775 | let loc = split(value(curLocation), "_") | |
1776 | 1776 | if ((loc[locIdxType] != "L")) | |
1777 | 1777 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
1778 | 1778 | else $Tuple2(loc[locIdxId], duckAssetId) | |
1779 | 1779 | } | |
1780 | 1780 | let landAssetId = $t03376734306._1 | |
1781 | 1781 | let duckId = $t03376734306._2 | |
1782 | 1782 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
1783 | 1783 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1784 | 1784 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked")) | |
1785 | 1785 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1786 | 1786 | if ((owner != addr)) | |
1787 | 1787 | then throw((LANDPREFIX + " is not yours")) | |
1788 | 1788 | else { | |
1789 | 1789 | let d = split(asset.description, "_") | |
1790 | 1790 | $Tuple4(duckId, landAssetId, d, savedTime) | |
1791 | 1791 | } | |
1792 | 1792 | } | |
1793 | 1793 | ||
1794 | 1794 | ||
1795 | 1795 | func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount)) | |
1796 | 1796 | then throw("Negative amount") | |
1797 | 1797 | else { | |
1798 | 1798 | let c = checkClaimConditions(addr, claimMode, landAssetIdIn) | |
1799 | 1799 | let landSize = c._3[recLandSize] | |
1800 | 1800 | let terrainCounts = countTerrains(c._3[recTerrains]) | |
1801 | 1801 | let deltaTime = (lastBlock.timestamp - c._4) | |
1802 | 1802 | if ((0 > deltaTime)) | |
1803 | 1803 | then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp))) | |
1804 | 1804 | else { | |
1805 | 1805 | let pieces = numPiecesBySize(landSize) | |
1806 | 1806 | let dailyProductionByPiece = applyBonuses(c._2, pieces) | |
1807 | 1807 | let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS) | |
1808 | 1808 | if ((amount > availRes)) | |
1809 | 1809 | then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount))) | |
1810 | 1810 | else { | |
1811 | 1811 | let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces)) | |
1812 | 1812 | let newTimestamp = (lastBlock.timestamp - newDeltaTime) | |
1813 | 1813 | let landIndex = (pieces / SSIZE) | |
1814 | 1814 | let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece) | |
1815 | 1815 | let whKey = keyWarehouseByLand(c._2) | |
1816 | 1816 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0) | |
1817 | 1817 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
1818 | 1818 | let loft = split(currentWh[whIdxLOFT], "_") | |
1819 | 1819 | let whSpaceLeft = parseIntValue(loft[volFree]) | |
1820 | 1820 | if (if ((claimMode == claimModeWh)) | |
1821 | 1821 | then (amount > whSpaceLeft) | |
1822 | 1822 | else false) | |
1823 | 1823 | then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse")) | |
1824 | 1824 | else { | |
1825 | 1825 | let bpKey = keyBackpackByDuck(c._1) | |
1826 | 1826 | let currentPack = getBackpack(bpKey) | |
1827 | 1827 | let currentPackRes = split(currentPack[bpIdxRes], "_") | |
1828 | 1828 | let currentWhRes = split(currentWh[whIdxRes], "_") | |
1829 | 1829 | let $t03668037551 = if ((claimMode == claimModeWh)) | |
1830 | 1830 | then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2)) | |
1831 | 1831 | else if ((claimMode == claimModeDuck)) | |
1832 | 1832 | then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree])) | |
1833 | 1833 | else { | |
1834 | 1834 | let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft) | |
1835 | 1835 | let whAm = min([parseIntValue(loft[volFree]), resToClaim._2]) | |
1836 | 1836 | $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm)) | |
1837 | 1837 | } | |
1838 | 1838 | let whRes = $t03668037551._1 | |
1839 | 1839 | let bpRes = $t03668037551._2 | |
1840 | 1840 | let loftO = $t03668037551._3 | |
1841 | 1841 | let loftF = $t03668037551._4 | |
1842 | 1842 | $Tuple5([IntegerEntry(keyStakedTimeByAssetId(c._2), newTimestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, c._2, addr), newTimestamp)], bpKey, [currentPack[bpIdxLevel], bpRes, currentPack[bpIdxMat], currentPack[bpIdxProd]], whKey, [currentWh[whIdxLevels], whRes, currentWh[whIdxMat], currentWh[whIdxProd], makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")]) | |
1843 | 1843 | } | |
1844 | 1844 | } | |
1845 | 1845 | } | |
1846 | 1846 | } | |
1847 | 1847 | ||
1848 | 1848 | ||
1849 | 1849 | func claimAll (addr,landAssetId,pieces,claimMode) = { | |
1850 | 1850 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
1851 | 1851 | let savedTime = value(getInteger(timeKey)) | |
1852 | 1852 | let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces) | |
1853 | 1853 | claimResInternal(addr, availRes, claimMode, landAssetId) | |
1854 | 1854 | } | |
1855 | 1855 | ||
1856 | 1856 | ||
1857 | 1857 | func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = { | |
1858 | 1858 | let addr = toString(caller) | |
1859 | 1859 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId) | |
1860 | 1860 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1861 | 1861 | let infraKey = keyInfraLevelByAssetId(c._2) | |
1862 | 1862 | let curLevel = valueOrElse(getInteger(infraKey), 0) | |
1863 | 1863 | if (if (!(KS_ALLOW_BIG_INFRA_MERGE)) | |
1864 | 1864 | then (curLevel >= 3) | |
1865 | 1865 | else false) | |
1866 | 1866 | then throw("Currently max infrastructure level = 3") | |
1867 | 1867 | else { | |
1868 | 1868 | let maxInfra = ((sqrt(pieces, 0, 0, DOWN) / 5) + 2) | |
1869 | 1869 | let newLevel = (curLevel + 1) | |
1870 | 1870 | if (if (KS_ALLOW_BIG_INFRA_MERGE) | |
1871 | 1871 | then (newLevel > maxInfra) | |
1872 | 1872 | else false) | |
1873 | 1873 | then throw(("Currently max infrastructure level = " + toString(maxInfra))) | |
1874 | 1874 | else { | |
1875 | 1875 | let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE) | |
1876 | 1876 | if (if (!(shouldUseMat)) | |
1877 | 1877 | then (paymentAmount != cost) | |
1878 | 1878 | else false) | |
1879 | 1879 | then throw(("Payment attached should be " + toString(cost))) | |
1880 | 1880 | else { | |
1881 | 1881 | let bpKey = keyBackpackByDuck(c._1) | |
1882 | 1882 | let currentPack = getBackpack(bpKey) | |
1883 | 1883 | let mList = split(currentPack[bpIdxMat], "_") | |
1884 | 1884 | let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE) | |
1885 | 1885 | let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_") | |
1886 | 1886 | let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck) | |
1887 | 1887 | let whData = claimResult._5 | |
1888 | 1888 | let oldVol = getWarehouseTotalVolume(whData[whIdxLevels]) | |
1889 | 1889 | let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_") | |
1890 | 1890 | let newVol = getWarehouseTotalVolume(newVolData) | |
1891 | 1891 | let loft = split(whData[whIdxLOFT], "_") | |
1892 | 1892 | let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_") | |
1893 | 1893 | $Tuple3(([IntegerEntry(infraKey, newLevel), IntegerEntry(keyInfraLevelByAssetIdAndOwner(c._2, addr), newLevel), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], claimResult._3[bpIdxRes], newMat, currentPack[bpIdxProd]], ":")), StringEntry(claimResult._4, makeString([newVolData, whData[whIdxRes], whData[whIdxMat], whData[whIdxProd], newLoftStr], ":"))] ++ claimResult._1), newLevel, matUsed) | |
1894 | 1894 | } | |
1895 | 1895 | } | |
1896 | 1896 | } | |
1897 | 1897 | } | |
1898 | 1898 | ||
1899 | 1899 | ||
1900 | 1900 | func updateStatsInternal (lvlKey,xpKey,pointsKey,deltaXP) = { | |
1901 | 1901 | let xp = valueOrElse(getInteger(xpKey), 0) | |
1902 | 1902 | let newXP = (xp + deltaXP) | |
1903 | 1903 | let lvlPoints = levelUp(valueOrElse(getInteger(lvlKey), 0), newXP) | |
1904 | 1904 | $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(pointsKey, (valueOrElse(getInteger(pointsKey), 0) + lvlPoints[1]))], newXP) | |
1905 | 1905 | } | |
1906 | 1906 | ||
1907 | 1907 | ||
1908 | 1908 | func updateDuckStatsInternal (duckAssetId,deltaXP) = { | |
1909 | 1909 | let asset = value(assetInfo(fromBase58String(duckAssetId))) | |
1910 | 1910 | let addr = valueOrErrorMessage(getString(keyDuckIdToOwner(duckAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
1911 | 1911 | if (if (if (KS_ALLOW_ROBO_DUCKS) | |
1912 | 1912 | then (asset.issuer == this) | |
1913 | 1913 | else false) | |
1914 | 1914 | then contains(asset.name, ROBO_PREFIX) | |
1915 | 1915 | else false) | |
1916 | 1916 | then updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1917 | 1917 | else updateStatsInternal(keyDuckLevel(duckAssetId), keyDuckXP(duckAssetId), keyDuckFreePoints(duckAssetId), deltaXP) | |
1918 | 1918 | } | |
1919 | 1919 | ||
1920 | 1920 | ||
1921 | 1921 | func updateAccStatsInternal (addr,deltaXP) = updateStatsInternal(keyUserLevel(addr), keyUserXP(addr), keyUserFreePoints(addr), deltaXP) | |
1922 | 1922 | ||
1923 | 1923 | ||
1924 | 1924 | func activateOnboardArt (addr) = { | |
1925 | 1925 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
1926 | 1926 | let refByKey = keyAddressRefBy(addr) | |
1927 | 1927 | let refBy = getString(refByKey) | |
1928 | 1928 | if (!(isDefined(refBy))) | |
1929 | 1929 | then throw("You are not eligible for ONBOARD artifact") | |
1930 | 1930 | else { | |
1931 | 1931 | let artKey = keyOnboardArtDuckActivatedBy(addr) | |
1932 | 1932 | let artDuck = getString(artKey) | |
1933 | 1933 | if (isDefined(artDuck)) | |
1934 | 1934 | then throw(("You already used your ONBOARD artifact on duck " + value(artDuck))) | |
1935 | 1935 | else { | |
1936 | 1936 | let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId) | |
1937 | 1937 | let duckActivator = getString(duckActivatorKey) | |
1938 | 1938 | if (isDefined(duckActivator)) | |
1939 | 1939 | then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator))) | |
1940 | 1940 | else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1) | |
1941 | 1941 | } | |
1942 | 1942 | } | |
1943 | 1943 | } | |
1944 | 1944 | ||
1945 | 1945 | ||
1946 | 1946 | func activatePresaleArt (addr,landAssetIdIn) = { | |
1947 | 1947 | let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn) | |
1948 | 1948 | let landAssetId = c._2 | |
1949 | 1949 | let pieces = numPiecesBySize(c._3[recLandSize]) | |
1950 | 1950 | let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId) | |
1951 | 1951 | if ((valueOrElse(getInteger(activationKey), 0) > 0)) | |
1952 | 1952 | then throw("Presale artifact is already activated") | |
1953 | 1953 | else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS)) | |
1954 | 1954 | then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact")) | |
1955 | 1955 | else { | |
1956 | 1956 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck) | |
1957 | 1957 | (((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":"))) | |
1958 | 1958 | } | |
1959 | 1959 | } | |
1960 | 1960 | ||
1961 | 1961 | ||
1962 | 1962 | func checkTournament (duckAssetId) = { | |
1963 | 1963 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1964 | 1964 | let curLocation = split(valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1965 | 1965 | let now = lastBlock.timestamp | |
1966 | 1966 | let tData = getTourData(tournamentContract, lastId) | |
1967 | 1967 | let static = tData[idxStatic] | |
1968 | 1968 | let dynamic = tData[idxDynamic] | |
1969 | 1969 | if ((curLocation[locIdxType] != "T")) | |
1970 | 1970 | then false | |
1971 | 1971 | else if (if (if ((parseIntValue(curLocation[locIdxContinent]) == lastId)) | |
1972 | 1972 | then (dynamic[tDynamicStatus] == "INPROGRESS") | |
1973 | 1973 | else false) | |
1974 | 1974 | then (parseIntValue(static[tStaticEnd]) > now) | |
1975 | 1975 | else false) | |
1976 | 1976 | then throw("Your duck is taking part in the tournament") | |
1977 | 1977 | else asBoolean(invoke(this, "exitTournamentInternal", [duckAssetId], nil)) | |
1978 | 1978 | } | |
1979 | 1979 | ||
1980 | 1980 | ||
1981 | 1981 | func checkDelivery (duckAssetId) = { | |
1982 | 1982 | let curLocation = split(valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
1983 | 1983 | let now = lastBlock.timestamp | |
1984 | 1984 | if ((curLocation[locIdxType] != "D")) | |
1985 | 1985 | then false | |
1986 | 1986 | else { | |
1987 | 1987 | let startTime = parseIntValue(curLocation[locIdxContinent]) | |
1988 | 1988 | let distance = parseIntValue(curLocation[locIdxId]) | |
1989 | 1989 | if (if (((startTime + TEN_MINUTES_MILLIS) > now)) | |
1990 | 1990 | then (1 > distance) | |
1991 | 1991 | else false) | |
1992 | 1992 | then throw("Your duck is on delivery mission") | |
1993 | 1993 | else asBoolean(invoke(this, "exitDeliveryInternal", [duckAssetId], nil)) | |
1994 | 1994 | } | |
1995 | 1995 | } | |
1996 | 1996 | ||
1997 | 1997 | ||
1998 | 1998 | func exitDeliveryCommon (duckAssetId,check,newHP,score) = { | |
1999 | 1999 | let curLocation = split(valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION), "_") | |
2000 | 2000 | let now = lastBlock.timestamp | |
2001 | 2001 | let startTime = parseIntValue(curLocation[locIdxContinent]) | |
2002 | 2002 | let distance = parseIntValue(curLocation[locIdxId]) | |
2003 | 2003 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(duckAssetId)), "NFT duck is orphaned") | |
2004 | 2004 | let healthKey = keyDuckHealth(duckAssetId) | |
2005 | 2005 | let curHealth = getIntegerValue(healthKey) | |
2006 | 2006 | let outcomeActions = if (if ((distance > 0)) | |
2007 | 2007 | then true | |
2008 | 2008 | else if (if (check) | |
2009 | 2009 | then (score > 0) | |
2010 | 2010 | else false) | |
2011 | 2011 | then (newHP > 0) | |
2012 | 2012 | else false) | |
2013 | 2013 | then { | |
2014 | 2014 | let reward = invoke(economyContract, "sendDeliveryReward", [owner], nil) | |
2015 | 2015 | if ((reward == reward)) | |
2016 | 2016 | then { | |
2017 | 2017 | let countKey = keyUserDeliveryCount(owner) | |
2018 | 2018 | [IntegerEntry(countKey, (valueOrElse(getInteger(countKey), 0) + 1)), IntegerEntry(keyUserLastDeliveryDay(owner), (startTime / DAYMILLIS))] | |
2019 | 2019 | } | |
2020 | 2020 | else throw("Strict value is not equal to itself.") | |
2021 | 2021 | } | |
2022 | 2022 | else if (if (if (check) | |
2023 | 2023 | then (newHP > 0) | |
2024 | 2024 | else false) | |
2025 | 2025 | then ((startTime + TEN_MINUTES_MILLIS) > now) | |
2026 | 2026 | else false) | |
2027 | 2027 | then throw("Your duck is still on delivery mission") | |
2028 | 2028 | else { | |
2029 | 2029 | let lockedTotal = valueOrElse(getInteger(economyContract, deliveryLockedKey), 0) | |
2030 | 2030 | let unlock = invoke(economyContract, "updateDeliveryLocked", [(lockedTotal - MIN_USDT_FEE_DELIVERY)], nil) | |
2031 | 2031 | if ((unlock == unlock)) | |
2032 | 2032 | then if (if (if (check) | |
2033 | 2033 | then (0 >= newHP) | |
2034 | 2034 | else false) | |
2035 | 2035 | then true | |
2036 | 2036 | else (0 >= curHealth)) | |
2037 | 2037 | then nil | |
2038 | 2038 | else [IntegerEntry(keyDeliveryDelayByDuck(duckAssetId), (startTime + DELIVERY_PUNISHMENT))] | |
2039 | 2039 | else throw("Strict value is not equal to itself.") | |
2040 | 2040 | } | |
2041 | 2041 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
2042 | 2042 | $Tuple3(outcomeActions, [StringEntry(keyDuckLocation(duckAssetId), savedLocation)], savedLocation) | |
2043 | 2043 | } | |
2044 | 2044 | ||
2045 | 2045 | ||
2046 | 2046 | func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,needMat) = { | |
2047 | 2047 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2048 | 2048 | if (checkTournament(duckAssetId)) | |
2049 | 2049 | then throw("mergeInternal_checkTournament") | |
2050 | 2050 | else if (checkDelivery(duckAssetId)) | |
2051 | 2051 | then throw("mergeInternal_checkDelivery") | |
2052 | 2052 | else { | |
2053 | 2053 | func checkMerge (acc,landAssetId) = { | |
2054 | 2054 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2055 | 2055 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2056 | 2056 | let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked")) | |
2057 | 2057 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
2058 | 2058 | if ((owner != addr)) | |
2059 | 2059 | then throw((LANDPREFIX + " is not yours")) | |
2060 | 2060 | else { | |
2061 | 2061 | let d = split(asset.description, "_") | |
2062 | 2062 | let continent = d[recContinent] | |
2063 | 2063 | if (if ((acc._3 != "")) | |
2064 | 2064 | then (acc._3 != continent) | |
2065 | 2065 | else false) | |
2066 | 2066 | then throw("Lands should be on the same continent to merge") | |
2067 | 2067 | else { | |
2068 | 2068 | let landSize = d[recLandSize] | |
2069 | 2069 | let sizesIn = acc._1 | |
2070 | 2070 | let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed") | |
2071 | 2071 | let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1))) | |
2072 | 2072 | let pieces = numPiecesBySize(landSize) | |
2073 | 2073 | let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)) | |
2074 | 2074 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2075 | 2075 | let reqLevel = match landSize { | |
2076 | 2076 | case _ => | |
2077 | 2077 | if (("S" == $match0)) | |
2078 | 2078 | then 3 | |
2079 | 2079 | else if (("M" == $match0)) | |
2080 | 2080 | then 4 | |
2081 | 2081 | else if (("L" == $match0)) | |
2082 | 2082 | then 5 | |
2083 | 2083 | else if (("XL" == $match0)) | |
2084 | 2084 | then 6 | |
2085 | 2085 | else throw("Only S, M, L, XL can merge") | |
2086 | 2086 | } | |
2087 | 2087 | if ((infraLevel != reqLevel)) | |
2088 | 2088 | then throw("All lands should be maxed to merge") | |
2089 | 2089 | else { | |
2090 | 2090 | let landNum = d[recLandNum] | |
2091 | 2091 | let terrainCounts = countTerrains(d[recTerrains]) | |
2092 | 2092 | let deltaTime = (lastBlock.timestamp - savedTime) | |
2093 | 2093 | if ((0 > deltaTime)) | |
2094 | 2094 | then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp))) | |
2095 | 2095 | else { | |
2096 | 2096 | let dailyProductionByPiece = applyBonuses(landAssetId, pieces) | |
2097 | 2097 | let landIndex = (pieces / SSIZE) | |
2098 | 2098 | let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece) | |
2099 | 2099 | let props = updateProportionsInternal(acc._6, terrainCounts, landIndex, -1) | |
2100 | 2100 | let cProps = updateProportionsInternal(acc._10, terrainCounts, landIndex, -1) | |
2101 | 2101 | let sumTerrains = updateProportionsInternal(acc._9, terrainCounts, landIndex, 1) | |
2102 | 2102 | let lands = acc._7 | |
2103 | 2103 | let idx = indexOf(lands, landAssetId) | |
2104 | 2104 | if (!(isDefined(idx))) | |
2105 | 2105 | then throw(("Your staked lands don't contain " + landAssetId)) | |
2106 | 2106 | else { | |
2107 | 2107 | let customKey = keyLandAssetIdToCustomName(landAssetId) | |
2108 | 2108 | let customName = valueOrElse(getString(customKey), "") | |
2109 | 2109 | $Tuple10(sizesOut, arts, continent, bpRes, ((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ DeleteEntry(keyWarehouseByLand(landAssetId))) :+ DeleteEntry(customKey)) :+ Burn(fromBase58String(landAssetId), 1)) ++ (if ((customName != "")) | |
2110 | 2110 | then [DeleteEntry(keyLandCustomNameToAssetId(customName))] | |
2111 | 2111 | else nil)), props, removeByIndex(lands, value(idx)), (acc._8 + pieces), sumTerrains, cProps) | |
2112 | 2112 | } | |
2113 | 2113 | } | |
2114 | 2114 | } | |
2115 | 2115 | } | |
2116 | 2116 | } | |
2117 | 2117 | } | |
2118 | 2118 | ||
2119 | 2119 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2120 | 2120 | let currentPack = getBackpack(bpKey) | |
2121 | 2121 | let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_") | |
2122 | 2122 | let landsKey = keyStakedLandsByOwner(addr) | |
2123 | 2123 | let landsStr = getString(landsKey) | |
2124 | 2124 | let landsIn = if (isDefined(landsStr)) | |
2125 | 2125 | then split_51C(value(landsStr), "_") | |
2126 | 2126 | else nil | |
2127 | 2127 | let cont0 = split(value(assetInfo(fromBase58String(landAssetIds[0]))).description, "_")[recContinent] | |
2128 | 2128 | let contProps = split(valueOrElse(getString(keyResTypesByContinent(cont0)), "0_0_0_0_0_0"), "_") | |
2129 | 2129 | let r = { | |
2130 | 2130 | let $l = landAssetIds | |
2131 | 2131 | let $s = size($l) | |
2132 | 2132 | let $acc0 = $Tuple10(formula, 0, "", currentPack[bpIdxRes], nil, propList, landsIn, 0, split("0_0_0_0_0_0", "_"), contProps) | |
2133 | 2133 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2134 | 2134 | then $a | |
2135 | 2135 | else checkMerge($a, $l[$i]) | |
2136 | 2136 | ||
2137 | 2137 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2138 | 2138 | then $a | |
2139 | 2139 | else throw("List size exceeds 5") | |
2140 | 2140 | ||
2141 | 2141 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
2142 | 2142 | } | |
2143 | 2143 | let continent = r._3 | |
2144 | 2144 | let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent)) | |
2145 | 2145 | let terrains = genTerrainsForMerge(r._9, (numPiecesBySize(newLandSize) / SSIZE)) | |
2146 | 2146 | let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1)) | |
2147 | 2147 | let newLandNum = toString(freeNum) | |
2148 | 2148 | let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false) | |
2149 | 2149 | let assetId = calculateAssetId(issue) | |
2150 | 2150 | let newLandAssetId = toBase58String(assetId) | |
2151 | 2151 | let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_") | |
2152 | 2152 | let piecesKey = keyStakedPiecesByOwner(addr) | |
2153 | 2153 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
2154 | 2154 | $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0)) | |
2155 | 2155 | then StringEntry(landsKey, makeString_11C(r._7, "_")) | |
2156 | 2156 | else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces)) | |
2157 | 2157 | then 0 | |
2158 | 2158 | else (stakedPieces - r._8))) :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), makeString(r._6, "_"))) :+ StringEntry(keyResTypesByContinent(continent), makeString(r._10, "_"))) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId) | |
2159 | 2159 | } | |
2160 | 2160 | } | |
2161 | 2161 | ||
2162 | 2162 | ||
2163 | 2163 | func s2m (addr,landAssetIds) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, 0) | |
2164 | 2164 | ||
2165 | 2165 | ||
2166 | 2166 | func m2l (addr,landAssetIds) = mergeInternal("L", 4, "SMM", addr, landAssetIds, (InfraUpgradeCostS * 4)) | |
2167 | 2167 | ||
2168 | 2168 | ||
2169 | 2169 | func l2xl (addr,landAssetIds) = mergeInternal("XL", 5, "SSSML", addr, landAssetIds, (InfraUpgradeCostS * 47)) | |
2170 | 2170 | ||
2171 | 2171 | ||
2172 | 2172 | func xl2xxl (addr,landAssetIds) = mergeInternal("XXL", 6, "LXL", addr, landAssetIds, (InfraUpgradeCostS * 54)) | |
2173 | 2173 | ||
2174 | 2174 | ||
2175 | 2175 | func mergeCommon (addr,landAssetIds) = match size(landAssetIds) { | |
2176 | 2176 | case _ => | |
2177 | 2177 | if ((4 == $match0)) | |
2178 | 2178 | then s2m(addr, landAssetIds) | |
2179 | 2179 | else if ((3 == $match0)) | |
2180 | 2180 | then m2l(addr, landAssetIds) | |
2181 | 2181 | else if ((5 == $match0)) | |
2182 | 2182 | then l2xl(addr, landAssetIds) | |
2183 | 2183 | else if ((2 == $match0)) | |
2184 | 2184 | then xl2xxl(addr, landAssetIds) | |
2185 | 2185 | else throw("Unknown merge") | |
2186 | 2186 | } | |
2187 | 2187 | ||
2188 | 2188 | ||
2189 | 2189 | func checkOutdatedDelivery (userAddr) = { | |
2190 | 2190 | let duck = getString(keyStakedDuckByOwner(userAddr)) | |
2191 | 2191 | if (isDefined(duck)) | |
2192 | 2192 | then { | |
2193 | 2193 | let duckAssetId = value(duck) | |
2194 | 2194 | let locKey = keyDuckLocation(duckAssetId) | |
2195 | 2195 | let loc = split(valueOrElse(getString(locKey), DEFAULTLOCATION), "_") | |
2196 | 2196 | let startTime = parseIntValue(loc[locIdxContinent]) | |
2197 | 2197 | if (if ((loc[locIdxType] != "D")) | |
2198 | 2198 | then true | |
2199 | 2199 | else ((startTime + TEN_MINUTES_MILLIS) > lastBlock.timestamp)) | |
2200 | 2200 | then nil | |
2201 | 2201 | else { | |
2202 | 2202 | let healthKey = keyDuckHealth(duckAssetId) | |
2203 | 2203 | if ((parseIntValue(loc[locIdxId]) > 0)) | |
2204 | 2204 | then { | |
2205 | 2205 | let reward = invoke(economyContract, "sendDeliveryReward", [userAddr], nil) | |
2206 | 2206 | if ((reward == reward)) | |
2207 | 2207 | then nil | |
2208 | 2208 | else throw("Strict value is not equal to itself.") | |
2209 | 2209 | } | |
2210 | 2210 | else ({ | |
2211 | 2211 | let lockedTotal = valueOrElse(getInteger(economyContract, deliveryLockedKey), 0) | |
2212 | 2212 | let unlock = invoke(economyContract, "updateDeliveryLocked", [(lockedTotal - MIN_USDT_FEE_DELIVERY)], nil) | |
2213 | 2213 | if ((unlock == unlock)) | |
2214 | 2214 | then if ((0 >= getIntegerValue(healthKey))) | |
2215 | 2215 | then nil | |
2216 | 2216 | else { | |
2217 | 2217 | let punishment = invoke(this, "saveInteger", [keyDeliveryDelayByDuck(duckAssetId), (startTime + DELIVERY_PUNISHMENT)], nil) | |
2218 | 2218 | if ((punishment == punishment)) | |
2219 | 2219 | then nil | |
2220 | 2220 | else throw("Strict value is not equal to itself.") | |
2221 | 2221 | } | |
2222 | 2222 | else throw("Strict value is not equal to itself.") | |
2223 | 2223 | } :+ StringEntry(locKey, getStringValue(keySavedLocation(duckAssetId)))) | |
2224 | 2224 | } | |
2225 | 2225 | } | |
2226 | 2226 | else nil | |
2227 | 2227 | } | |
2228 | 2228 | ||
2229 | 2229 | ||
2230 | 2230 | func prolog (i) = if (if ((i.originCaller != restContract)) | |
2231 | 2231 | then valueOrElse(getBoolean(keyBlocked()), false) | |
2232 | 2232 | else false) | |
2233 | 2233 | then throw("Contracts are under maintenance") | |
2234 | 2234 | else { | |
2235 | 2235 | let userAddr = toString(i.originCaller) | |
2236 | 2236 | (checkOutdatedDelivery(userAddr) :+ StringEntry(keyLastTxIdByUser(userAddr), toBase58String(i.transactionId))) | |
2237 | 2237 | } | |
2238 | 2238 | ||
2239 | 2239 | ||
2240 | 2240 | func prologFlight (i) = if (if ((i.originCaller != restContract)) | |
2241 | 2241 | then valueOrElse(getBoolean(keyBlocked()), false) | |
2242 | 2242 | else false) | |
2243 | 2243 | then throw("Contracts are under maintenance") | |
2244 | 2244 | else [StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))] | |
2245 | 2245 | ||
2246 | 2246 | ||
2247 | 2247 | @Callable(i) | |
2248 | 2248 | func constructorV1 (restAddr) = if ((i.caller != this)) | |
2249 | 2249 | then throw("Permission denied") | |
2250 | 2250 | else [StringEntry(keyRestAddress(), restAddr)] | |
2251 | 2251 | ||
2252 | 2252 | ||
2253 | 2253 | ||
2254 | 2254 | @Callable(i) | |
2255 | 2255 | func saveInteger (key,amount) = if ((i.caller != this)) | |
2256 | 2256 | then throw("saveInteger is not public method") | |
2257 | 2257 | else [IntegerEntry(key, amount)] | |
2258 | 2258 | ||
2259 | 2259 | ||
2260 | 2260 | ||
2261 | 2261 | @Callable(i) | |
2262 | 2262 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
2263 | 2263 | then throw("permission denied") | |
2264 | 2264 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
2265 | 2265 | ||
2266 | 2266 | ||
2267 | 2267 | ||
2268 | 2268 | @Callable(i) | |
2269 | 2269 | func stakeLand () = { | |
2270 | 2270 | let prologActions = prolog(i) | |
2271 | 2271 | if ((size(i.payments) != 1)) | |
2272 | 2272 | then throw("Exactly one payment required") | |
2273 | 2273 | else { | |
2274 | 2274 | let pmt = value(i.payments[0]) | |
2275 | 2275 | let assetId = value(pmt.assetId) | |
2276 | 2276 | let address = toString(i.caller) | |
2277 | 2277 | if ((pmt.amount != 1)) | |
2278 | 2278 | then throw((("NFT " + LANDPREFIX) + " token should be attached as payment")) | |
2279 | 2279 | else { | |
2280 | 2280 | let asset = value(assetInfo(assetId)) | |
2281 | 2281 | if ((asset.issuer != this)) | |
2282 | 2282 | then throw("Unknown issuer of token") | |
2283 | 2283 | else if (!(contains(asset.name, LANDPREFIX))) | |
2284 | 2284 | then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted")) | |
2285 | 2285 | else { | |
2286 | 2286 | let landNumSize = drop(asset.name, 4) | |
2287 | 2287 | let landNum = if (contains(landNumSize, "XXL")) | |
2288 | 2288 | then dropRight(landNumSize, 3) | |
2289 | 2289 | else if (contains(landNumSize, "XL")) | |
2290 | 2290 | then dropRight(landNumSize, 2) | |
2291 | 2291 | else dropRight(landNumSize, 1) | |
2292 | 2292 | if (!(isDefined(parseInt(landNum)))) | |
2293 | 2293 | then throw(("Cannot parse land number from " + asset.name)) | |
2294 | 2294 | else { | |
2295 | 2295 | let landAssetId = toBase58String(assetId) | |
2296 | 2296 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2297 | 2297 | if (isDefined(getInteger(timeKey))) | |
2298 | 2298 | then throw((("NFT " + asset.name) + " is already staked")) | |
2299 | 2299 | else { | |
2300 | 2300 | let d = split(asset.description, "_") | |
2301 | 2301 | let terrainCounts = countTerrains(d[recTerrains]) | |
2302 | 2302 | let pieces = numPiecesBySize(d[recLandSize]) | |
2303 | 2303 | let landIndex = (pieces / SSIZE) | |
2304 | 2304 | let props = updateProportions(terrainCounts, landIndex, 1) | |
2305 | 2305 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
2306 | 2306 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
2307 | 2307 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, 1), "_") | |
2308 | 2308 | let landsKey = keyStakedLandsByOwner(address) | |
2309 | 2309 | let landsStr = getString(landsKey) | |
2310 | 2310 | let lands = if (isDefined(landsStr)) | |
2311 | 2311 | then split_51C(value(landsStr), "_") | |
2312 | 2312 | else nil | |
2313 | 2313 | if (containsElement(lands, landAssetId)) | |
2314 | 2314 | then throw(("Your staked lands already contain " + landAssetId)) | |
2315 | 2315 | else if ((size(lands) >= MAX_LANDS_STAKED_BY_USER)) | |
2316 | 2316 | then throw((("Your already staked max (" + toString(MAX_LANDS_STAKED_BY_USER)) + ") lands")) | |
2317 | 2317 | else { | |
2318 | 2318 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2319 | 2319 | let piecesKey = keyStakedPiecesByOwner(address) | |
2320 | 2320 | let oldPieces = valueOrElse(getInteger(piecesKey), 0) | |
2321 | 2321 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
2322 | 2322 | $Tuple2(([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps)] ++ prologActions), wlgResult) | |
2323 | 2323 | } | |
2324 | 2324 | } | |
2325 | 2325 | } | |
2326 | 2326 | } | |
2327 | 2327 | } | |
2328 | 2328 | } | |
2329 | 2329 | } | |
2330 | 2330 | ||
2331 | 2331 | ||
2332 | 2332 | ||
2333 | 2333 | @Callable(i) | |
2334 | 2334 | func unstakeLand (landAssetIdIn) = { | |
2335 | 2335 | let prologActions = prolog(i) | |
2336 | 2336 | if ((size(i.payments) != 0)) | |
2337 | 2337 | then throw("No payments required") | |
2338 | 2338 | else { | |
2339 | 2339 | let addr = toString(i.caller) | |
2340 | 2340 | let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn) | |
2341 | 2341 | let landAssetId = c._2 | |
2342 | 2342 | let d = c._3 | |
2343 | 2343 | let landsKey = keyStakedLandsByOwner(addr) | |
2344 | 2344 | let terrainCounts = countTerrains(d[recTerrains]) | |
2345 | 2345 | let pieces = numPiecesBySize(d[recLandSize]) | |
2346 | 2346 | let landIndex = (pieces / SSIZE) | |
2347 | 2347 | let props = updateProportions(terrainCounts, landIndex, -1) | |
2348 | 2348 | let resByContKey = keyResTypesByContinent(d[recContinent]) | |
2349 | 2349 | let contProps = split(valueOrElse(getString(resByContKey), "0_0_0_0_0_0"), "_") | |
2350 | 2350 | let updatedContProps = makeString(updateProportionsInternal(contProps, terrainCounts, landIndex, -1), "_") | |
2351 | 2351 | let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck) | |
2352 | 2352 | let lands = split_51C(valueOrElse(getString(landsKey), ""), "_") | |
2353 | 2353 | let idx = indexOf(lands, landAssetId) | |
2354 | 2354 | if (!(isDefined(idx))) | |
2355 | 2355 | then throw(("Your staked lands don't contain " + landAssetId)) | |
2356 | 2356 | else { | |
2357 | 2357 | let now = lastBlock.timestamp | |
2358 | 2358 | let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0) | |
2359 | 2359 | if ((govReleaseTime >= now)) | |
2360 | 2360 | then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime))) | |
2361 | 2361 | else { | |
2362 | 2362 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastArbTimeByUser(addr)), 0) + arbitrageDelay) | |
2363 | 2363 | if ((arbReleaseTime > now)) | |
2364 | 2364 | then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime))) | |
2365 | 2365 | else { | |
2366 | 2366 | let piecesKey = keyStakedPiecesByOwner(addr) | |
2367 | 2367 | let stakedPieces = valueOrElse(getInteger(piecesKey), 0) | |
2368 | 2368 | let newPieces = if ((pieces > stakedPieces)) | |
2369 | 2369 | then 0 | |
2370 | 2370 | else (stakedPieces - pieces) | |
2371 | 2371 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [addr], nil) | |
2372 | 2372 | $Tuple2(([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(resByContKey, updatedContProps), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1)) | |
2373 | 2373 | then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_")) | |
2374 | 2374 | else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces)] ++ prologActions), wlgResult) | |
2375 | 2375 | } | |
2376 | 2376 | } | |
2377 | 2377 | } | |
2378 | 2378 | } | |
2379 | 2379 | } | |
2380 | 2380 | ||
2381 | 2381 | ||
2382 | 2382 | ||
2383 | 2383 | @Callable(i) | |
2384 | 2384 | func stakeDuck () = { | |
2385 | 2385 | let prologActions = prolog(i) | |
2386 | 2386 | if ((size(i.payments) != 1)) | |
2387 | 2387 | then throw("Exactly one payment required") | |
2388 | 2388 | else { | |
2389 | 2389 | let pmt = value(i.payments[0]) | |
2390 | 2390 | let assetId = value(pmt.assetId) | |
2391 | 2391 | let address = toString(i.caller) | |
2392 | 2392 | if ((pmt.amount != 1)) | |
2393 | 2393 | then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment")) | |
2394 | 2394 | else { | |
2395 | 2395 | let asset = value(assetInfo(assetId)) | |
2396 | 2396 | let isRobo = if (if (KS_ALLOW_ROBO_DUCKS) | |
2397 | 2397 | then (asset.issuer == this) | |
2398 | 2398 | else false) | |
2399 | 2399 | then contains(asset.name, ROBO_PREFIX) | |
2400 | 2400 | else false | |
2401 | 2401 | if (if (if ((asset.issuer != incubatorAddr)) | |
2402 | 2402 | then (asset.issuer != breederAddr) | |
2403 | 2403 | else false) | |
2404 | 2404 | then !(isRobo) | |
2405 | 2405 | else false) | |
2406 | 2406 | then throw((((("Unknown issuer of " + DUCKPREFIX) + " or ") + ROBO_PREFIX) + " token")) | |
2407 | 2407 | else if (if (!(contains(asset.name, DUCKPREFIX))) | |
2408 | 2408 | then !(isRobo) | |
2409 | 2409 | else false) | |
2410 | 2410 | then throw((((("Only NFT " + DUCKPREFIX) + " or ") + ROBO_PREFIX) + " tokens are accepted")) | |
2411 | 2411 | else { | |
2412 | 2412 | let assetIdStr = toBase58String(assetId) | |
2413 | 2413 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
2414 | 2414 | if (isDefined(getInteger(timeKey))) | |
2415 | 2415 | then throw((("NFT " + asset.name) + " is already staked")) | |
2416 | 2416 | else if (isDefined(getString(keyStakedDuckByOwner(address)))) | |
2417 | 2417 | then throw(("You already staked one duck: " + asset.name)) | |
2418 | 2418 | else { | |
2419 | 2419 | let locKey = keyDuckLocation(assetIdStr) | |
2420 | 2420 | let location = getString(locKey) | |
2421 | 2421 | let bpKey = keyBackpackByDuck(assetIdStr) | |
2422 | 2422 | let backpack = getString(bpKey) | |
2423 | 2423 | let keyHealth = keyDuckHealth(assetIdStr) | |
2424 | 2424 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
2425 | 2425 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2426 | 2426 | ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location)) | |
2427 | 2427 | then nil | |
2428 | 2428 | else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack)) | |
2429 | 2429 | then nil | |
2430 | 2430 | else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyHealth, curHealth)) ++ prologActions))))) | |
2431 | 2431 | } | |
2432 | 2432 | } | |
2433 | 2433 | } | |
2434 | 2434 | } | |
2435 | 2435 | } | |
2436 | 2436 | ||
2437 | 2437 | ||
2438 | 2438 | ||
2439 | 2439 | @Callable(i) | |
2440 | 2440 | func unstakeDuck (assetIdStr) = { | |
2441 | 2441 | let prologActions = prolog(i) | |
2442 | 2442 | if ((size(i.payments) != 0)) | |
2443 | 2443 | then throw("No payments required") | |
2444 | 2444 | else { | |
2445 | 2445 | let assetId = fromBase58String(assetIdStr) | |
2446 | 2446 | let address = toString(i.caller) | |
2447 | 2447 | let asset = value(assetInfo(assetId)) | |
2448 | 2448 | let timeKey = keyStakedTimeByAssetId(assetIdStr) | |
2449 | 2449 | if (!(isDefined(getInteger(timeKey)))) | |
2450 | 2450 | then throw((("NFT " + asset.name) + " is not staked")) | |
2451 | 2451 | else if (!(isDefined(getString(keyStakedDuckByOwner(address))))) | |
2452 | 2452 | then throw((("The duck " + asset.name) + " is not staked")) | |
2453 | 2453 | else { | |
2454 | 2454 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetIdStr)), (("NFT " + asset.name) + " is orphaned")) | |
2455 | 2455 | if ((owner != address)) | |
2456 | 2456 | then throw("Staked NFT is not yours") | |
2457 | 2457 | else if (checkTournament(assetIdStr)) | |
2458 | 2458 | then throw("unstakeDuck_checkTournament") | |
2459 | 2459 | else if (checkDelivery(assetIdStr)) | |
2460 | 2460 | then throw("unstakeDuck_checkDelivery") | |
2461 | 2461 | else { | |
2462 | 2462 | let keyHealth = keyDuckHealth(assetIdStr) | |
2463 | 2463 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0)) | |
2464 | 2464 | let health = valueOrElse(getInteger(keyHealth), maxHP) | |
2465 | 2465 | if ((maxHP > health)) | |
2466 | 2466 | then throw((("Please heal your duck to " + toString(maxHP)) + "hp before unstaking")) | |
2467 | 2467 | else ([ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address))] ++ prologActions) | |
2468 | 2468 | } | |
2469 | 2469 | } | |
2470 | 2470 | } | |
2471 | 2471 | } | |
2472 | 2472 | ||
2473 | 2473 | ||
2474 | 2474 | ||
2475 | 2475 | @Callable(i) | |
2476 | 2476 | func claimRes (amount,landAssetIdStr) = { | |
2477 | 2477 | let prologActions = prolog(i) | |
2478 | 2478 | if ((size(i.payments) != 0)) | |
2479 | 2479 | then throw("No payments required") | |
2480 | 2480 | else { | |
2481 | 2481 | let addr = toString(i.originCaller) | |
2482 | 2482 | let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr) | |
2483 | 2483 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2484 | 2484 | $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._3[bpIdxRes]) | |
2485 | 2485 | } | |
2486 | 2486 | } | |
2487 | 2487 | ||
2488 | 2488 | ||
2489 | 2489 | ||
2490 | 2490 | @Callable(i) | |
2491 | 2491 | func claimResToWH (amount,landAssetIdStr) = { | |
2492 | 2492 | let prologActions = prolog(i) | |
2493 | 2493 | if ((size(i.payments) != 0)) | |
2494 | 2494 | then throw("No payments required") | |
2495 | 2495 | else { | |
2496 | 2496 | let addr = toString(i.originCaller) | |
2497 | 2497 | let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr) | |
2498 | 2498 | $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) ++ prologActions), result._5[whIdxRes]) | |
2499 | 2499 | } | |
2500 | 2500 | } | |
2501 | 2501 | ||
2502 | 2502 | ||
2503 | 2503 | ||
2504 | 2504 | @Callable(i) | |
2505 | 2505 | func flight (message,sig) = { | |
2506 | 2506 | let prologActions = prologFlight(i) | |
2507 | 2507 | if ((size(i.payments) != 0)) | |
2508 | 2508 | then throw("No payments required") | |
2509 | 2509 | else { | |
2510 | 2510 | let userAddr = toString(i.caller) | |
2511 | 2511 | let f = flightCommon(userAddr, message, sig) | |
2512 | 2512 | let newHP = f._1 | |
2513 | 2513 | let duckAssetId = f._2 | |
2514 | 2514 | let locKey = keyDuckLocation(duckAssetId) | |
2515 | 2515 | let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION) | |
2516 | 2516 | let newLocation = f._4 | |
2517 | 2517 | if ((newLocation == curLocation)) | |
2518 | 2518 | then throw("You can't fly to the same location") | |
2519 | 2519 | else { | |
2520 | 2520 | let newLoc = split(newLocation, "_") | |
2521 | 2521 | let isTour = (newLoc[locIdxType] == "T") | |
2522 | 2522 | let isDeliv = (newLoc[locIdxType] == "D") | |
2523 | 2523 | let eqKey = keyDuckEquipment(duckAssetId) | |
2524 | 2524 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
2525 | 2525 | let $t07065470751 = subtractEquipment(currentEq, f._5) | |
2526 | 2526 | let newEq = $t07065470751._1 | |
2527 | 2527 | let shouldZeroBuffs = $t07065470751._2 | |
2528 | 2528 | let $t07075473866 = if (!(onMission(tournamentContract, curLocation))) | |
2529 | 2529 | then if (!(isUsualLocation(newLocation))) | |
2530 | 2530 | then cheatAttempt(curLocation, newLocation, 5) | |
2531 | 2531 | else if ((newHP > 0)) | |
2532 | 2532 | then $Tuple2(newLocation, newHP) | |
2533 | 2533 | else $Tuple2(curLocation, 0) | |
2534 | 2534 | else if (isInTournament(tournamentContract, curLocation)) | |
2535 | 2535 | then if (!(isInTournament(tournamentContract, newLocation))) | |
2536 | 2536 | then throw("Your duck is taking part in the tournament") | |
2537 | 2537 | else { | |
2538 | 2538 | let score = parseIntValue(newLoc[locIdxId]) | |
2539 | 2539 | let curLoc = split(curLocation, "_") | |
2540 | 2540 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
2541 | 2541 | if ((score != (parseIntValue(curLoc[locIdxId]) + 1))) | |
2542 | 2542 | then cheatAttempt(curLocation, newLocation, 7) | |
2543 | 2543 | else if ((newHP > 0)) | |
2544 | 2544 | then { | |
2545 | 2545 | let localBest = valueOrElse(getInteger(tournamentContract, keyBestResultByTourAndDuck(lastId, duckAssetId)), 0) | |
2546 | 2546 | let updLocal = if ((score > localBest)) | |
2547 | 2547 | then invoke(tournamentContract, "saveDuckResult", [duckAssetId, score], nil) | |
2548 | 2548 | else unit | |
2549 | 2549 | if ((updLocal == updLocal)) | |
2550 | 2550 | then $Tuple2(newLocation, newHP) | |
2551 | 2551 | else throw("Strict value is not equal to itself.") | |
2552 | 2552 | } | |
2553 | 2553 | else $Tuple2(curLocation, 0) | |
2554 | 2554 | } | |
2555 | 2555 | else if (!(isInDelivery(curLocation))) | |
2556 | 2556 | then { | |
2557 | 2557 | let savedLoc = asString(invoke(this, "autoExitDelivery", [duckAssetId, newHP, if (isDeliv) | |
2558 | 2558 | then "10" | |
2559 | 2559 | else "11", 0], nil)) | |
2560 | 2560 | if ((savedLoc == savedLoc)) | |
2561 | 2561 | then if (isDeliv) | |
2562 | 2562 | then $Tuple2(savedLoc, newHP) | |
2563 | 2563 | else if ((newHP > 0)) | |
2564 | 2564 | then $Tuple2(newLocation, newHP) | |
2565 | 2565 | else $Tuple2(savedLoc, 0) | |
2566 | 2566 | else throw("Strict value is not equal to itself.") | |
2567 | 2567 | } | |
2568 | 2568 | else if (!(isDeliv)) | |
2569 | 2569 | then throw("Your duck is taking part in delivery") | |
2570 | 2570 | else if (!(isInDelivery(newLocation))) | |
2571 | 2571 | then cheatAttempt(curLocation, newLocation, 13) | |
2572 | 2572 | else { | |
2573 | 2573 | let score = parseIntValue(newLoc[locIdxId]) | |
2574 | 2574 | let curLoc = split(curLocation, "_") | |
2575 | 2575 | if ((score != (parseIntValue(curLoc[locIdxId]) + 1))) | |
2576 | 2576 | then cheatAttempt(curLocation, newLocation, 14) | |
2577 | 2577 | else if (if ((newHP > 0)) | |
2578 | 2578 | then (1 > score) | |
2579 | 2579 | else false) | |
2580 | 2580 | then $Tuple2(newLocation, newHP) | |
2581 | 2581 | else { | |
2582 | 2582 | let savedLoc = asString(invoke(this, "autoExitDelivery", [duckAssetId, newHP, "15-17", score], nil)) | |
2583 | 2583 | if ((savedLoc == savedLoc)) | |
2584 | 2584 | then $Tuple2(savedLoc, newHP) | |
2585 | 2585 | else throw("Strict value is not equal to itself.") | |
2586 | 2586 | } | |
2587 | 2587 | } | |
2588 | 2588 | let locToSave = $t07075473866._1 | |
2589 | 2589 | let hpToSave = $t07075473866._2 | |
2590 | 2590 | $Tuple2(((([StringEntry(locKey, locToSave), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), hpToSave)] ++ prologActions) ++ (if (shouldZeroBuffs) | |
2591 | 2591 | then [StringEntry(keyDuckBuffs(duckAssetId), "0_0_0_0_0")] | |
2592 | 2592 | else nil)) ++ updateDuckStatsInternal(duckAssetId, if ((newHP > 0)) | |
2593 | 2593 | then xpSuccessFlight | |
2594 | 2594 | else xpFailFlight)._1), f._3) | |
2595 | 2595 | } | |
2596 | 2596 | } | |
2597 | 2597 | } | |
2598 | 2598 | ||
2599 | 2599 | ||
2600 | 2600 | ||
2601 | 2601 | @Callable(i) | |
2602 | 2602 | func heal (quantityL1,quantityL2,quantityL3) = { | |
2603 | 2603 | let prologActions = prolog(i) | |
2604 | 2604 | if (if (if ((0 > quantityL1)) | |
2605 | 2605 | then true | |
2606 | 2606 | else (0 > quantityL2)) | |
2607 | 2607 | then true | |
2608 | 2608 | else (0 > quantityL3)) | |
2609 | 2609 | then throw("Quantity cannot be negative") | |
2610 | 2610 | else { | |
2611 | 2611 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2612 | 2612 | if (checkTournament(duckAssetId)) | |
2613 | 2613 | then throw("heal_checkTournament") | |
2614 | 2614 | else if (checkDelivery(duckAssetId)) | |
2615 | 2615 | then throw("heal_checkDelivery") | |
2616 | 2616 | else { | |
2617 | 2617 | let qts = [quantityL1, quantityL2, quantityL3] | |
2618 | 2618 | let keyHealth = keyDuckHealth(duckAssetId) | |
2619 | 2619 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
2620 | 2620 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2621 | 2621 | if ((oldHealth >= maxHP)) | |
2622 | 2622 | then throw((("HP should be < " + toString(maxHP)) + " to heal")) | |
2623 | 2623 | else { | |
2624 | 2624 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2625 | 2625 | let currentPack = getBackpack(bpKey) | |
2626 | 2626 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
2627 | 2627 | then nil | |
2628 | 2628 | else split_4C(currentPack[bpIdxProd], "_") | |
2629 | 2629 | func iterateProd (acc,recipe) = { | |
2630 | 2630 | let n = acc._2 | |
2631 | 2631 | let x = if ((size(prodList) > n)) | |
2632 | 2632 | then parseIntValue(prodList[n]) | |
2633 | 2633 | else 0 | |
2634 | 2634 | if ((3 > n)) | |
2635 | 2635 | then { | |
2636 | 2636 | let q = qts[n] | |
2637 | 2637 | if ((q > x)) | |
2638 | 2638 | then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n])) | |
2639 | 2639 | else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (parseIntValue(split(recipe, "_")[rIdxEffect]) * q))) | |
2640 | 2640 | } | |
2641 | 2641 | else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3) | |
2642 | 2642 | } | |
2643 | 2643 | ||
2644 | 2644 | let result = { | |
2645 | 2645 | let $l = productionMatrix | |
2646 | 2646 | let $s = size($l) | |
2647 | 2647 | let $acc0 = $Tuple3(nil, 0, 0) | |
2648 | 2648 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2649 | 2649 | then $a | |
2650 | 2650 | else iterateProd($a, $l[$i]) | |
2651 | 2651 | ||
2652 | 2652 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2653 | 2653 | then $a | |
2654 | 2654 | else throw("List size exceeds 50") | |
2655 | 2655 | ||
2656 | 2656 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50) | |
2657 | 2657 | } | |
2658 | 2658 | let newHealth = min([maxHP, (oldHealth + result._3)]) | |
2659 | 2659 | $Tuple2((([IntegerEntry(keyHealth, newHealth), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(result._1, "_")], ":"))] ++ prologActions) ++ updateDuckStatsInternal(duckAssetId, (xpHeal * ((quantityL1 + quantityL2) + quantityL3)))._1), newHealth) | |
2660 | 2660 | } | |
2661 | 2661 | } | |
2662 | 2662 | } | |
2663 | 2663 | } | |
2664 | 2664 | ||
2665 | 2665 | ||
2666 | 2666 | ||
2667 | 2667 | @Callable(i) | |
2668 | 2668 | func healES () = { | |
2669 | 2669 | let prologActions = prolog(i) | |
2670 | 2670 | if ((size(i.payments) != 1)) | |
2671 | 2671 | then throw("Exactly one payment required") | |
2672 | 2672 | else { | |
2673 | 2673 | let pmt = value(i.payments[0]) | |
2674 | 2674 | if ((pmt.assetId != usdtAssetId)) | |
2675 | 2675 | then throw("Allowed USDT payment only!") | |
2676 | 2676 | else { | |
2677 | 2677 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2678 | 2678 | if (checkTournament(duckAssetId)) | |
2679 | 2679 | then throw("healES_checkTournament") | |
2680 | 2680 | else if (checkDelivery(duckAssetId)) | |
2681 | 2681 | then throw("healES_checkDelivery") | |
2682 | 2682 | else { | |
2683 | 2683 | let keyHealth = keyDuckHealth(duckAssetId) | |
2684 | 2684 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
2685 | 2685 | let oldHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
2686 | 2686 | if ((oldHealth > 0)) | |
2687 | 2687 | then throw("HP should be 0 to call Emergency Service") | |
2688 | 2688 | else { | |
2689 | 2689 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2690 | 2690 | let currentPack = getBackpack(bpKey) | |
2691 | 2691 | let prodList = if ((currentPack[bpIdxProd] == "")) | |
2692 | 2692 | then nil | |
2693 | 2693 | else split_4C(currentPack[bpIdxProd], "_") | |
2694 | 2694 | let medKitAmount1 = if ((size(prodList) > 0)) | |
2695 | 2695 | then parseIntValue(prodList[0]) | |
2696 | 2696 | else 0 | |
2697 | 2697 | let medKitAmount2 = if ((size(prodList) > 1)) | |
2698 | 2698 | then parseIntValue(prodList[1]) | |
2699 | 2699 | else 0 | |
2700 | 2700 | let medKitAmount3 = if ((size(prodList) > 2)) | |
2701 | 2701 | then parseIntValue(prodList[2]) | |
2702 | 2702 | else 0 | |
2703 | 2703 | if (if (if ((medKitAmount1 > 0)) | |
2704 | 2704 | then true | |
2705 | 2705 | else (medKitAmount2 > 0)) | |
2706 | 2706 | then true | |
2707 | 2707 | else (medKitAmount3 > 0)) | |
2708 | 2708 | then throw("You have to use own Medical Kit") | |
2709 | 2709 | else { | |
2710 | 2710 | let existStr = getString(economyContract, keyEsWarehouse()) | |
2711 | 2711 | let existAmounts = if (isDefined(existStr)) | |
2712 | 2712 | then split_4C(value(existStr), "_") | |
2713 | 2713 | else nil | |
2714 | 2714 | let existAmount = if ((size(existAmounts) > 0)) | |
2715 | 2715 | then parseIntValue(existAmounts[0]) | |
2716 | 2716 | else 0 | |
2717 | 2717 | if ((0 >= existAmount)) | |
2718 | 2718 | then throw("There are no Medical Kits L1 at Emergency Service storage") | |
2719 | 2719 | else { | |
2720 | 2720 | let newHealth = (oldHealth + parseIntValue(split(productionMatrix[0], "_")[rIdxEffect])) | |
2721 | 2721 | let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_") | |
2722 | 2722 | let recipe = split(productionMatrix[0], "_") | |
2723 | 2723 | let totalMat = getRecipeMaterials(recipe) | |
2724 | 2724 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
2725 | 2725 | if ((pmt.amount != sellPrice)) | |
2726 | 2726 | then throw(("Payment attached should be " + toString(sellPrice))) | |
2727 | 2727 | else { | |
2728 | 2728 | let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)])) | |
2729 | 2729 | $Tuple2(((prologActions :+ IntegerEntry(keyHealth, newHealth)) ++ updateDuckStatsInternal(duckAssetId, xpCallES)._1), result) | |
2730 | 2730 | } | |
2731 | 2731 | } | |
2732 | 2732 | } | |
2733 | 2733 | } | |
2734 | 2734 | } | |
2735 | 2735 | } | |
2736 | 2736 | } | |
2737 | 2737 | } | |
2738 | 2738 | ||
2739 | 2739 | ||
2740 | 2740 | ||
2741 | 2741 | @Callable(i) | |
2742 | 2742 | func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract)) | |
2743 | 2743 | then throw("permission denied") | |
2744 | 2744 | else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack) | |
2745 | 2745 | ||
2746 | 2746 | ||
2747 | 2747 | ||
2748 | 2748 | @Callable(i) | |
2749 | 2749 | func commitForRandom () = { | |
2750 | 2750 | let prologActions = prolog(i) | |
2751 | 2751 | let finishBlock = (height + randomDelay) | |
2752 | 2752 | let addr = toString(i.caller) | |
2753 | 2753 | $Tuple2(([IntegerEntry(keyCommit(addr), finishBlock)] ++ prologActions), finishBlock) | |
2754 | 2754 | } | |
2755 | 2755 | ||
2756 | 2756 | ||
2757 | 2757 | ||
2758 | 2758 | @Callable(i) | |
2759 | 2759 | func buySLand () = { | |
2760 | 2760 | let prologActions = prolog(i) | |
2761 | 2761 | if ((size(i.payments) != 1)) | |
2762 | 2762 | then throw("Exactly one payment required") | |
2763 | 2763 | else { | |
2764 | 2764 | let pmt = value(i.payments[0]) | |
2765 | 2765 | if ((pmt.assetId != usdtAssetId)) | |
2766 | 2766 | then throw("Allowed USDT payment only!") | |
2767 | 2767 | else if ((pmt.amount != EXPUSDT)) | |
2768 | 2768 | then throw(("Payment attached should be " + toString(EXPUSDT))) | |
2769 | 2769 | else { | |
2770 | 2770 | let result = expeditionInternal(i.caller, i.transactionId) | |
2771 | 2771 | let acresResult = asInt(invoke(acresContract, "burnAcres", [S_COST_ACRES], nil)) | |
2772 | 2772 | $Tuple2((((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) ++ prologActions), $Tuple2(result._2._1, acresResult)) | |
2773 | 2773 | } | |
2774 | 2774 | } | |
2775 | 2775 | } | |
2776 | 2776 | ||
2777 | 2777 | ||
2778 | 2778 | ||
2779 | 2779 | @Callable(i) | |
2780 | 2780 | func expedition (message,sig) = { | |
2781 | 2781 | let prologActions = prolog(i) | |
2782 | 2782 | if ((size(i.payments) != 0)) | |
2783 | 2783 | then throw("No payments required") | |
2784 | 2784 | else { | |
2785 | 2785 | let userAddr = toString(i.caller) | |
2786 | 2786 | let f = flightCommon(userAddr, message, sig) | |
2787 | 2787 | let duckAssetId = f._2 | |
2788 | 2788 | let keyHealth = keyDuckHealth(duckAssetId) | |
2789 | 2789 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2790 | 2790 | let currentPack = getBackpack(bpKey) | |
2791 | 2791 | let mList = split(currentPack[bpIdxMat], "_") | |
2792 | 2792 | let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_") | |
2793 | 2793 | let eqKey = keyDuckEquipment(duckAssetId) | |
2794 | 2794 | let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,") | |
2795 | 2795 | let $t08130681403 = subtractEquipment(currentEq, f._5) | |
2796 | 2796 | let newEq = $t08130681403._1 | |
2797 | 2797 | let shouldZeroBuffs = $t08130681403._2 | |
2798 | 2798 | let e = expeditionInternal(i.caller, i.transactionId) | |
2799 | 2799 | let id = e._2._1 | |
2800 | 2800 | let result = if ((0 >= f._1)) | |
2801 | 2801 | then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0) | |
2802 | 2802 | else $Tuple3((e._1 ++ (if (shouldZeroBuffs) | |
2803 | 2803 | then [StringEntry(keyDuckBuffs(duckAssetId), "0_0_0_0_0")] | |
2804 | 2804 | else ((((nil :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(eqKey, newEq)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))))), id, f._3) | |
2805 | 2805 | if (checkTournament(duckAssetId)) | |
2806 | 2806 | then throw("expedition_checkTournament") | |
2807 | 2807 | else if (checkDelivery(duckAssetId)) | |
2808 | 2808 | then throw("expedition_checkDelivery") | |
2809 | 2809 | else { | |
2810 | 2810 | let acresResult = asInt(invoke(acresContract, "burnAcres", [S_COST_ACRES], nil)) | |
2811 | 2811 | $Tuple2(((result._1 ++ updateDuckStatsInternal(duckAssetId, xpNewSLand)._1) ++ prologActions), $Tuple3(result._2, result._3, acresResult)) | |
2812 | 2812 | } | |
2813 | 2813 | } | |
2814 | 2814 | } | |
2815 | 2815 | ||
2816 | 2816 | ||
2817 | 2817 | ||
2818 | 2818 | @Callable(i) | |
2819 | 2819 | func buySLandForAcres () = { | |
2820 | 2820 | let prologActions = prolog(i) | |
2821 | 2821 | if ((size(i.payments) != 1)) | |
2822 | 2822 | then throw("exactly 1 payment must be attached") | |
2823 | 2823 | else { | |
2824 | 2824 | let pmt = i.payments[0] | |
2825 | 2825 | let amt = pmt.amount | |
2826 | 2826 | if (if (!(isDefined(pmt.assetId))) | |
2827 | 2827 | then true | |
2828 | 2828 | else (value(pmt.assetId) != acresAssetId)) | |
2829 | 2829 | then throw("ACRES payments only!") | |
2830 | 2830 | else if ((amt != S_COST_ACRES)) | |
2831 | 2831 | then throw(("Payment attached should be " + toString(S_COST_ACRES))) | |
2832 | 2832 | else { | |
2833 | 2833 | let result = expeditionInternal(i.caller, i.transactionId) | |
2834 | 2834 | let acresResult = asInt(invoke(acresContract, "burnAcres", [S_COST_ACRES], [AttachedPayment(acresAssetId, amt)])) | |
2835 | 2835 | $Tuple2(((result._1 ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) ++ prologActions), $Tuple2(result._2._1, acresResult)) | |
2836 | 2836 | } | |
2837 | 2837 | } | |
2838 | 2838 | } | |
2839 | 2839 | ||
2840 | 2840 | ||
2841 | 2841 | ||
2842 | 2842 | @Callable(i) | |
2843 | 2843 | func upgradeInfra (landAssetId) = { | |
2844 | 2844 | let prologActions = prolog(i) | |
2845 | 2845 | if ((size(i.payments) != 0)) | |
2846 | 2846 | then throw("No payments required") | |
2847 | 2847 | else { | |
2848 | 2848 | let result = upInfraCommon(true, i.caller, 0, landAssetId) | |
2849 | 2849 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
2850 | 2850 | $Tuple2(((result._1 ++ prologActions) ++ updateDuckStatsInternal(duckAssetId, fraction(xpUpgradeInfra, result._3, MULT8))._1), result._2) | |
2851 | 2851 | } | |
2852 | 2852 | } | |
2853 | 2853 | ||
2854 | 2854 | ||
2855 | 2855 | ||
2856 | 2856 | @Callable(i) | |
2857 | 2857 | func activateArtifact (artName,landAssetIdOpt) = { | |
2858 | 2858 | let prologActions = prolog(i) | |
2859 | 2859 | if ((size(i.payments) != 0)) | |
2860 | 2860 | then throw("No payments required") | |
2861 | 2861 | else { | |
2862 | 2862 | let addr = toString(i.caller) | |
2863 | 2863 | let result = match artName { | |
2864 | 2864 | case _ => | |
2865 | 2865 | if (("PRESALE" == $match0)) | |
2866 | 2866 | then activatePresaleArt(addr, landAssetIdOpt) | |
2867 | 2867 | else if (("ONBOARD" == $match0)) | |
2868 | 2868 | then activateOnboardArt(addr) | |
2869 | 2869 | else throw("Unknown artifact") | |
2870 | 2870 | } | |
2871 | 2871 | (result ++ prologActions) | |
2872 | 2872 | } | |
2873 | 2873 | } | |
2874 | 2874 | ||
2875 | 2875 | ||
2876 | 2876 | ||
2877 | 2877 | @Callable(i) | |
2878 | 2878 | func mergeLands (landAssetIds) = { | |
2879 | 2879 | let prologActions = prolog(i) | |
2880 | 2880 | if ((size(i.payments) != 0)) | |
2881 | 2881 | then throw("No payments required") | |
2882 | 2882 | else { | |
2883 | 2883 | let result = mergeCommon(toString(i.caller), landAssetIds) | |
2884 | 2884 | $Tuple2(((result._1 ++ prologActions) ++ updateAccStatsInternal(toString(i.caller), xpMerge)._1), result._2) | |
2885 | 2885 | } | |
2886 | 2886 | } | |
2887 | 2887 | ||
2888 | 2888 | ||
2889 | 2889 | ||
2890 | 2890 | @Callable(i) | |
2891 | 2891 | func cargoExchange (cargoListStr,landAssetId) = { | |
2892 | 2892 | let prologActions = prolog(i) | |
2893 | 2893 | if ((size(i.payments) != 0)) | |
2894 | 2894 | then throw("No payments required") | |
2895 | 2895 | else { | |
2896 | 2896 | let cargoParts = split_4C(cargoListStr, ":") | |
2897 | 2897 | let addr = toString(i.originCaller) | |
2898 | 2898 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
2899 | 2899 | let timeKey = keyStakedTimeByAssetId(landAssetId) | |
2900 | 2900 | if (!(isDefined(getInteger(timeKey)))) | |
2901 | 2901 | then throw((asset.name + " is not staked")) | |
2902 | 2902 | else { | |
2903 | 2903 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned")) | |
2904 | 2904 | if ((owner != addr)) | |
2905 | 2905 | then throw((LANDPREFIX + " is not yours")) | |
2906 | 2906 | else { | |
2907 | 2907 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
2908 | 2908 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
2909 | 2909 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
2910 | 2910 | let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION) | |
2911 | 2911 | let loc = split(value(curLocation), "_") | |
2912 | 2912 | if ((loc[locIdxType] != "L")) | |
2913 | 2913 | then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L")) | |
2914 | 2914 | else if ((loc[locIdxId] != landAssetId)) | |
2915 | 2915 | then throw(("Duck should be on the land " + landAssetId)) | |
2916 | 2916 | else { | |
2917 | 2917 | let whKey = keyWarehouseByLand(landAssetId) | |
2918 | 2918 | let currentWh = getWarehouse(whKey, landIndex, infraLevel) | |
2919 | 2919 | let bpKey = keyBackpackByDuck(duckAssetId) | |
2920 | 2920 | let currentPack = getBackpack(bpKey) | |
2921 | 2921 | let result = moveStuff(cargoParts, currentWh, currentPack) | |
2922 | 2922 | let loft = split(currentWh[whIdxLOFT], "_") | |
2923 | 2923 | let loftO = (parseIntValue(loft[volOccupied]) + result._7) | |
2924 | 2924 | let loftF = (parseIntValue(loft[volFree]) - result._7) | |
2925 | 2925 | ([StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString_2C([currentWh[whIdxLevels], result._1, result._2, result._3, makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")], ":"))] ++ prologActions) | |
2926 | 2926 | } | |
2927 | 2927 | } | |
2928 | 2928 | } | |
2929 | 2929 | } | |
2930 | 2930 | } | |
2931 | 2931 | ||
2932 | 2932 | ||
2933 | 2933 | ||
2934 | 2934 | @Callable(i) | |
2935 | 2935 | func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract)) | |
2936 | 2936 | then throw("Access denied") | |
2937 | 2937 | else { | |
2938 | 2938 | let whKey = keyWarehouseByLand(landAssetId) | |
2939 | 2939 | let wh = split_4C(whStr, ":") | |
2940 | 2940 | if ((size(wh) != 5)) | |
2941 | 2941 | then throw("warehouse string should contain 4 ':' separators") | |
2942 | 2942 | else { | |
2943 | 2943 | let loftL = split(wh[whIdxLOFT], "_")[volLocked] | |
2944 | 2944 | let loftO = getWarehouseOccupiedVol(wh) | |
2945 | 2945 | let loftT = getWarehouseTotalVolume(wh[whIdxLevels]) | |
2946 | 2946 | let loftF = ((loftT - parseIntValue(loftL)) - loftO) | |
2947 | 2947 | if ((0 > loftF)) | |
2948 | 2948 | then throw("Operation leads to negative free warehouse space") | |
2949 | 2949 | else { | |
2950 | 2950 | let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":") | |
2951 | 2951 | $Tuple2([StringEntry(whKey, newWhStr)], newWhStr) | |
2952 | 2952 | } | |
2953 | 2953 | } | |
2954 | 2954 | } | |
2955 | 2955 | ||
2956 | 2956 | ||
2957 | 2957 | ||
2958 | 2958 | @Callable(i) | |
2959 | 2959 | func setCustomName (assetId,customName,type) = { | |
2960 | 2960 | let prologActions = prolog(i) | |
2961 | 2961 | if ((size(i.payments) != 1)) | |
2962 | 2962 | then throw("Exactly one payment required") | |
2963 | 2963 | else { | |
2964 | 2964 | let pmt = value(i.payments[0]) | |
2965 | 2965 | if ((pmt.assetId != usdtAssetId)) | |
2966 | 2966 | then throw("Allowed USDT payment only!") | |
2967 | 2967 | else if ((pmt.amount != RENAMINGCOST)) | |
2968 | 2968 | then throw(("Payment should be " + toString(RENAMINGCOST))) | |
2969 | 2969 | else if (contains(customName, "__")) | |
2970 | 2970 | then throw(("Name should not contain '__': " + customName)) | |
2971 | 2971 | else if ((size(customName) > MAXNAMELEN)) | |
2972 | 2972 | then throw(("Name too long, maxLength=" + toString(MAXNAMELEN))) | |
2973 | 2973 | else { | |
2974 | 2974 | let addr = toString(i.originCaller) | |
2975 | 2975 | let actions = match type { | |
2976 | 2976 | case _ => | |
2977 | 2977 | if (("ACCOUNT" == $match0)) | |
2978 | 2978 | then { | |
2979 | 2979 | let reverseKey = keyCustomNameToAddress(customName) | |
2980 | 2980 | let nameOwner = getString(reverseKey) | |
2981 | 2981 | if (isDefined(nameOwner)) | |
2982 | 2982 | then throw(("Name already registered: " + customName)) | |
2983 | 2983 | else { | |
2984 | 2984 | let addrToNameKey = keyAddressToCustomName(addr) | |
2985 | 2985 | let oldName = getString(addrToNameKey) | |
2986 | 2986 | let freeOld = if (isDefined(oldName)) | |
2987 | 2987 | then [DeleteEntry(keyCustomNameToAddress(value(oldName)))] | |
2988 | 2988 | else nil | |
2989 | 2989 | (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
2990 | 2990 | } | |
2991 | 2991 | } | |
2992 | 2992 | else if (("LAND" == $match0)) | |
2993 | 2993 | then { | |
2994 | 2994 | let asset = value(assetInfo(fromBase58String(assetId))) | |
2995 | 2995 | let timeKey = keyStakedTimeByAssetId(assetId) | |
2996 | 2996 | if (!(isDefined(getInteger(timeKey)))) | |
2997 | 2997 | then throw((asset.name + " is not staked")) | |
2998 | 2998 | else { | |
2999 | 2999 | let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
3000 | 3000 | if ((owner != addr)) | |
3001 | 3001 | then throw((LANDPREFIX + " is not yours")) | |
3002 | 3002 | else { | |
3003 | 3003 | let reverseKey = keyLandCustomNameToAssetId(customName) | |
3004 | 3004 | let nameOwner = getString(reverseKey) | |
3005 | 3005 | if (isDefined(nameOwner)) | |
3006 | 3006 | then throw(("Name already registered: " + customName)) | |
3007 | 3007 | else { | |
3008 | 3008 | let assetToNameKey = keyLandAssetIdToCustomName(assetId) | |
3009 | 3009 | let oldName = getString(assetToNameKey) | |
3010 | 3010 | let freeOld = if (isDefined(oldName)) | |
3011 | 3011 | then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))] | |
3012 | 3012 | else nil | |
3013 | 3013 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1) | |
3014 | 3014 | } | |
3015 | 3015 | } | |
3016 | 3016 | } | |
3017 | 3017 | } | |
3018 | 3018 | else if (("DUCK" == $match0)) | |
3019 | 3019 | then { | |
3020 | 3020 | let asset = value(assetInfo(fromBase58String(assetId))) | |
3021 | 3021 | let timeKey = keyStakedTimeByAssetId(assetId) | |
3022 | 3022 | if (if (!(isDefined(getInteger(timeKey)))) | |
3023 | 3023 | then true | |
3024 | 3024 | else !(isDefined(getString(keyStakedDuckByOwner(addr))))) | |
3025 | 3025 | then throw((asset.name + " is not staked")) | |
3026 | 3026 | else { | |
3027 | 3027 | let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned")) | |
3028 | 3028 | if ((owner != addr)) | |
3029 | 3029 | then throw((DUCKPREFIX + " is not yours")) | |
3030 | 3030 | else { | |
3031 | 3031 | let reverseKey = keyDuckCustomNameToAssetId(customName) | |
3032 | 3032 | let nameOwner = getString(reverseKey) | |
3033 | 3033 | if (isDefined(nameOwner)) | |
3034 | 3034 | then throw(("Name already registered: " + customName)) | |
3035 | 3035 | else { | |
3036 | 3036 | let assetToNameKey = keyDuckAssetIdToCustomName(assetId) | |
3037 | 3037 | let oldName = getString(assetToNameKey) | |
3038 | 3038 | let freeOld = if (isDefined(oldName)) | |
3039 | 3039 | then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))] | |
3040 | 3040 | else nil | |
3041 | 3041 | (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1) | |
3042 | 3042 | } | |
3043 | 3043 | } | |
3044 | 3044 | } | |
3045 | 3045 | } | |
3046 | 3046 | else throw("Unknown entity type") | |
3047 | 3047 | } | |
3048 | 3048 | $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ prologActions), 0) | |
3049 | 3049 | } | |
3050 | 3050 | } | |
3051 | 3051 | } | |
3052 | 3052 | ||
3053 | 3053 | ||
3054 | 3054 | ||
3055 | 3055 | @Callable(i) | |
3056 | 3056 | func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub)) | |
3057 | 3057 | then throw("Permission denied") | |
3058 | 3058 | else { | |
3059 | 3059 | let prologActions = prolog(i) | |
3060 | 3060 | if ((size(i.payments) != 0)) | |
3061 | 3061 | then throw("No payments required") | |
3062 | 3062 | else if (!(isDefined(addressFromString(oldPlayer)))) | |
3063 | 3063 | then throw(("Invalid address: " + oldPlayer)) | |
3064 | 3064 | else if (!(isDefined(addressFromString(newPlayer)))) | |
3065 | 3065 | then throw(("Invalid address: " + newPlayer)) | |
3066 | 3066 | else { | |
3067 | 3067 | let oldsKey = keyOldies() | |
3068 | 3068 | let olds = getString(oldsKey) | |
3069 | 3069 | let oldies = if (isDefined(olds)) | |
3070 | 3070 | then split_4C(value(olds), "_") | |
3071 | 3071 | else nil | |
3072 | 3072 | if (containsElement(oldies, newPlayer)) | |
3073 | 3073 | then throw((newPlayer + " is not newbie (already has referrals)")) | |
3074 | 3074 | else { | |
3075 | 3075 | let refByKey = keyAddressRefBy(newPlayer) | |
3076 | 3076 | let refBy = getString(refByKey) | |
3077 | 3077 | if (if (isDefined(refBy)) | |
3078 | 3078 | then isDefined(addressFromString(value(refBy))) | |
3079 | 3079 | else false) | |
3080 | 3080 | then throw(((newPlayer + " already has refBy: ") + value(refBy))) | |
3081 | 3081 | else { | |
3082 | 3082 | let refsKey = keyAddressReferrals(oldPlayer) | |
3083 | 3083 | let refs = getString(refsKey) | |
3084 | 3084 | let refsArray = if (isDefined(refs)) | |
3085 | 3085 | then split_4C(value(refs), "_") | |
3086 | 3086 | else nil | |
3087 | 3087 | if (containsElement(refsArray, newPlayer)) | |
3088 | 3088 | then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals")) | |
3089 | 3089 | else { | |
3090 | 3090 | let newRefs = makeString_2C((refsArray :+ newPlayer), "_") | |
3091 | 3091 | let newOlds = if (containsElement(oldies, oldPlayer)) | |
3092 | 3092 | then value(olds) | |
3093 | 3093 | else makeString_2C((oldies :+ oldPlayer), "_") | |
3094 | 3094 | $Tuple2(([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds)] ++ prologActions), 0) | |
3095 | 3095 | } | |
3096 | 3096 | } | |
3097 | 3097 | } | |
3098 | 3098 | } | |
3099 | 3099 | } | |
3100 | 3100 | ||
3101 | 3101 | ||
3102 | 3102 | ||
3103 | 3103 | @Callable(i) | |
3104 | 3104 | func distributePoints (strength,accuracy,intellect,endurance,dexterity) = { | |
3105 | 3105 | let prologActions = prolog(i) | |
3106 | 3106 | if ((size(i.payments) != 0)) | |
3107 | 3107 | then throw("No payments required") | |
3108 | 3108 | else { | |
3109 | 3109 | let addr = toString(i.originCaller) | |
3110 | 3110 | let virtWlgData = asAnyList(invoke(wlgContract, "checkWlgXpREADONLY", [addr], nil)) | |
3111 | 3111 | let virtWlgPoints = asInt(virtWlgData[1]) | |
3112 | 3112 | let $t09702397413 = if ((0 >= virtWlgPoints)) | |
3113 | 3113 | then $Tuple2(0, nil) | |
3114 | 3114 | else { | |
3115 | 3115 | let deltaXP = asInt(invoke(wlgContract, "takeWlgXp", [addr], nil)) | |
3116 | 3116 | if ((deltaXP == deltaXP)) | |
3117 | 3117 | then $Tuple2(virtWlgPoints, [IntegerEntry(keyUserLevel(addr), asInt(virtWlgData[0])), IntegerEntry(keyUserXP(addr), asInt(virtWlgData[2]))]) | |
3118 | 3118 | else throw("Strict value is not equal to itself.") | |
3119 | 3119 | } | |
3120 | 3120 | let wlgPoints = $t09702397413._1 | |
3121 | 3121 | let wlgActions = $t09702397413._2 | |
3122 | 3122 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
3123 | 3123 | let freeKeyAcc = keyUserFreePoints(addr) | |
3124 | 3124 | let freePointsAcc = (valueOrElse(getInteger(freeKeyAcc), 0) + wlgPoints) | |
3125 | 3125 | let freeKeyDuck = keyDuckFreePoints(duckAssetId) | |
3126 | 3126 | let freePointsDuck = valueOrElse(getInteger(freeKeyDuck), 0) | |
3127 | 3127 | let sumFree = (freePointsAcc + freePointsDuck) | |
3128 | 3128 | let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity) | |
3129 | 3129 | if ((sumToDistribute > sumFree)) | |
3130 | 3130 | then throw((("There are only " + toString(sumFree)) + " free points to distribute")) | |
3131 | 3131 | else { | |
3132 | 3132 | let charsKey = keyDuckChars(duckAssetId) | |
3133 | 3133 | let chars = split(valueOrElse(getString(charsKey), "0_0_0_0_0"), "_") | |
3134 | 3134 | let newAcc = (freePointsAcc - sumToDistribute) | |
3135 | 3135 | $Tuple2((([IntegerEntry(freeKeyAcc, if ((0 > newAcc)) | |
3136 | 3136 | then 0 | |
3137 | 3137 | else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc)) | |
3138 | 3138 | then (freePointsDuck + newAcc) | |
3139 | 3139 | else freePointsDuck), StringEntry(charsKey, makeString([toString((parseIntValue(chars[charStrength]) + strength)), toString((parseIntValue(chars[charAccuracy]) + accuracy)), toString((parseIntValue(chars[charIntellect]) + intellect)), toString((parseIntValue(chars[charEndurance]) + endurance)), toString((parseIntValue(chars[charDexterity]) + dexterity))], "_"))] ++ prologActions) ++ wlgActions), 0) | |
3140 | 3140 | } | |
3141 | 3141 | } | |
3142 | 3142 | } | |
3143 | 3143 | ||
3144 | 3144 | ||
3145 | 3145 | ||
3146 | 3146 | @Callable(i) | |
3147 | 3147 | func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount)) | |
3148 | 3148 | ||
3149 | 3149 | ||
3150 | 3150 | ||
3151 | 3151 | @Callable(i) | |
3152 | 3152 | func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = { | |
3153 | 3153 | let terrainCounts = countTerrains(terrains) | |
3154 | 3154 | $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts))) | |
3155 | 3155 | } | |
3156 | 3156 | ||
3157 | 3157 | ||
3158 | 3158 | ||
3159 | 3159 | @Callable(i) | |
3160 | 3160 | func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":")) | |
3161 | 3161 | ||
3162 | 3162 | ||
3163 | 3163 | ||
3164 | 3164 | @Callable(i) | |
3165 | 3165 | func getWarehouseREADONLY (landAssetId) = { | |
3166 | 3166 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
3167 | 3167 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
3168 | 3168 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
3169 | 3169 | $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":")) | |
3170 | 3170 | } | |
3171 | 3171 | ||
3172 | 3172 | ||
3173 | 3173 | ||
3174 | 3174 | @Callable(i) | |
3175 | 3175 | func saveLastTx () = if (!(containsElement([wlgContract, economyContract, tournamentContract, acresContract], i.caller))) | |
3176 | 3176 | then throw("Access denied") | |
3177 | 3177 | else $Tuple2(prolog(i), 42) | |
3178 | 3178 | ||
3179 | 3179 | ||
3180 | 3180 | ||
3181 | 3181 | @Callable(i) | |
3182 | 3182 | func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract)) | |
3183 | 3183 | then throw("Access denied") | |
3184 | 3184 | else updateDuckStatsInternal(duckAssetId, deltaXP) | |
3185 | 3185 | ||
3186 | 3186 | ||
3187 | 3187 | ||
3188 | 3188 | @Callable(i) | |
3189 | 3189 | func updateAccStats (addr,deltaXP) = if (!(containsElement([wlgContract, economyContract, acresContract], i.caller))) | |
3190 | 3190 | then throw("Access denied") | |
3191 | 3191 | else updateAccStatsInternal(addr, deltaXP) | |
3192 | 3192 | ||
3193 | 3193 | ||
3194 | 3194 | ||
3195 | 3195 | @Callable(i) | |
3196 | 3196 | func equipDuck (equipment) = { | |
3197 | 3197 | let prologActions = prolog(i) | |
3198 | 3198 | if ((size(i.payments) != 0)) | |
3199 | 3199 | then throw("No payments required") | |
3200 | 3200 | else { | |
3201 | 3201 | let addr = toString(i.originCaller) | |
3202 | 3202 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked") | |
3203 | 3203 | if (checkTournament(duckAssetId)) | |
3204 | 3204 | then throw("equipDuck_checkTournament") | |
3205 | 3205 | else if (checkDelivery(duckAssetId)) | |
3206 | 3206 | then throw("equipDuck_checkDelivery") | |
3207 | 3207 | else { | |
3208 | 3208 | let eqKey = keyDuckEquipment(duckAssetId) | |
3209 | 3209 | let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_") | |
3210 | 3210 | let bpKey = keyBackpackByDuck(duckAssetId) | |
3211 | 3211 | let currentPack = getBackpack(bpKey) | |
3212 | 3212 | let newEq = split(equipment, "_") | |
3213 | 3213 | if ((size(newEq) != NUMSEGMENTS)) | |
3214 | 3214 | then throw("Wrong equipment string") | |
3215 | 3215 | else { | |
3216 | 3216 | let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, nil) | |
3217 | 3217 | let segBpAux = split(newEq[segBackpack], ";")[1] | |
3218 | 3218 | let buffEffect = if ((segBpAux == "")) | |
3219 | 3219 | then 0 | |
3220 | 3220 | else { | |
3221 | 3221 | let aux0 = split(segBpAux, ",")[0] | |
3222 | 3222 | if ((aux0 == "")) | |
3223 | 3223 | then 0 | |
3224 | 3224 | else { | |
3225 | 3225 | let idxCnt = split(aux0, ":") | |
3226 | 3226 | let idx = idxCnt[0] | |
3227 | 3227 | let cnt = idxCnt[1] | |
3228 | 3228 | if (if (if (if (if ((idx == "06")) | |
3229 | 3229 | then true | |
3230 | 3230 | else (idx == "07")) | |
3231 | 3231 | then true | |
3232 | 3232 | else (idx == "08")) | |
3233 | 3233 | then (cnt != "") | |
3234 | 3234 | else false) | |
3235 | 3235 | then (parseIntValue(cnt) > 0) | |
3236 | 3236 | else false) | |
3237 | 3237 | then parseIntValue(split(productionMatrix[parseIntValue(idx)], "_")[rIdxEffect]) | |
3238 | 3238 | else 0 | |
3239 | 3239 | } | |
3240 | 3240 | } | |
3241 | 3241 | let stats = getDuckStats(this, duckAssetId, buffEffect, true) | |
3242 | 3242 | let newProdB = dressB(newEq, tempProdB, false, stats) | |
3243 | 3243 | let newProdStr = bytesToProdStr(newProdB) | |
3244 | 3244 | $Tuple2(([StringEntry(eqKey, equipment), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProdStr], ":")), StringEntry(keyDuckBuffs(duckAssetId), makeString([toString(stats[7]), toString(stats[8]), toString(stats[9]), toString(stats[10]), toString(stats[11])], "_"))] ++ prologActions), 0) | |
3245 | 3245 | } | |
3246 | 3246 | } | |
3247 | 3247 | } | |
3248 | 3248 | } | |
3249 | 3249 | ||
3250 | 3250 | ||
3251 | 3251 | ||
3252 | 3252 | @Callable(i) | |
3253 | 3253 | func fortificateLand (landAssetId,plan) = { | |
3254 | 3254 | let prologActions = prolog(i) | |
3255 | 3255 | if ((size(i.payments) != 0)) | |
3256 | 3256 | then throw("No payments required") | |
3257 | 3257 | else { | |
3258 | 3258 | let addr = toString(i.originCaller) | |
3259 | 3259 | let duckAssetId = valueOrElse(getString(keyStakedDuckByOwner(addr)), "") | |
3260 | 3260 | let duckStats = getDuckStats(this, duckAssetId, 0, false) | |
3261 | 3261 | let fortKey = keyFortificationsByLand(landAssetId) | |
3262 | 3262 | let currentForts = split(valueOrElse(getString(fortKey), ":0_15:0_18:0"), "_") | |
3263 | 3263 | let asset = value(assetInfo(fromBase58String(landAssetId))) | |
3264 | 3264 | let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE) | |
3265 | 3265 | let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0) | |
3266 | 3266 | let whKey = keyWarehouseByLand(landAssetId) | |
3267 | 3267 | let wh = getWarehouse(whKey, landIndex, infraLevel) | |
3268 | 3268 | let curLoft = split(wh[whIdxLOFT], "_") | |
3269 | 3269 | let curO = parseIntValue(curLoft[volOccupied]) | |
3270 | 3270 | let curF = parseIntValue(curLoft[volFree]) | |
3271 | 3271 | let newForts = split(plan, "_") | |
3272 | 3272 | let $t0104251104366 = fortB(currentForts, prodStrToBytes(wh[whIdxProd]), curO, curF, true, nil) | |
3273 | 3273 | let tempProdB = $t0104251104366._1 | |
3274 | 3274 | let tempO = $t0104251104366._2 | |
3275 | 3275 | let tempF = $t0104251104366._3 | |
3276 | 3276 | let $t0104369104465 = fortB(newForts, tempProdB, tempO, tempF, false, duckStats) | |
3277 | 3277 | let newProdB = $t0104369104465._1 | |
3278 | 3278 | let newO = $t0104369104465._2 | |
3279 | 3279 | let newF = $t0104369104465._3 | |
3280 | 3280 | let newProdStr = bytesToProdStr(newProdB) | |
3281 | 3281 | let newLoftStr = makeString([curLoft[volLocked], toString(newO), toString(newF), curLoft[volTotal]], "_") | |
3282 | 3282 | $Tuple2(([StringEntry(fortKey, plan), StringEntry(whKey, makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], newProdStr, newLoftStr], ":"))] ++ prologActions), 0) | |
3283 | 3283 | } | |
3284 | 3284 | } | |
3285 | 3285 | ||
3286 | 3286 | ||
3287 | 3287 | ||
3288 | 3288 | @Callable(i) | |
3289 | 3289 | func initDuckTourAttempt (duckAssetId) = if ((i.caller != tournamentContract)) | |
3290 | 3290 | then throw("Access denied") | |
3291 | 3291 | else { | |
3292 | 3292 | let keyHealth = keyDuckHealth(duckAssetId) | |
3293 | 3293 | let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0)) | |
3294 | 3294 | let curHealth = valueOrElse(getInteger(keyHealth), maxHP) | |
3295 | 3295 | let curLocKey = keyDuckLocation(duckAssetId) | |
3296 | 3296 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
3297 | 3297 | let lastId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
3298 | 3298 | let tourLocation = (toString(lastId) + "_T_0") | |
3299 | 3299 | $Tuple2([IntegerEntry(keySavedHealth(duckAssetId), curHealth), IntegerEntry(keyHealth, maxHP), StringEntry(keySavedLocation(duckAssetId), curLocation), StringEntry(curLocKey, tourLocation)], tourLocation) | |
3300 | 3300 | } | |
3301 | 3301 | ||
3302 | 3302 | ||
3303 | 3303 | ||
3304 | 3304 | @Callable(i) | |
3305 | 3305 | func breakAttempt () = { | |
3306 | 3306 | let prologActions = prolog(i) | |
3307 | 3307 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked") | |
3308 | 3308 | let curLocKey = keyDuckLocation(duckAssetId) | |
3309 | 3309 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
3310 | 3310 | if ((split(curLocation, "_")[locIdxType] != "T")) | |
3311 | 3311 | then throw("Your duck is not in the tournament") | |
3312 | 3312 | else { | |
3313 | 3313 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
3314 | 3314 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
3315 | 3315 | $Tuple2(((prologActions :+ IntegerEntry(keyDuckHealth(duckAssetId), savedHealth)) :+ StringEntry(curLocKey, savedLocation)), curLocation) | |
3316 | 3316 | } | |
3317 | 3317 | } | |
3318 | 3318 | ||
3319 | 3319 | ||
3320 | 3320 | ||
3321 | 3321 | @Callable(i) | |
3322 | 3322 | func breakAttemptCallback () = if ((i.caller != tournamentContract)) | |
3323 | 3323 | then throw("Access denied") | |
3324 | 3324 | else { | |
3325 | 3325 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.originCaller))), "You don't have a duck staked") | |
3326 | 3326 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), getIntegerValue(keySavedHealth(duckAssetId))), StringEntry(keyDuckLocation(duckAssetId), getStringValue(keySavedLocation(duckAssetId)))], "breakAttemptCallback") | |
3327 | 3327 | } | |
3328 | 3328 | ||
3329 | 3329 | ||
3330 | 3330 | ||
3331 | 3331 | @Callable(i) | |
3332 | 3332 | func exitTournamentInternal (duckAssetId) = if ((i.caller != this)) | |
3333 | 3333 | then throw("Access denied") | |
3334 | 3334 | else { | |
3335 | 3335 | let savedHealth = getIntegerValue(keySavedHealth(duckAssetId)) | |
3336 | 3336 | let savedLocation = getStringValue(keySavedLocation(duckAssetId)) | |
3337 | 3337 | $Tuple2([IntegerEntry(keyDuckHealth(duckAssetId), savedHealth), StringEntry(keyDuckLocation(duckAssetId), savedLocation)], false) | |
3338 | 3338 | } | |
3339 | 3339 | ||
3340 | 3340 | ||
3341 | 3341 | ||
3342 | 3342 | @Callable(i) | |
3343 | 3343 | func exitDeliveryInternal (duckAssetId) = if ((i.caller != this)) | |
3344 | 3344 | then throw("Access denied") | |
3345 | 3345 | else { | |
3346 | 3346 | let e = exitDeliveryCommon(duckAssetId, false, 0, 0) | |
3347 | 3347 | $Tuple2((e._1 ++ e._2), false) | |
3348 | 3348 | } | |
3349 | 3349 | ||
3350 | 3350 | ||
3351 | 3351 | ||
3352 | 3352 | @Callable(i) | |
3353 | 3353 | func autoExitDelivery (duckAssetId,newHP,reason,score) = if ((i.caller != this)) | |
3354 | 3354 | then throw("Access denied") | |
3355 | 3355 | else { | |
3356 | 3356 | let e = exitDeliveryCommon(duckAssetId, true, newHP, score) | |
3357 | 3357 | $Tuple2(e._1, e._3) | |
3358 | 3358 | } | |
3359 | 3359 | ||
3360 | 3360 | ||
3361 | 3361 | ||
3362 | 3362 | @Callable(i) | |
3363 | 3363 | func breakDelivery () = $Tuple2(prolog(i), "breakDelivery") | |
3364 | 3364 | ||
3365 | 3365 | ||
3366 | 3366 | ||
3367 | 3367 | @Callable(i) | |
3368 | 3368 | func prepareRobbery (message,sig) = { | |
3369 | 3369 | let prologActions = prolog(i) | |
3370 | 3370 | if (!(sigVerify_8Kb(message, sig, pub))) | |
3371 | 3371 | then throw("signature does not match") | |
3372 | 3372 | else if ((size(i.payments) != 1)) | |
3373 | 3373 | then throw("exactly 1 payment must be attached") | |
3374 | 3374 | else { | |
3375 | 3375 | let pmt = i.payments[0] | |
3376 | 3376 | let wlgAmt = pmt.amount | |
3377 | 3377 | if (if (!(isDefined(pmt.assetId))) | |
3378 | 3378 | then true | |
3379 | 3379 | else (value(pmt.assetId) != wlgAssetId)) | |
3380 | 3380 | then throw("WLGOLD payments only!") | |
3381 | 3381 | else { | |
3382 | 3382 | let parts = split(toUtf8String(message), "|") | |
3383 | 3383 | if ((2 > size(parts))) | |
3384 | 3384 | then throw("Wrong message format") | |
3385 | 3385 | else { | |
3386 | 3386 | let txFromMsg = if ((size(parts) >= 2)) | |
3387 | 3387 | then parts[2] | |
3388 | 3388 | else "" | |
3389 | 3389 | let userAddr = toString(i.caller) | |
3390 | 3390 | let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "") | |
3391 | 3391 | if ((lastTx != txFromMsg)) | |
3392 | 3392 | then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg)) | |
3393 | 3393 | else { | |
3394 | 3394 | let duckAssetId = parts[0] | |
3395 | 3395 | if (checkTournament(duckAssetId)) | |
3396 | 3396 | then throw("prepareRobbery_checkTournament") | |
3397 | 3397 | else if (checkDelivery(duckAssetId)) | |
3398 | 3398 | then throw("prepareRobbery_checkDelivery") | |
3399 | 3399 | else { | |
3400 | 3400 | let robCost = getRobberyData(this, duckAssetId)._1 | |
3401 | 3401 | if ((robCost > wlgAmt)) | |
3402 | 3402 | then throw(((("Payment " + toString(wlgAmt)) + " < required ") + toString(robCost))) | |
3403 | 3403 | else { | |
3404 | 3404 | let candidates = split(parts[1], "_") | |
3405 | 3405 | let now = lastBlock.timestamp | |
3406 | 3406 | let duckState = valueOrElse(getInteger(keyDuckRobberyState(duckAssetId)), 0) | |
3407 | 3407 | let lockedLand = valueOrElse(getString(keyLockedLandByDuck(duckAssetId)), "") | |
3408 | 3408 | let landETA = valueOrElse(getInteger(keyLandCooldownETA(lockedLand)), 0) | |
3409 | 3409 | if (if ((duckState != duckIdxFree)) | |
3410 | 3410 | then (landETA > now) | |
3411 | 3411 | else false) | |
3412 | 3412 | then throw(("You already started robbing, wait till " + toString(landETA))) | |
3413 | 3413 | else { | |
3414 | 3414 | func checker (acc,landAssetId) = { | |
3415 | 3415 | let state = valueOrElse(getInteger(keyLandRobberyState(landAssetId)), 0) | |
3416 | 3416 | let cooldownETA = valueOrElse(getInteger(keyLandCooldownETA(landAssetId)), 0) | |
3417 | 3417 | if ((state > size(landRobCooldowns))) | |
3418 | 3418 | then throw("Invalid state") | |
3419 | 3419 | else if ((now > cooldownETA)) | |
3420 | 3420 | then { | |
3421 | 3421 | let stakedTime = valueOrElse(getInteger(keyStakedTimeByAssetId(landAssetId)), 0) | |
3422 | 3422 | if ((0 >= stakedTime)) | |
3423 | 3423 | then acc | |
3424 | 3424 | else { | |
3425 | 3425 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
3426 | 3426 | let d = split(a.description, "_") | |
3427 | 3427 | let pieces = numPiecesBySize(d[recLandSize]) | |
3428 | 3428 | let productivity = applyBonuses(landAssetId, pieces) | |
3429 | 3429 | let deltaTime = (now - stakedTime) | |
3430 | 3430 | let availRes = fraction(deltaTime, (productivity * pieces), DAYMILLIS) | |
3431 | 3431 | if ((MIN_RES_TO_ROB > availRes)) | |
3432 | 3432 | then acc | |
3433 | 3433 | else (acc :+ landAssetId) | |
3434 | 3434 | } | |
3435 | 3435 | } | |
3436 | 3436 | else acc | |
3437 | 3437 | } | |
3438 | 3438 | ||
3439 | 3439 | let filtered = { | |
3440 | 3440 | let $l = candidates | |
3441 | 3441 | let $s = size($l) | |
3442 | 3442 | let $acc0 = nil | |
3443 | 3443 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
3444 | 3444 | then $a | |
3445 | 3445 | else checker($a, $l[$i]) | |
3446 | 3446 | ||
3447 | 3447 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
3448 | 3448 | then $a | |
3449 | 3449 | else throw("List size exceeds 10") | |
3450 | 3450 | ||
3451 | 3451 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
3452 | 3452 | } | |
3453 | 3453 | if ((size(filtered) == 0)) | |
3454 | 3454 | then throw("No candidates for robbery") | |
3455 | 3455 | else { | |
3456 | 3456 | let rndIdx = getRandomNumber(size(filtered), message, sig) | |
3457 | 3457 | let landAssetId = filtered[rndIdx] | |
3458 | 3458 | $Tuple2(([IntegerEntry(keyLandRobberyState(landAssetId), robIdxLocked), IntegerEntry(keyLandCooldownETA(landAssetId), (now + landRobCooldowns[robIdxLocked])), IntegerEntry(keyDuckRobberyState(duckAssetId), duckIdxPreparing), StringEntry(keyLockedLandByDuck(duckAssetId), landAssetId)] ++ prologActions), landAssetId) | |
3459 | 3459 | } | |
3460 | 3460 | } | |
3461 | 3461 | } | |
3462 | 3462 | } | |
3463 | 3463 | } | |
3464 | 3464 | } | |
3465 | 3465 | } | |
3466 | 3466 | } | |
3467 | 3467 | } | |
3468 | 3468 | ||
3469 | 3469 | ||
3470 | 3470 | ||
3471 | 3471 | @Callable(i) | |
3472 | 3472 | func robLand (message,sig) = { | |
3473 | 3473 | let prologActions = prolog(i) | |
3474 | 3474 | if (!(sigVerify_8Kb(message, sig, pub))) | |
3475 | 3475 | then throw("signature does not match") | |
3476 | 3476 | else { | |
3477 | 3477 | let userAddr = toString(i.caller) | |
3478 | 3478 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
3479 | 3479 | let now = lastBlock.timestamp | |
3480 | 3480 | $Tuple2((prologActions :+ IntegerEntry(keyLastRobberyTimeByDuck(duckAssetId), now)), 0) | |
3481 | 3481 | } | |
3482 | 3482 | } | |
3483 | 3483 | ||
3484 | 3484 | ||
3485 | 3485 | ||
3486 | 3486 | @Callable(i) | |
3487 | 3487 | func acceptDelivery () = { | |
3488 | 3488 | let prologActions = prolog(i) | |
3489 | 3489 | let userAddr = toString(i.caller) | |
3490 | 3490 | let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked") | |
3491 | 3491 | let fundTotal = valueOrElse(getInteger(economyContract, deliveryFundKey), 0) | |
3492 | 3492 | let lockedTotal = valueOrElse(getInteger(economyContract, deliveryLockedKey), 0) | |
3493 | 3493 | if ((MIN_USDT_FEE_DELIVERY > (fundTotal - lockedTotal))) | |
3494 | 3494 | then throw(((("Delivery is not available, fund=" + fixedPoint(fundTotal, 6)) + ", locked=") + fixedPoint(lockedTotal, 6))) | |
3495 | 3495 | else { | |
3496 | 3496 | let now = lastBlock.timestamp | |
3497 | 3497 | let delayETA = valueOrElse(getInteger(keyDeliveryDelayByDuck(duckAssetId)), 0) | |
3498 | 3498 | if ((delayETA > now)) | |
3499 | 3499 | then throw(("Delivery is forbidden for your duck until " + toString(delayETA))) | |
3500 | 3500 | else { | |
3501 | 3501 | let health = getIntegerValue(keyDuckHealth(duckAssetId)) | |
3502 | 3502 | if ((0 >= health)) | |
3503 | 3503 | then throw("You cannot accept delivery with zero health") | |
3504 | 3504 | else { | |
3505 | 3505 | let countKey = keyUserDeliveryCount(userAddr) | |
3506 | 3506 | let count = valueOrElse(getInteger(countKey), 0) | |
3507 | 3507 | let lastDay = valueOrElse(getInteger(keyUserLastDeliveryDay(userAddr)), 0) | |
3508 | 3508 | let today = (now / DAYMILLIS) | |
3509 | 3509 | let acres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddr)), 0) | |
3510 | 3510 | let allowedDeliveries = (ALLOWED_FREE_DELIVERIES + (acres / ACRES_FOR_DELIVERY_ATTEMPT)) | |
3511 | 3511 | if (if ((count >= allowedDeliveries)) | |
3512 | 3512 | then (lastDay == today) | |
3513 | 3513 | else false) | |
3514 | 3514 | then throw((("You already used " + toString(allowedDeliveries)) + " delivery attempts for today")) | |
3515 | 3515 | else if (checkTournament(duckAssetId)) | |
3516 | 3516 | then throw("acceptDelivery_checkTournament") | |
3517 | 3517 | else if (checkDelivery(duckAssetId)) | |
3518 | 3518 | then throw("acceptDelivery_checkDelivery") | |
3519 | 3519 | else { | |
3520 | 3520 | let newLockedTotal = asInt(invoke(economyContract, "updateDeliveryLocked", [(lockedTotal + MIN_USDT_FEE_DELIVERY)], nil)) | |
3521 | 3521 | let curLocKey = keyDuckLocation(duckAssetId) | |
3522 | 3522 | let curLocation = valueOrElse(getString(curLocKey), DEFAULTLOCATION) | |
3523 | 3523 | let deliveryLocation = (toString(now) + "_D_0") | |
3524 | 3524 | $Tuple2(([StringEntry(keySavedLocation(duckAssetId), curLocation), StringEntry(curLocKey, deliveryLocation), IntegerEntry(countKey, if ((lastDay != today)) | |
3525 | 3525 | then 0 | |
3526 | 3526 | else count)] ++ prologActions), $Tuple2(deliveryLocation, newLockedTotal)) | |
3527 | 3527 | } | |
3528 | 3528 | } | |
3529 | 3529 | } | |
3530 | 3530 | } | |
3531 | 3531 | } | |
3532 | 3532 | ||
3533 | 3533 | ||
3534 | 3534 | ||
3535 | 3535 | @Callable(i) | |
3536 | 3536 | func checkDeliveryCallback (duckAssetId) = if ((i.caller != tournamentContract)) | |
3537 | 3537 | then throw("Access denied") | |
3538 | 3538 | else $Tuple2(nil, checkDelivery(duckAssetId)) | |
3539 | 3539 | ||
3540 | 3540 | ||
3541 | 3541 | ||
3542 | 3542 | @Callable(i) | |
3543 | 3543 | func buyRoboDuck () = if (!(KS_ALLOW_ROBO_DUCKS)) | |
3544 | 3544 | then throw("Feature is turned off") | |
3545 | 3545 | else { | |
3546 | 3546 | let prologActions = prolog(i) | |
3547 | 3547 | if ((size(i.payments) != 1)) | |
3548 | 3548 | then throw("Exactly one payment required") | |
3549 | 3549 | else { | |
3550 | 3550 | let pmt = value(i.payments[0]) | |
3551 | 3551 | if ((pmt.assetId != usdtAssetId)) | |
3552 | 3552 | then throw("Allowed USDT payment only!") | |
3553 | 3553 | else if ((pmt.amount != ROBO_DUCK_USDT)) | |
3554 | 3554 | then throw((("Payment attached should be " + fixedPoint(ROBO_DUCK_USDT, 6)) + " USDT")) | |
3555 | 3555 | else { | |
3556 | 3556 | let nextNum = valueOrElse(getInteger(keyNextRoboDuck()), 0) | |
3557 | 3557 | let bytez = toBytes(nextNum) | |
3558 | 3558 | let name = ((ROBO_PREFIX + "-") + takeRight(toBase16String(bytez), 8)) | |
3559 | 3559 | let color = takeRight(toBase16String(sha256_16Kb(bytez)), 6) | |
3560 | 3560 | let issue = Issue(name, ("Robo Duck NFT for WavesLands game, background color = #" + color), 1, 0, false) | |
3561 | 3561 | let assetId = calculateAssetId(issue) | |
3562 | 3562 | $Tuple2(((((prologActions :+ IntegerEntry(keyNextRoboDuck(), (nextNum + 1))) :+ issue) :+ ScriptTransfer(i.originCaller, 1, assetId)) :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)), $Tuple2(toBase58String(assetId), color)) | |
3563 | 3563 | } | |
3564 | 3564 | } | |
3565 | 3565 | } | |
3566 | 3566 | ||
3567 | 3567 |
github/deemru/w8io/026f985 997.11 ms ◑