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