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