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