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