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