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