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