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