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