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