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