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