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