tx · BvMzugfkeWcn5ckPb4ECCsXaxgKn14f4nq5jyM2NmtQd

3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm:  -0.07600000 Waves

2023.07.23 16:47 [2678579] smart account 3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm > SELF 0.00000000 Waves

{ "type": 13, "id": "BvMzugfkeWcn5ckPb4ECCsXaxgKn14f4nq5jyM2NmtQd", "fee": 7600000, "feeAssetId": null, "timestamp": 1690120033383, "version": 2, "chainId": 84, "sender": "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm", "senderPublicKey": "EVooykMNV691Venwp1dHUTBd7KWequzUcda57Wd3LQEX", "proofs": [ "4WHw8C5FpLBkJHKsj5Mv847wFx9BLe6EkrSQrQqFwCn4S7hCWfgsXWJwE4U6M9AZZgEpKPa3RzHngC2MEnEj5WSd" ], "script": "base64:BgKyAQgCEgMKAQgSAwoBBBIAEgMKAQgSABIDCgEIEgQKAgEIEgQKAgEIEgQKAgICEgUKAwEBARIAEgQKAggIEgASBAoCAgISAwoBCBIDCgEIEgQKAggIEgMKARgSAwoBGBIECgIICBIECgIICBIDCgEIEgMKAQgSBQoDCAgIEgQKAggIEgcKBQEBAQEBEgMKAQESBQoDAQEIEgMKAQgSAwoBCBIAEgQKAggBEgQKAggBEgMKAQjVAQEUa2V5TGFzdEFyYlRpbWVCeVVzZXIBBGFkZHIJAKwCAgIQbGFzdEFyYlRpbWVVc2VyXwUEYWRkcgAGU0NBTEU4AIDC1y8ADHhwTGV2ZWxTY2FsZQCAGQAPeHBMZXZlbFJlY2lwUG93AKAfABJudW1Qb2ludHNPbkxldmVsVXAAAwAMcmVxdWlyZW1lbnRzCQDMCAICCFN0cmVuZ3RoCQDMCAICCEFjY3VyYWN5CQDMCAICCUludGVsbGVjdAkAzAgCAglFbmR1cmFuY2UJAMwIAgIJRGV4dGVyaXR5CQDMCAICBUxldmVsCQDMCAICBkhlYWx0aAUDbmlsAAxjaGFyU3RyZW5ndGgAAAAMY2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": 2678579, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7WCNFt8rezTWy1WF1PHrrtFLfSxLU2uzi7M5mhHG4QAa Next: DxM4Fr3uH12fuWgKBRcMMZ9oQHfLShDoArG6kHvir8Na Diff:
OldNewDifferences
2929 let NUMMAINAUX = 2
3030
3131 let MAXSLOTS = 2
32+
33+let MAXPRODINSLOT = 30
3234
3335 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
3436
369371 }
370372
371373
374+func isDigit (s) = isDefined(parseInt(s))
375+
376+
372377 let incubatorAddr = match chain {
373378 case _ =>
374379 if ((base58'2W' == $match0))
538543 }
539544
540545
541-func subtractProducts (pHas,pUsed) = if ((pUsed == ""))
542- then pHas
543- else {
544- let pList = if ((pHas == ""))
545- then nil
546- else split(pHas, "_")
547- func subP (acc,item) = {
548- let j = acc._1
549- func checkUsed (ac,idxAmt) = {
550- let parts = split(idxAmt, ",")
551- if ((size(parts) != 2))
552- then throw("Incorrect format, should be index,amount")
546+func subtractEquipment (oldEq,pUsed) = {
547+ func subUsed (acc,idxAmt) = {
548+ let parts = split(idxAmt, ",")
549+ if ((size(parts) != 2))
550+ then throw("Incorrect format, should be index,amount")
551+ else {
552+ let idx = parseIntValue(parts[0])
553+ if (if ((0 > idx))
554+ then true
555+ else (idx >= size(productionMatrix)))
556+ then throw("Unknown product idx")
553557 else {
554- let idx = parseIntValue(parts[0])
555- if (if ((0 > idx))
556- then true
557- else (idx >= size(productionMatrix)))
558- then throw("Unknown product idx")
559- else if ((idx != j))
560- then ac
561- else {
562- let amt = parseIntValue(parts[1])
563- if ((0 >= amt))
564- then throw("Pass only positive amounts")
565- else (ac + amt)
566- }
558+ let amt = parseIntValue(parts[1])
559+ let eqParts = split(acc, (parts[0] + ":"))
560+ if ((size(eqParts) != 2))
561+ then throw((("You don't have " + prodTypes[idx]) + " equipped"))
562+ else {
563+ let tmp = eqParts[1]
564+ let numLen = if (isDigit(take(drop(tmp, 1), 1)))
565+ then 2
566+ else 1
567+ let curr = parseIntValue(take(tmp, numLen))
568+ let tail = drop(tmp, numLen)
569+ let newAmt = if ((curr >= amt))
570+ then (curr - amt)
571+ else throw(((((("You equipped " + toString(curr)) + " of ") + prodTypes[idx]) + ", but tried to use ") + toString(amt)))
572+ ((((eqParts[0] + parts[0]) + ":") + toString(newAmt)) + tail)
573+ }
567574 }
568575 }
569-
570- let a = {
571- let $l = split(pUsed, "_")
572- let $s = size($l)
573- let $acc0 = 0
574- func $f0_1 ($a,$i) = if (($i >= $s))
575- then $a
576- else checkUsed($a, $l[$i])
577-
578- func $f0_2 ($a,$i) = if (($i >= $s))
579- then $a
580- else throw("List size exceeds 10")
581-
582- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
583- }
584- let curr = if ((size(pList) > j))
585- then parseIntValue(pList[j])
586- else 0
587- let newAmt = if ((curr >= a))
588- then (curr - a)
589- else throw(((((("You have " + toString(curr)) + " of ") + prodTypes[j]) + ", but tried to use ") + toString(a)))
590- $Tuple2((j + 1), (acc._2 :+ toString(newAmt)))
591- }
592-
593- let newProd = {
594- let $l = productionMatrix
595- let $s = size($l)
596- let $acc0 = $Tuple2(0, nil)
597- func $f0_1 ($a,$i) = if (($i >= $s))
598- then $a
599- else subP($a, $l[$i])
600-
601- func $f0_2 ($a,$i) = if (($i >= $s))
602- then $a
603- else throw("List size exceeds 50")
604-
605- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
606- }
607- makeString(newProd._2, "_")
608576 }
577+
578+ let $l = split(pUsed, "_")
579+ let $s = size($l)
580+ let $acc0 = oldEq
581+ func $f0_1 ($a,$i) = if (($i >= $s))
582+ then $a
583+ else subUsed($a, $l[$i])
584+
585+ func $f0_2 ($a,$i) = if (($i >= $s))
586+ then $a
587+ else throw("List size exceeds 10")
588+
589+ $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)
590+ }
609591
610592
611593 func prodStrToBytes (prodStr) = {
683665 let parts = split(idxCnt, ":")
684666 if ((size(parts) != 2))
685667 then throw("Incorrect format, should be index:amount")
686- else {
687- let productIdx = parseIntValue(parts[0])
688- let count = parseIntValue(parts[1])
689- if (if ((0 > productIdx))
690- then true
691- else (productIdx >= size(productionMatrix)))
692- then throw("Unknown product idx")
693- else if ((0 > count))
694- then throw("Count can't be negative")
695- else if ((count == 0))
696- then $Tuple2(pList, false)
697- else {
698- let head = take(pList, (8 * productIdx))
699- let curr = toInt(take(drop(pList, (8 * productIdx)), 8))
700- let tail = drop(pList, (8 * (productIdx + 1)))
701- let recipe = split(productionMatrix[productIdx], "_")
702- if (if (!(isPositive))
703- then (count > curr)
704- else false)
705- then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count)))
668+ else if ((size(parts[0]) != 2))
669+ then throw("Product idx should be 2 digits, zero padded")
670+ else {
671+ let productIdx = parseIntValue(parts[0])
672+ let count = parseIntValue(parts[1])
673+ if (if ((0 > productIdx))
674+ then true
675+ else (productIdx >= size(productionMatrix)))
676+ then throw("Unknown product idx")
677+ else if ((0 > count))
678+ then throw("Count can't be negative")
679+ else if ((count > MAXPRODINSLOT))
680+ then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx]))
681+ else if ((count == 0))
682+ then $Tuple2(pList, false)
706683 else {
707- let isBigItem = if (if (!(isPositive))
708- then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ","))
684+ let head = take(pList, (8 * productIdx))
685+ let curr = toInt(take(drop(pList, (8 * productIdx)), 8))
686+ let tail = drop(pList, (8 * (productIdx + 1)))
687+ let recipe = split(productionMatrix[productIdx], "_")
688+ if (if (!(isPositive))
689+ then (count > curr)
709690 else false)
710- then {
711- let compat = recipe[rIdxSlots]
712- if ((compat == ""))
713- then throw("Item cannot be equipped")
714- else {
715- let c = parseIntValue(compat)
716- let cSeg = (c / 100)
717- if ((segment != cSeg))
718- then throw("Segment incompatible")
691+ then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count)))
692+ else {
693+ let isBigItem = if (if (!(isPositive))
694+ then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ","))
695+ else false)
696+ then {
697+ let compat = recipe[rIdxSlots]
698+ if ((compat == ""))
699+ then throw("Item cannot be equipped")
719700 else {
720- let cMainAux = ((c % 100) / 10)
721- if ((mainAux != cMainAux))
722- then throw("Slot incompatible")
701+ let c = parseIntValue(compat)
702+ let cSeg = (c / 100)
703+ if ((segment != cSeg))
704+ then throw("Segment incompatible")
723705 else {
724- let cNumSlots = (c % 10)
725- if (if ((slot != 0))
726- then (cNumSlots > 1)
727- else false)
728- then throw("Big items should occupy slot 0")
729- else (cNumSlots > 1)
706+ let cMainAux = ((c % 100) / 10)
707+ if ((mainAux != cMainAux))
708+ then throw("Slot incompatible")
709+ else {
710+ let cNumSlots = (c % 10)
711+ if (if ((slot != 0))
712+ then (cNumSlots > 1)
713+ else false)
714+ then throw("Big items should occupy slot 0")
715+ else (cNumSlots > 1)
716+ }
730717 }
731718 }
732719 }
720+ else false
721+ $Tuple2(((head + toBytes((curr + (if (isPositive)
722+ then count
723+ else -(count))))) + tail), isBigItem)
733724 }
734- else false
735- $Tuple2(((head + toBytes((curr + (if (isPositive)
736- then count
737- else -(count))))) + tail), isBigItem)
738725 }
739- }
740- }
726+ }
741727 }
742728
743729
12941280 func expeditionCommon (caller,txId,message,sig) = {
12951281 let userAddr = toString(caller)
12961282 let f = flightCommon(userAddr, message, sig)
1297- let keyHealth = keyDuckHealth(f._2)
1298- let bpKey = keyBackpackByDuck(f._2)
1283+ let duckAssetId = f._2
1284+ let keyHealth = keyDuckHealth(duckAssetId)
1285+ let bpKey = keyBackpackByDuck(duckAssetId)
12991286 let currentPack = getBackpack(bpKey)
13001287 let mList = split(currentPack[bpIdxMat], "_")
13011288 let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_")
1302- let newProd = subtractProducts(currentPack[bpIdxProd], f._5)
1289+ let eqKey = keyDuckEquipment(duckAssetId)
1290+ let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,")
1291+ let newEq = subtractEquipment(currentEq, f._5)
13031292 if ((0 >= f._1))
1304- then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":"))], "", 0)
1293+ then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0)
13051294 else {
13061295 let e = expeditionInternal(caller, txId)
13071296 let id = e._2._1
1308- $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(f._2), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, newProd], ":"))), id, f._3)
1297+ $Tuple3(((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(eqKey, newEq)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, f._3)
13091298 }
13101299 }
13111300
13201309
13211310
13221311 func checkClaimConditions (addr,claimMode,landAssetIdIn) = {
1323- let $t02895229491 = if ((claimMode == claimModeWh))
1312+ let $t02920329742 = if ((claimMode == claimModeWh))
13241313 then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), ""))
13251314 else {
13261315 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
13301319 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
13311320 else $Tuple2(loc[locIdxId], duckAssetId)
13321321 }
1333- let landAssetId = $t02895229491._1
1334- let duckId = $t02895229491._2
1322+ let landAssetId = $t02920329742._1
1323+ let duckId = $t02920329742._2
13351324 let asset = value(assetInfo(fromBase58String(landAssetId)))
13361325 let timeKey = keyStakedTimeByAssetId(landAssetId)
13371326 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked"))
13791368 let currentPack = getBackpack(bpKey)
13801369 let currentPackRes = split(currentPack[bpIdxRes], "_")
13811370 let currentWhRes = split(currentWh[whIdxRes], "_")
1382- let $t03186532736 = if ((claimMode == claimModeWh))
1371+ let $t03211632987 = if ((claimMode == claimModeWh))
13831372 then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2))
13841373 else if ((claimMode == claimModeDuck))
13851374 then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree]))
13881377 let whAm = min([parseIntValue(loft[volFree]), resToClaim._2])
13891378 $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm))
13901379 }
1391- let whRes = $t03186532736._1
1392- let bpRes = $t03186532736._2
1393- let loftO = $t03186532736._3
1394- let loftF = $t03186532736._4
1380+ let whRes = $t03211632987._1
1381+ let bpRes = $t03211632987._2
1382+ let loftO = $t03211632987._3
1383+ let loftF = $t03211632987._4
13951384 $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]], "_")])
13961385 }
13971386 }
19081897 if ((f._4 == curLocation))
19091898 then throw("You can't fly to the same location")
19101899 else {
1911- let bpKey = keyBackpackByDuck(duckAssetId)
1912- let currentPack = getBackpack(bpKey)
1913- let newProd = subtractProducts(currentPack[bpIdxProd], f._5)
1900+ let eqKey = keyDuckEquipment(duckAssetId)
1901+ let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,")
1902+ let newEq = subtractEquipment(currentEq, f._5)
19141903 $Tuple2(([StringEntry(locKey, if ((f._1 > 0))
19151904 then f._4
1916- else curLocation), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":")), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0))
1905+ else curLocation), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0))
19171906 then xpSuccessFlight
19181907 else xpFailFlight)._1), f._3)
19191908 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr)
55
66
77 let SCALE8 = 100000000
88
99 let xpLevelScale = 3200
1010
1111 let xpLevelRecipPow = 4000
1212
1313 let numPointsOnLevelUp = 3
1414
1515 let requirements = ["Strength", "Accuracy", "Intellect", "Endurance", "Dexterity", "Level", "Health"]
1616
1717 let charStrength = 0
1818
1919 let charAccuracy = 1
2020
2121 let charIntellect = 2
2222
2323 let charEndurance = 3
2424
2525 let charDexterity = 4
2626
2727 let NUMSEGMENTS = 6
2828
2929 let NUMMAINAUX = 2
3030
3131 let MAXSLOTS = 2
32+
33+let MAXPRODINSLOT = 30
3234
3335 func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId)
3436
3537
3638 func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId)
3739
3840
3941 func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId)
4042
4143
4244 func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId)
4345
4446
4547 func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId)
4648
4749
4850 func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId)
4951
5052
5153 func keyUserXP (addr) = ("userXP_" + addr)
5254
5355
5456 func keyUserLevel (addr) = ("userLevel_" + addr)
5557
5658
5759 func keyUserFreePoints (addr) = ("userFreePoints_" + addr)
5860
5961
6062 let xpClaim = 100000
6163
6264 let xpSuccessFlight = 50000
6365
6466 let xpFailFlight = 10000
6567
6668 let xpCallES = 100000
6769
6870 let xpCustomName = 5000000
6971
7072 let xpNewSLand = 50000000
7173
7274 let xpUpgradeInfra = 100000
7375
7476 let xpMerge = 10000000
7577
7678 let xpOnboard = 10000000
7779
7880 let xpHeal = 10000
7981
8082 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
8183
8284
8385 func maxHealth (level) = (100 + level)
8486
8587
8688 func levelUp (currLevel,newXP) = {
8789 let newLevel = levelByXP(newXP)
8890 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
8991 }
9092
9193
9294 func getDuckStats (stakingContract,duckAssetId) = {
9395 let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_")
9496 let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0)
9597 let health = valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHealth(lvl))
9698 [parseIntValue(chars[charStrength]), parseIntValue(chars[charAccuracy]), parseIntValue(chars[charIntellect]), parseIntValue(chars[charEndurance]), parseIntValue(chars[charDexterity]), lvl, health]
9799 }
98100
99101
100102 let LANDPREFIX = "LAND"
101103
102104 let DUCKPREFIX = "DUCK"
103105
104106 let ARTPRESALE = "PRESALE"
105107
106108 let NUMRES = 6
107109
108110 let DAILYRESBYPIECE = 3456000
109111
110112 let DAYMILLIS = 86400000
111113
112114 let WHMULTIPLIER = 10000000000
113115
114116 let DEFAULTLOCATION = "Africa_F_Africa"
115117
116118 let RESOURCEPRICEMIN = 39637
117119
118120 let ESSELLCOEF = 10
119121
120122 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"]
121123
122124 let continents = ["Americas", "Europe", "Asia", "Africa", "Oceania"]
123125
124126 let COEFF2MAT = 10000000
125127
126128 let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_30_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_50_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_70_0,0,0,0,0,0,0_201"]
127129
128130 let rIdxCoeff = 6
129131
130132 let rIdxRequirements = 9
131133
132134 let rIdxSlots = 10
133135
134136 let PRODUCTPKGSIZE = 10
135137
136138 let whIdxLevels = 0
137139
138140 let whIdxRes = 1
139141
140142 let whIdxMat = 2
141143
142144 let whIdxProd = 3
143145
144146 let whIdxLOFT = 4
145147
146148 let volLocked = 0
147149
148150 let volOccupied = 1
149151
150152 let volFree = 2
151153
152154 let volTotal = 3
153155
154156 let bpIdxLevel = 0
155157
156158 let bpIdxRes = 1
157159
158160 let bpIdxMat = 2
159161
160162 let bpIdxProd = 3
161163
162164 func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr)
163165
164166
165167 func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId)
166168
167169
168170 func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId)
169171
170172
171173 func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId)
172174
173175
174176 func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId)
175177
176178
177179 func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_")
178180
179181
180182 func keyStakedTimeByTypeAssetIdAndOwner (nftType,assetId,ownerAddr) = ((((("stakedTimeByTypeAssetIdAndOwner_" + nftType) + "_") + assetId) + "_") + ownerAddr)
181183
182184
183185 func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId)
184186
185187
186188 func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId)
187189
188190
189191 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
190192
191193
192194 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
193195
194196
195197 func keyOnboardArtActivatedOnDuck (duckAssetId) = ("onboardArtActivatedOnDuck_" + duckAssetId)
196198
197199
198200 func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr)
199201
200202
201203 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
202204
203205
204206 func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId)
205207
206208
207209 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
208210
209211
210212 func keyBackpackByDuck (duckAssetId) = ("backPack_" + duckAssetId)
211213
212214
213215 func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId)
214216
215217
216218 func keyBlocked () = "contractsBlocked"
217219
218220
219221 func keyUserGwlReleaseTime (userAddr) = ("%s%s__userGwlReleaseTime__" + userAddr)
220222
221223
222224 func keyEsWarehouse () = "emergencyWarehouseProducts"
223225
224226
225227 let locIdxType = 1
226228
227229 let locIdxId = 2
228230
229231 func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT)
230232
231233
232234 let KSALLOWXPLEVELS = true
233235
234236 let chain = take(drop(this.bytes, 1), 1)
235237
236238 let usdtAssetId = match chain {
237239 case _ =>
238240 if ((base58'2W' == $match0))
239241 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
240242 else if ((base58'2T' == $match0))
241243 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
242244 else throw("Unknown chain")
243245 }
244246
245247 let defaultRestAddressStr = match chain {
246248 case _ =>
247249 if ((base58'2W' == $match0))
248250 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
249251 else if ((base58'2T' == $match0))
250252 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
251253 else throw("Unknown chain")
252254 }
253255
254256 let InfraUpgradeCostS = match chain {
255257 case _ =>
256258 if ((base58'2W' == $match0))
257259 then 10000000000
258260 else if ((base58'2T' == $match0))
259261 then 100000000
260262 else throw("Unknown chain")
261263 }
262264
263265 let arbitrageDelay = match chain {
264266 case _ =>
265267 if ((base58'2W' == $match0))
266268 then 600000
267269 else if ((base58'2T' == $match0))
268270 then 60000
269271 else throw("Unknown chain")
270272 }
271273
272274 let SEP = "__"
273275
274276 let MULT6 = 1000000
275277
276278 let MULT8 = 100000000
277279
278280 let SSIZE = 25
279281
280282 let MSIZE = 100
281283
282284 let LSIZE = 225
283285
284286 let XLSIZE = 400
285287
286288 let XXLSIZE = 625
287289
288290 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
289291
290292
291293 let IdxCfgStakingDapp = 1
292294
293295 let IdxCfgEconomyDapp = 2
294296
295297 let IdxCfgGovernanceDapp = 3
296298
297299 let IdxCfgWlgDapp = 4
298300
299301 func keyRestCfg () = "%s__restConfig"
300302
301303
302304 func keyRestAddress () = "%s__restAddr"
303305
304306
305307 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
306308
307309
308310 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
309311
310312
311313 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
312314
313315 let restCfg = readRestCfgOrFail(restContract)
314316
315317 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
316318
317319 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
318320
319321 let govContract = getContractAddressOrFail(restCfg, IdxCfgGovernanceDapp)
320322
321323 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
322324
323325 let recLandNum = 0
324326
325327 let recLandSize = 1
326328
327329 let recTerrains = 2
328330
329331 let recContinent = 3
330332
331333 func keyResProportions () = "resTypesProportions"
332334
333335
334336 func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr)
335337
336338
337339 func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr)
338340
339341
340342 func asString (v) = match v {
341343 case s: String =>
342344 s
343345 case _ =>
344346 throw("fail to cast into String")
345347 }
346348
347349
348350 func asInt (v) = match v {
349351 case n: Int =>
350352 n
351353 case _ =>
352354 throw("fail to cast into Int")
353355 }
354356
355357
356358 func numPiecesBySize (landSize) = match landSize {
357359 case _ =>
358360 if (("S" == $match0))
359361 then SSIZE
360362 else if (("M" == $match0))
361363 then MSIZE
362364 else if (("L" == $match0))
363365 then LSIZE
364366 else if (("XL" == $match0))
365367 then XLSIZE
366368 else if (("XXL" == $match0))
367369 then XXLSIZE
368370 else throw("Unknown land size")
369371 }
370372
371373
374+func isDigit (s) = isDefined(parseInt(s))
375+
376+
372377 let incubatorAddr = match chain {
373378 case _ =>
374379 if ((base58'2W' == $match0))
375380 then addressFromStringValue("3PEktVux2RhchSN63DsDo4b4mz4QqzKSeDv")
376381 else if ((base58'2T' == $match0))
377382 then this
378383 else throw("Unknown chain")
379384 }
380385
381386 let breederAddr = match chain {
382387 case _ =>
383388 if ((base58'2W' == $match0))
384389 then addressFromStringValue("3PDVuU45H7Eh5dmtNbnRNRStGwULA7NY6Hb")
385390 else if ((base58'2T' == $match0))
386391 then this
387392 else throw("Unknown chain")
388393 }
389394
390395 let pub = base58'6LfPuKJjLgekmncBhMg2LZyMTNVzZBccXR28ySXm9uXD'
391396
392397 let medKitHp = [30, 60, 120]
393398
394399 let FIVEMINUTESMILLIS = 300000
395400
396401 let RENAMINGCOST = 5000000
397402
398403 let MAXNAMELEN = 50
399404
400405 let InfraUpgradeCostSUsdt = 10000000
401406
402407 let EXPMATERIALS = match chain {
403408 case _ =>
404409 if ((base58'2W' == $match0))
405410 then 252289527462
406411 else if ((base58'2T' == $match0))
407412 then 2522895274
408413 else throw("Unknown chain")
409414 }
410415
411416 let EXPUSDT = match chain {
412417 case _ =>
413418 if ((base58'2W' == $match0))
414419 then 250000000
415420 else if ((base58'2T' == $match0))
416421 then 250000000
417422 else throw("Unknown chain")
418423 }
419424
420425 let FIVEX = toBigInt(5)
421426
422427 let TWENTYX = toBigInt(20)
423428
424429 let TWENTY2X = toBigInt((20 * 20))
425430
426431 let TWENTY3X = toBigInt(((20 * 20) * 20))
427432
428433 let TWENTY4X = toBigInt((((20 * 20) * 20) * 20))
429434
430435 let TWENTY5X = toBigInt(((((20 * 20) * 20) * 20) * 20))
431436
432437 let PRESALENUMLANDS = 500
433438
434439 func keyNextFreeLandNum () = "nextLandNum"
435440
436441
437442 func keyLandToAssetId (landNum) = ("landToAsset_" + landNum)
438443
439444
440445 func keyLandCustomNameToAssetId (name) = ("landByCustomName_" + name)
441446
442447
443448 func keyInfraLevelByAssetIdAndOwner (assetId,ownerAddr) = ((("infraLevelByAssetIdAndOwner_" + assetId) + "_") + ownerAddr)
444449
445450
446451 func keyLandArtStatusByTypeAssetIdAndOwner (type,assetId,ownerAddr) = makeString(["landArtStatusByTypeAssetIdAndOwner", type, assetId, ownerAddr], "_")
447452
448453
449454 func keyLandNumToOwner (landNum) = ("landOwner_" + landNum)
450455
451456
452457 func keyDuckCustomNameToAssetId (name) = ("duckByCustomName_" + name)
453458
454459
455460 func keyCustomNameToAddress (name) = ("accountByCustomName_" + name)
456461
457462
458463 func keyOldies () = "oldiesList"
459464
460465
461466 let claimModeWh = 0
462467
463468 let claimModeDuck = 1
464469
465470 let claimModeWhThenDuck = 2
466471
467472 let flHealth = 0
468473
469474 let flTimestamp = 5
470475
471476 let flBonus = 6
472477
473478 let flProdsUsed = 7
474479
475480 func nftName (landNum,landSize) = ((LANDPREFIX + landNum) + landSize)
476481
477482
478483 func distributeByWeights (total,weights) = {
479484 let sum = (((((weights[0] + weights[1]) + weights[2]) + weights[3]) + weights[4]) + weights[5])
480485 if ((0 >= sum))
481486 then throw("Zero weights sum")
482487 else {
483488 let norm6 = fraction(total, MULT6, sum)
484489 func normalizer (acc,elem) = (acc :+ fraction(elem, norm6, MULT6))
485490
486491 let $l = weights
487492 let $s = size($l)
488493 let $acc0 = nil
489494 func $f0_1 ($a,$i) = if (($i >= $s))
490495 then $a
491496 else normalizer($a, $l[$i])
492497
493498 func $f0_2 ($a,$i) = if (($i >= $s))
494499 then $a
495500 else throw("List size exceeds 6")
496501
497502 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
498503 }
499504 }
500505
501506
502507 func getNeededMaterials (total) = {
503508 let props = split(value(getString(keyResProportions())), "_")
504509 if ((size(props) != NUMRES))
505510 then throw("Wrong proportions data")
506511 else {
507512 let r = [parseIntValue(props[0]), parseIntValue(props[1]), parseIntValue(props[2]), parseIntValue(props[3]), parseIntValue(props[4]), parseIntValue(props[5])]
508513 distributeByWeights(total, r)
509514 }
510515 }
511516
512517
513518 func subtractMaterials (shouldUseMat,has,totalNeed) = {
514519 let need = getNeededMaterials(totalNeed)
515520 func subtractor (acc,idx) = {
516521 let result = (parseIntValue(has[idx]) - need[idx])
517522 if ((0 > result))
518523 then throw(((((("Not enough material idx=" + toString(idx)) + ", you have ") + has[idx]) + ", but need ") + toString(need[idx])))
519524 else (acc :+ toString(result))
520525 }
521526
522527 if (shouldUseMat)
523528 then {
524529 let $l = [0, 1, 2, 3, 4, 5]
525530 let $s = size($l)
526531 let $acc0 = nil
527532 func $f0_1 ($a,$i) = if (($i >= $s))
528533 then $a
529534 else subtractor($a, $l[$i])
530535
531536 func $f0_2 ($a,$i) = if (($i >= $s))
532537 then $a
533538 else throw("List size exceeds 6")
534539
535540 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
536541 }
537542 else has
538543 }
539544
540545
541-func subtractProducts (pHas,pUsed) = if ((pUsed == ""))
542- then pHas
543- else {
544- let pList = if ((pHas == ""))
545- then nil
546- else split(pHas, "_")
547- func subP (acc,item) = {
548- let j = acc._1
549- func checkUsed (ac,idxAmt) = {
550- let parts = split(idxAmt, ",")
551- if ((size(parts) != 2))
552- then throw("Incorrect format, should be index,amount")
546+func subtractEquipment (oldEq,pUsed) = {
547+ func subUsed (acc,idxAmt) = {
548+ let parts = split(idxAmt, ",")
549+ if ((size(parts) != 2))
550+ then throw("Incorrect format, should be index,amount")
551+ else {
552+ let idx = parseIntValue(parts[0])
553+ if (if ((0 > idx))
554+ then true
555+ else (idx >= size(productionMatrix)))
556+ then throw("Unknown product idx")
553557 else {
554- let idx = parseIntValue(parts[0])
555- if (if ((0 > idx))
556- then true
557- else (idx >= size(productionMatrix)))
558- then throw("Unknown product idx")
559- else if ((idx != j))
560- then ac
561- else {
562- let amt = parseIntValue(parts[1])
563- if ((0 >= amt))
564- then throw("Pass only positive amounts")
565- else (ac + amt)
566- }
558+ let amt = parseIntValue(parts[1])
559+ let eqParts = split(acc, (parts[0] + ":"))
560+ if ((size(eqParts) != 2))
561+ then throw((("You don't have " + prodTypes[idx]) + " equipped"))
562+ else {
563+ let tmp = eqParts[1]
564+ let numLen = if (isDigit(take(drop(tmp, 1), 1)))
565+ then 2
566+ else 1
567+ let curr = parseIntValue(take(tmp, numLen))
568+ let tail = drop(tmp, numLen)
569+ let newAmt = if ((curr >= amt))
570+ then (curr - amt)
571+ else throw(((((("You equipped " + toString(curr)) + " of ") + prodTypes[idx]) + ", but tried to use ") + toString(amt)))
572+ ((((eqParts[0] + parts[0]) + ":") + toString(newAmt)) + tail)
573+ }
567574 }
568575 }
569-
570- let a = {
571- let $l = split(pUsed, "_")
572- let $s = size($l)
573- let $acc0 = 0
574- func $f0_1 ($a,$i) = if (($i >= $s))
575- then $a
576- else checkUsed($a, $l[$i])
577-
578- func $f0_2 ($a,$i) = if (($i >= $s))
579- then $a
580- else throw("List size exceeds 10")
581-
582- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
583- }
584- let curr = if ((size(pList) > j))
585- then parseIntValue(pList[j])
586- else 0
587- let newAmt = if ((curr >= a))
588- then (curr - a)
589- else throw(((((("You have " + toString(curr)) + " of ") + prodTypes[j]) + ", but tried to use ") + toString(a)))
590- $Tuple2((j + 1), (acc._2 :+ toString(newAmt)))
591- }
592-
593- let newProd = {
594- let $l = productionMatrix
595- let $s = size($l)
596- let $acc0 = $Tuple2(0, nil)
597- func $f0_1 ($a,$i) = if (($i >= $s))
598- then $a
599- else subP($a, $l[$i])
600-
601- func $f0_2 ($a,$i) = if (($i >= $s))
602- then $a
603- else throw("List size exceeds 50")
604-
605- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
606- }
607- makeString(newProd._2, "_")
608576 }
577+
578+ let $l = split(pUsed, "_")
579+ let $s = size($l)
580+ let $acc0 = oldEq
581+ func $f0_1 ($a,$i) = if (($i >= $s))
582+ then $a
583+ else subUsed($a, $l[$i])
584+
585+ func $f0_2 ($a,$i) = if (($i >= $s))
586+ then $a
587+ else throw("List size exceeds 10")
588+
589+ $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)
590+ }
609591
610592
611593 func prodStrToBytes (prodStr) = {
612594 let pList = if ((prodStr == ""))
613595 then nil
614596 else split(prodStr, "_")
615597 func toBV (acc,recipe) = {
616598 let j = (size(acc) / 8)
617599 let curr = if ((size(pList) > j))
618600 then parseIntValue(pList[j])
619601 else 0
620602 (acc + toBytes(curr))
621603 }
622604
623605 let $l = productionMatrix
624606 let $s = size($l)
625607 let $acc0 = base58''
626608 func $f0_1 ($a,$i) = if (($i >= $s))
627609 then $a
628610 else toBV($a, $l[$i])
629611
630612 func $f0_2 ($a,$i) = if (($i >= $s))
631613 then $a
632614 else throw("List size exceeds 50")
633615
634616 $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)
635617 }
636618
637619
638620 func bytesToProdStr (bv) = {
639621 func fromBV (acc,recipe) = {
640622 let j = size(acc)
641623 let b = take(drop(bv, (8 * j)), 8)
642624 (acc :+ toString(toInt(b)))
643625 }
644626
645627 makeString({
646628 let $l = productionMatrix
647629 let $s = size($l)
648630 let $acc0 = nil
649631 func $f0_1 ($a,$i) = if (($i >= $s))
650632 then $a
651633 else fromBV($a, $l[$i])
652634
653635 func $f0_2 ($a,$i) = if (($i >= $s))
654636 then $a
655637 else throw("List size exceeds 50")
656638
657639 $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)
658640 }, "_")
659641 }
660642
661643
662644 func checkStatRequirements (duckStats,reqs) = {
663645 func check (acc,j) = if ((parseIntValue(reqs[j]) > duckStats[j]))
664646 then throw(("Requirement not satisfied: " + requirements[j]))
665647 else true
666648
667649 let $l = [0, 1, 2, 3, 4, 5, 6]
668650 let $s = size($l)
669651 let $acc0 = false
670652 func $f0_1 ($a,$i) = if (($i >= $s))
671653 then $a
672654 else check($a, $l[$i])
673655
674656 func $f0_2 ($a,$i) = if (($i >= $s))
675657 then $a
676658 else throw("List size exceeds 7")
677659
678660 $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)
679661 }
680662
681663
682664 func addProdB (idxCnt,pList,isPositive,segment,mainAux,slot,duckStats) = {
683665 let parts = split(idxCnt, ":")
684666 if ((size(parts) != 2))
685667 then throw("Incorrect format, should be index:amount")
686- else {
687- let productIdx = parseIntValue(parts[0])
688- let count = parseIntValue(parts[1])
689- if (if ((0 > productIdx))
690- then true
691- else (productIdx >= size(productionMatrix)))
692- then throw("Unknown product idx")
693- else if ((0 > count))
694- then throw("Count can't be negative")
695- else if ((count == 0))
696- then $Tuple2(pList, false)
697- else {
698- let head = take(pList, (8 * productIdx))
699- let curr = toInt(take(drop(pList, (8 * productIdx)), 8))
700- let tail = drop(pList, (8 * (productIdx + 1)))
701- let recipe = split(productionMatrix[productIdx], "_")
702- if (if (!(isPositive))
703- then (count > curr)
704- else false)
705- then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count)))
668+ else if ((size(parts[0]) != 2))
669+ then throw("Product idx should be 2 digits, zero padded")
670+ else {
671+ let productIdx = parseIntValue(parts[0])
672+ let count = parseIntValue(parts[1])
673+ if (if ((0 > productIdx))
674+ then true
675+ else (productIdx >= size(productionMatrix)))
676+ then throw("Unknown product idx")
677+ else if ((0 > count))
678+ then throw("Count can't be negative")
679+ else if ((count > MAXPRODINSLOT))
680+ then throw(((("Can't put more than " + toString(MAXPRODINSLOT)) + " of ") + prodTypes[productIdx]))
681+ else if ((count == 0))
682+ then $Tuple2(pList, false)
706683 else {
707- let isBigItem = if (if (!(isPositive))
708- then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ","))
684+ let head = take(pList, (8 * productIdx))
685+ let curr = toInt(take(drop(pList, (8 * productIdx)), 8))
686+ let tail = drop(pList, (8 * (productIdx + 1)))
687+ let recipe = split(productionMatrix[productIdx], "_")
688+ if (if (!(isPositive))
689+ then (count > curr)
709690 else false)
710- then {
711- let compat = recipe[rIdxSlots]
712- if ((compat == ""))
713- then throw("Item cannot be equipped")
714- else {
715- let c = parseIntValue(compat)
716- let cSeg = (c / 100)
717- if ((segment != cSeg))
718- then throw("Segment incompatible")
691+ then throw(((((("You have " + toString(curr)) + " of ") + prodTypes[productIdx]) + ", but tried to use ") + toString(count)))
692+ else {
693+ let isBigItem = if (if (!(isPositive))
694+ then checkStatRequirements(duckStats, split(recipe[rIdxRequirements], ","))
695+ else false)
696+ then {
697+ let compat = recipe[rIdxSlots]
698+ if ((compat == ""))
699+ then throw("Item cannot be equipped")
719700 else {
720- let cMainAux = ((c % 100) / 10)
721- if ((mainAux != cMainAux))
722- then throw("Slot incompatible")
701+ let c = parseIntValue(compat)
702+ let cSeg = (c / 100)
703+ if ((segment != cSeg))
704+ then throw("Segment incompatible")
723705 else {
724- let cNumSlots = (c % 10)
725- if (if ((slot != 0))
726- then (cNumSlots > 1)
727- else false)
728- then throw("Big items should occupy slot 0")
729- else (cNumSlots > 1)
706+ let cMainAux = ((c % 100) / 10)
707+ if ((mainAux != cMainAux))
708+ then throw("Slot incompatible")
709+ else {
710+ let cNumSlots = (c % 10)
711+ if (if ((slot != 0))
712+ then (cNumSlots > 1)
713+ else false)
714+ then throw("Big items should occupy slot 0")
715+ else (cNumSlots > 1)
716+ }
730717 }
731718 }
732719 }
720+ else false
721+ $Tuple2(((head + toBytes((curr + (if (isPositive)
722+ then count
723+ else -(count))))) + tail), isBigItem)
733724 }
734- else false
735- $Tuple2(((head + toBytes((curr + (if (isPositive)
736- then count
737- else -(count))))) + tail), isBigItem)
738725 }
739- }
740- }
726+ }
741727 }
742728
743729
744730 func slotsGroupB (g,bpIn,isPositive,segment,mainAux,reqs) = if ((g != ""))
745731 then {
746732 let slots = split(g, ",")
747733 if ((size(slots) > MAXSLOTS))
748734 then throw("Wrong slots format")
749735 else {
750736 let s0 = slots[0]
751737 let s1 = if ((size(slots) > 1))
752738 then slots[1]
753739 else ""
754740 if (if ((s0 == ""))
755741 then (s1 == "")
756742 else false)
757743 then bpIn
758744 else {
759745 let tmpS0 = if ((s0 != ""))
760746 then addProdB(s0, bpIn, isPositive, segment, mainAux, 0, reqs)
761747 else $Tuple2(bpIn, false)
762748 if ((s1 != ""))
763749 then if (tmpS0._2)
764750 then throw("Big item already occupies slot")
765751 else addProdB(s1, tmpS0._1, isPositive, segment, mainAux, 1, reqs)._1
766752 else tmpS0._1
767753 }
768754 }
769755 }
770756 else bpIn
771757
772758
773759 func dressB (segList,pBytes,isPositive,reqs) = {
774760 func segment (acc,seg) = {
775761 let j = acc._1
776762 let mainAux = split(seg, ";")
777763 if ((size(mainAux) != NUMMAINAUX))
778764 then throw("Wrong segment format")
779765 else {
780766 let m = mainAux[0]
781767 let a = mainAux[1]
782768 if (if ((m == ""))
783769 then (a == "")
784770 else false)
785771 then $Tuple2((j + 1), acc._2)
786772 else {
787773 let tmpM = slotsGroupB(m, acc._2, isPositive, j, 0, reqs)
788774 $Tuple2((j + 1), slotsGroupB(a, tmpM, isPositive, j, 1, reqs))
789775 }
790776 }
791777 }
792778
793779 ( let $l = segList
794780 let $s = size($l)
795781 let $acc0 = $Tuple2(0, pBytes)
796782 func $f0_1 ($a,$i) = if (($i >= $s))
797783 then $a
798784 else segment($a, $l[$i])
799785
800786 func $f0_2 ($a,$i) = if (($i >= $s))
801787 then $a
802788 else throw("List size exceeds 6")
803789
804790 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6))._2
805791 }
806792
807793
808794 func updateProportionsInternal (propList,terrainCounts,landSizeIndex,sign) = if ((size(propList) != NUMRES))
809795 then throw("Wrong proportions data")
810796 else {
811797 func updater (acc,i) = {
812798 let result = (parseIntValue(propList[i]) + ((sign * terrainCounts[i]) * landSizeIndex))
813799 if ((0 > result))
814800 then throw(((((((("Panic! Pieces of type=" + toString(i)) + ", sign=") + toString(sign)) + ", terrainCounts[i]=") + toString(terrainCounts[i])) + ", landSizeIndex=") + toString(landSizeIndex)))
815801 else (acc :+ toString(result))
816802 }
817803
818804 let r = {
819805 let $l = [0, 1, 2, 3, 4, 5]
820806 let $s = size($l)
821807 let $acc0 = nil
822808 func $f0_1 ($a,$i) = if (($i >= $s))
823809 then $a
824810 else updater($a, $l[$i])
825811
826812 func $f0_2 ($a,$i) = if (($i >= $s))
827813 then $a
828814 else throw("List size exceeds 6")
829815
830816 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
831817 }
832818 makeString(r, "_")
833819 }
834820
835821
836822 func updateProportions (terrainCounts,landSizeIndex,sign) = {
837823 let propList = split(valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0"), "_")
838824 updateProportionsInternal(propList, terrainCounts, landSizeIndex, sign)
839825 }
840826
841827
842828 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)]
843829
844830
845831 func addRes (currentRes,terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = {
846832 func adder (acc,i) = {
847833 let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex)
848834 (acc :+ toString((parseIntValue(currentRes[i]) + resOfType)))
849835 }
850836
851837 let r = {
852838 let $l = [0, 1, 2, 3, 4, 5]
853839 let $s = size($l)
854840 let $acc0 = nil
855841 func $f0_1 ($a,$i) = if (($i >= $s))
856842 then $a
857843 else adder($a, $l[$i])
858844
859845 func $f0_2 ($a,$i) = if (($i >= $s))
860846 then $a
861847 else throw("List size exceeds 6")
862848
863849 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
864850 }
865851 makeString(r, "_")
866852 }
867853
868854
869855 func virtClaim (terrainCounts,deltaTime,landSizeIndex,dailyByPieceWithBonuses) = {
870856 func adder (acc,i) = {
871857 let resOfType = ((fraction(deltaTime, dailyByPieceWithBonuses, DAYMILLIS) * terrainCounts[i]) * landSizeIndex)
872858 $Tuple2((acc._1 :+ resOfType), (acc._2 + resOfType))
873859 }
874860
875861 let $l = [0, 1, 2, 3, 4, 5]
876862 let $s = size($l)
877863 let $acc0 = $Tuple2(nil, 0)
878864 func $f0_1 ($a,$i) = if (($i >= $s))
879865 then $a
880866 else adder($a, $l[$i])
881867
882868 func $f0_2 ($a,$i) = if (($i >= $s))
883869 then $a
884870 else throw("List size exceeds 6")
885871
886872 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
887873 }
888874
889875
890876 func distributeRes (currentWhRes,currentPackRes,resToClaim,whSpaceLeft) = {
891877 let resListToClaim = resToClaim._1
892878 let resAmToClaim = resToClaim._2
893879 if ((resAmToClaim == 0))
894880 then $Tuple2(makeString(currentWhRes, "_"), makeString(currentPackRes, "_"))
895881 else if ((whSpaceLeft >= resAmToClaim))
896882 then {
897883 func addLists (acc,i) = (acc :+ toString((parseIntValue(currentWhRes[i]) + resListToClaim[i])))
898884
899885 let r = {
900886 let $l = [0, 1, 2, 3, 4, 5]
901887 let $s = size($l)
902888 let $acc0 = nil
903889 func $f0_1 ($a,$i) = if (($i >= $s))
904890 then $a
905891 else addLists($a, $l[$i])
906892
907893 func $f0_2 ($a,$i) = if (($i >= $s))
908894 then $a
909895 else throw("List size exceeds 6")
910896
911897 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
912898 }
913899 $Tuple2(makeString(r, "_"), makeString(currentPackRes, "_"))
914900 }
915901 else {
916902 func addPartLists (acc,i) = {
917903 let whPart = fraction(resListToClaim[i], whSpaceLeft, resAmToClaim)
918904 $Tuple2((acc._1 :+ toString((parseIntValue(currentWhRes[i]) + whPart))), (acc._2 :+ toString(((parseIntValue(currentPackRes[i]) + resListToClaim[i]) - whPart))))
919905 }
920906
921907 let r = {
922908 let $l = [0, 1, 2, 3, 4, 5]
923909 let $s = size($l)
924910 let $acc0 = $Tuple2(nil, nil)
925911 func $f0_1 ($a,$i) = if (($i >= $s))
926912 then $a
927913 else addPartLists($a, $l[$i])
928914
929915 func $f0_2 ($a,$i) = if (($i >= $s))
930916 then $a
931917 else throw("List size exceeds 6")
932918
933919 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
934920 }
935921 $Tuple2(makeString(r._1, "_"), makeString(r._2, "_"))
936922 }
937923 }
938924
939925
940926 func abs (x) = if ((x >= toBigInt(0)))
941927 then x
942928 else -(x)
943929
944930
945931 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]]
946932
947933 func genChar (n,freqs) = {
948934 let rem = toInt((n % TWENTYX))
949935 let letter = if ((freqs[0] > rem))
950936 then "A"
951937 else if ((freqs[1] > rem))
952938 then "B"
953939 else if ((freqs[2] > rem))
954940 then "C"
955941 else if ((freqs[3] > rem))
956942 then "D"
957943 else if ((freqs[4] > rem))
958944 then "E"
959945 else "F"
960946 letter
961947 }
962948
963949
964950 func genTerrains (seed,continentIdx) = {
965951 let f = freq[continentIdx]
966952 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))
967953
968954 let t = {
969955 let $l = [1, 2, 3, 4, 5]
970956 let $s = size($l)
971957 let $acc0 = $Tuple2("", (seed / FIVEX))
972958 func $f0_1 ($a,$i) = if (($i >= $s))
973959 then $a
974960 else terrainGenerator($a, $l[$i])
975961
976962 func $f0_2 ($a,$i) = if (($i >= $s))
977963 then $a
978964 else throw("List size exceeds 5")
979965
980966 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
981967 }
982968 t._1
983969 }
984970
985971
986972 func getBackpack (bpKey) = {
987973 let p = split(valueOrElse(getString(bpKey), "0:0_0_0_0_0_0:0_0_0_0_0_0:"), ":")
988974 [toString(valueOrElse(parseInt(p[bpIdxLevel]), 0)), if ((size(split(p[bpIdxRes], "_")) == NUMRES))
989975 then p[bpIdxRes]
990976 else "0_0_0_0_0_0", if ((size(split(p[bpIdxMat], "_")) == NUMRES))
991977 then p[bpIdxMat]
992978 else "0_0_0_0_0_0", p[bpIdxProd]]
993979 }
994980
995981
996982 func getWarehouseTotalVolume (volPrefix) = {
997983 let parts = split(volPrefix, "_")
998984 ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0]))
999985 }
1000986
1001987
1002988 func getWarehouseOccupiedVol (currentWh) = {
1003989 let goods = currentWh[whIdxProd]
1004990 func sumResMat (acc,item) = (acc + parseIntValue(item))
1005991
1006992 func sumProd (acc,item) = {
1007993 let idx = acc._1
1008994 let pkgs = (((parseIntValue(item) + PRODUCTPKGSIZE) - 1) / PRODUCTPKGSIZE)
1009995 $Tuple2((idx + 1), (acc._2 + (pkgs * MULT8)))
1010996 }
1011997
1012998 let whResVol = {
1013999 let $l = split(currentWh[whIdxRes], "_")
10141000 let $s = size($l)
10151001 let $acc0 = 0
10161002 func $f0_1 ($a,$i) = if (($i >= $s))
10171003 then $a
10181004 else sumResMat($a, $l[$i])
10191005
10201006 func $f0_2 ($a,$i) = if (($i >= $s))
10211007 then $a
10221008 else throw("List size exceeds 6")
10231009
10241010 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
10251011 }
10261012 let whMatVol = {
10271013 let $l = split(currentWh[whIdxMat], "_")
10281014 let $s = size($l)
10291015 let $acc0 = 0
10301016 func $f1_1 ($a,$i) = if (($i >= $s))
10311017 then $a
10321018 else sumResMat($a, $l[$i])
10331019
10341020 func $f1_2 ($a,$i) = if (($i >= $s))
10351021 then $a
10361022 else throw("List size exceeds 6")
10371023
10381024 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
10391025 }
10401026 let whGoodsVol = if ((goods == ""))
10411027 then 0
10421028 else ( let $l = split_4C(goods, "_")
10431029 let $s = size($l)
10441030 let $acc0 = $Tuple2(0, 0)
10451031 func $f2_1 ($a,$i) = if (($i >= $s))
10461032 then $a
10471033 else sumProd($a, $l[$i])
10481034
10491035 func $f2_2 ($a,$i) = if (($i >= $s))
10501036 then $a
10511037 else throw("List size exceeds 50")
10521038
10531039 $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
10541040 ((whResVol + whMatVol) + whGoodsVol)
10551041 }
10561042
10571043
10581044 func getWarehouse (whKey,landIndex,infraLevel) = {
10591045 let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel))
10601046 let whTotal = getWarehouseTotalVolume(volPrefix)
10611047 let whStr = valueOrElse(getString(whKey), (volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0"))
10621048 let wh = split_4C(whStr, ":")
10631049 let whOccupied = getWarehouseOccupiedVol(wh)
10641050 let whLoft = if ((5 > size(wh)))
10651051 then makeString(["0", toString(whOccupied), toString((whTotal - whOccupied)), toString(whTotal)], "_")
10661052 else {
10671053 let loft = split(wh[whIdxLOFT], "_")
10681054 let whLocked = parseIntValue(loft[volLocked])
10691055 let occ = if ((size(loft) > 1))
10701056 then parseIntValue(loft[volOccupied])
10711057 else whOccupied
10721058 makeString([toString(whLocked), toString(occ), toString(((whTotal - whLocked) - occ)), toString(whTotal)], "_")
10731059 }
10741060 [wh[whIdxLevels], if ((size(split(wh[whIdxRes], "_")) == NUMRES))
10751061 then wh[whIdxRes]
10761062 else "0_0_0_0_0_0", if ((size(split(wh[whIdxMat], "_")) == NUMRES))
10771063 then wh[whIdxMat]
10781064 else "0_0_0_0_0_0", wh[whIdxProd], whLoft]
10791065 }
10801066
10811067
10821068 func getWarehouseSpaceLeft (currentWh) = {
10831069 let occupiedVol = getWarehouseOccupiedVol(currentWh)
10841070 let currWhLockedVol = parseIntValue(split(currentWh[whIdxLOFT], "_")[volLocked])
10851071 ((getWarehouseTotalVolume(currentWh[whIdxLevels]) - occupiedVol) - currWhLockedVol)
10861072 }
10871073
10881074
10891075 func toVolume (amount,pkgSize) = {
10901076 let pkgs = if ((amount >= 0))
10911077 then (((amount + pkgSize) - 1) / pkgSize)
10921078 else -((((-(amount) + pkgSize) - 1) / pkgSize))
10931079 (pkgs * MULT8)
10941080 }
10951081
10961082
10971083 func moveStuff (cargoParts,currentWh,currentPack) = if ((size(cargoParts) != 3))
10981084 then throw("cargoListStr should contain exactly 2 ':' separators")
10991085 else {
11001086 let resParts = split(cargoParts[0], "_")
11011087 let matParts = split(cargoParts[1], "_")
11021088 let prodParts = if ((cargoParts[2] == ""))
11031089 then nil
11041090 else split(cargoParts[2], "_")
11051091 if ((size(resParts) != NUMRES))
11061092 then throw("All 6 resources should be passed")
11071093 else if ((size(matParts) != NUMRES))
11081094 then throw("All 6 materials should be passed")
11091095 else {
11101096 let whSpaceLeft = getWarehouseSpaceLeft(currentWh)
11111097 let currWhRes = split(currentWh[whIdxRes], "_")
11121098 let currWhMat = split(currentWh[whIdxMat], "_")
11131099 let currWhProd = if ((currentWh[whIdxProd] == ""))
11141100 then nil
11151101 else split(currentWh[whIdxProd], "_")
11161102 let currentPackRes = split(currentPack[bpIdxRes], "_")
11171103 let currentPackMat = split(currentPack[bpIdxMat], "_")
11181104 let currentPackProd = if ((currentPack[bpIdxProd] == ""))
11191105 then nil
11201106 else split(currentPack[bpIdxProd], "_")
11211107 func mvR (acc,item) = {
11221108 let i = acc._1
11231109 let am = parseIntValue(item)
11241110 let whr = parseIntValue(currWhRes[i])
11251111 let bpr = parseIntValue(currentPackRes[i])
11261112 if ((am == 0))
11271113 then $Tuple4((i + 1), (acc._2 :+ currWhRes[i]), (acc._3 :+ currentPackRes[i]), acc._4)
11281114 else if ((am > 0))
11291115 then if ((am > bpr))
11301116 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpr)) + " available"))
11311117 else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am))
11321118 else if ((-(am) > whr))
11331119 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whr)) + " available"))
11341120 else $Tuple4((i + 1), (acc._2 :+ toString((whr + am))), (acc._3 :+ toString((bpr - am))), (acc._4 + am))
11351121 }
11361122
11371123 let r = {
11381124 let $l = resParts
11391125 let $s = size($l)
11401126 let $acc0 = $Tuple4(0, nil, nil, 0)
11411127 func $f0_1 ($a,$i) = if (($i >= $s))
11421128 then $a
11431129 else mvR($a, $l[$i])
11441130
11451131 func $f0_2 ($a,$i) = if (($i >= $s))
11461132 then $a
11471133 else throw("List size exceeds 6")
11481134
11491135 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
11501136 }
11511137 func mvM (acc,item) = {
11521138 let i = acc._1
11531139 let am = parseIntValue(item)
11541140 let whm = parseIntValue(currWhMat[i])
11551141 let bpm = parseIntValue(currentPackMat[i])
11561142 if ((am == 0))
11571143 then $Tuple4((i + 1), (acc._2 :+ currWhMat[i]), (acc._3 :+ currentPackMat[i]), acc._4)
11581144 else if ((am > 0))
11591145 then if ((am > bpm))
11601146 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpm)) + " available"))
11611147 else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am))
11621148 else if ((-(am) > whm))
11631149 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whm)) + " available"))
11641150 else $Tuple4((i + 1), (acc._2 :+ toString((whm + am))), (acc._3 :+ toString((bpm - am))), (acc._4 + am))
11651151 }
11661152
11671153 let m = {
11681154 let $l = matParts
11691155 let $s = size($l)
11701156 let $acc0 = $Tuple4(0, nil, nil, r._4)
11711157 func $f1_1 ($a,$i) = if (($i >= $s))
11721158 then $a
11731159 else mvM($a, $l[$i])
11741160
11751161 func $f1_2 ($a,$i) = if (($i >= $s))
11761162 then $a
11771163 else throw("List size exceeds 6")
11781164
11791165 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
11801166 }
11811167 func mvP (acc,item) = {
11821168 let i = acc._1
11831169 let am = parseIntValue(item)
11841170 let whp = if ((size(currWhProd) > i))
11851171 then parseIntValue(currWhProd[i])
11861172 else 0
11871173 let bpp = if ((size(currentPackProd) > i))
11881174 then parseIntValue(currentPackProd[i])
11891175 else 0
11901176 if ((am == 0))
11911177 then $Tuple4((i + 1), (acc._2 :+ toString(whp)), (acc._3 :+ toString(bpp)), acc._4)
11921178 else if ((am > 0))
11931179 then if ((am > bpp))
11941180 then throw((((("Attempt to take " + item) + " from backpack, but only ") + toString(bpp)) + " available"))
11951181 else {
11961182 let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE))
11971183 $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
11981184 }
11991185 else if ((-(am) > whp))
12001186 then throw((((("Attempt to take " + toString(-(am))) + " from warehouse, but only ") + toString(whp)) + " available"))
12011187 else {
12021188 let deltaVol = (toVolume((whp + am), PRODUCTPKGSIZE) - toVolume(whp, PRODUCTPKGSIZE))
12031189 $Tuple4((i + 1), (acc._2 :+ toString((whp + am))), (acc._3 :+ toString((bpp - am))), (acc._4 + deltaVol))
12041190 }
12051191 }
12061192
12071193 let p = if ((size(prodParts) != 0))
12081194 then {
12091195 let $l = prodParts
12101196 let $s = size($l)
12111197 let $acc0 = $Tuple4(0, nil, nil, m._4)
12121198 func $f2_1 ($a,$i) = if (($i >= $s))
12131199 then $a
12141200 else mvP($a, $l[$i])
12151201
12161202 func $f2_2 ($a,$i) = if (($i >= $s))
12171203 then $a
12181204 else throw("List size exceeds 50")
12191205
12201206 $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)
12211207 }
12221208 else $Tuple4(0, currWhProd, currentPackProd, m._4)
12231209 let volSaldo = p._4
12241210 if ((volSaldo > whSpaceLeft))
12251211 then throw((((("Attempt to put total " + toString(volSaldo)) + " stuff, but only ") + toString(whSpaceLeft)) + " warehouse space left"))
12261212 else $Tuple7(makeString(r._2, "_"), makeString(m._2, "_"), makeString(p._2, "_"), makeString(r._3, "_"), makeString(m._3, "_"), makeString(p._3, "_"), volSaldo)
12271213 }
12281214 }
12291215
12301216
12311217 func expeditionInternal (caller,txId) = {
12321218 let userAddr = toString(caller)
12331219 let bigNum = abs(toBigInt(txId))
12341220 let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1))
12351221 let landNum = toString(freeNum)
12361222 let continentIdx = toInt((bigNum % FIVEX))
12371223 let terrains = genTerrains(bigNum, continentIdx)
12381224 let continent = continents[continentIdx]
12391225 let issue = Issue(nftName(landNum, "S"), makeString([landNum, "S", terrains, continent], "_"), 1, 0, false)
12401226 let assetId = calculateAssetId(issue)
12411227 let id = toBase58String(assetId)
12421228 $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))
12431229 }
12441230
12451231
12461232 func flightCommon (userAddr,message,sig) = if (!(sigVerify_8Kb(message, sig, pub)))
12471233 then throw("signature does not match")
12481234 else {
12491235 let parts = split(toUtf8String(message), ";")
12501236 let flightLog = split(parts[0], "|")
12511237 let hp = split(flightLog[flHealth], "_")
12521238 let curHP = parseIntValue(hp[0])
12531239 let newHP = parseIntValue(hp[1])
12541240 let newLocTxVer = split(parts[1], ":")
12551241 let newLocation = newLocTxVer[0]
12561242 let time = parseIntValue(flightLog[flTimestamp])
12571243 if (if ((time > (lastBlock.timestamp + FIVEMINUTESMILLIS)))
12581244 then true
12591245 else ((lastBlock.timestamp - FIVEMINUTESMILLIS) > time))
12601246 then throw(((("signature outdated: logTime=" + toString(time)) + ", bcTime=") + toString(lastBlock.timestamp)))
12611247 else {
12621248 let txFromMsg = newLocTxVer[1]
12631249 let lastTx = valueOrElse(getString(keyLastTxIdByUser(userAddr)), "")
12641250 if ((lastTx != txFromMsg))
12651251 then throw(((("Tx ids don't match! In state: " + lastTx) + ", in msg: ") + txFromMsg))
12661252 else {
12671253 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(userAddr)), "You don't have a duck staked")
12681254 let keyHealth = keyDuckHealth(duckAssetId)
12691255 let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0))
12701256 let oldFromState = valueOrElse(getInteger(keyHealth), maxHP)
12711257 if ((oldFromState != curHP))
12721258 then throw(((("oldHealth=" + toString(oldFromState)) + " from state does not match one from flight log=") + toString(curHP)))
12731259 else if ((0 >= curHP))
12741260 then throw("You can't fly with zero health")
12751261 else {
12761262 let bonus = if ((size(flightLog) > flBonus))
12771263 then flightLog[flBonus]
12781264 else ""
12791265 let prodUsed = if ((size(flightLog) > flProdsUsed))
12801266 then flightLog[flProdsUsed]
12811267 else ""
12821268 let sentAmount = if (if ((newHP > 0))
12831269 then (bonus == "$")
12841270 else false)
12851271 then asInt(invoke(restContract, "sendUsdtPrize", [userAddr], nil))
12861272 else 0
12871273 $Tuple5(newHP, duckAssetId, sentAmount, newLocation, prodUsed)
12881274 }
12891275 }
12901276 }
12911277 }
12921278
12931279
12941280 func expeditionCommon (caller,txId,message,sig) = {
12951281 let userAddr = toString(caller)
12961282 let f = flightCommon(userAddr, message, sig)
1297- let keyHealth = keyDuckHealth(f._2)
1298- let bpKey = keyBackpackByDuck(f._2)
1283+ let duckAssetId = f._2
1284+ let keyHealth = keyDuckHealth(duckAssetId)
1285+ let bpKey = keyBackpackByDuck(duckAssetId)
12991286 let currentPack = getBackpack(bpKey)
13001287 let mList = split(currentPack[bpIdxMat], "_")
13011288 let newMat = makeString(subtractMaterials(true, mList, EXPMATERIALS), "_")
1302- let newProd = subtractProducts(currentPack[bpIdxProd], f._5)
1289+ let eqKey = keyDuckEquipment(duckAssetId)
1290+ let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,")
1291+ let newEq = subtractEquipment(currentEq, f._5)
13031292 if ((0 >= f._1))
1304- then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":"))], "", 0)
1293+ then $Tuple3([IntegerEntry(keyHealth, 0), StringEntry(eqKey, newEq)], "", 0)
13051294 else {
13061295 let e = expeditionInternal(caller, txId)
13071296 let id = e._2._1
1308- $Tuple3((((e._1 :+ StringEntry(keyDuckLocation(f._2), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, newProd], ":"))), id, f._3)
1297+ $Tuple3(((((e._1 :+ StringEntry(keyDuckLocation(duckAssetId), makeString([e._2._2, "L", id], "_"))) :+ IntegerEntry(keyHealth, f._1)) :+ StringEntry(eqKey, newEq)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], newMat, currentPack[bpIdxProd]], ":"))), id, f._3)
13091298 }
13101299 }
13111300
13121301
13131302 func applyBonuses (landAssetId,pieces) = {
13141303 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
13151304 let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)
13161305 let add6 = (infraLevel / 6)
13171306 let add7 = (infraLevel / 7)
13181307 ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))
13191308 }
13201309
13211310
13221311 func checkClaimConditions (addr,claimMode,landAssetIdIn) = {
1323- let $t02895229491 = if ((claimMode == claimModeWh))
1312+ let $t02920329742 = if ((claimMode == claimModeWh))
13241313 then $Tuple2(landAssetIdIn, valueOrElse(getString(keyStakedDuckByOwner(addr)), ""))
13251314 else {
13261315 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
13271316 let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION)
13281317 let loc = split(value(curLocation), "_")
13291318 if ((loc[locIdxType] != "L"))
13301319 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
13311320 else $Tuple2(loc[locIdxId], duckAssetId)
13321321 }
1333- let landAssetId = $t02895229491._1
1334- let duckId = $t02895229491._2
1322+ let landAssetId = $t02920329742._1
1323+ let duckId = $t02920329742._2
13351324 let asset = value(assetInfo(fromBase58String(landAssetId)))
13361325 let timeKey = keyStakedTimeByAssetId(landAssetId)
13371326 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("Land " + asset.name) + " is not staked"))
13381327 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
13391328 if ((owner != addr))
13401329 then throw((LANDPREFIX + " is not yours"))
13411330 else {
13421331 let d = split(asset.description, "_")
13431332 $Tuple4(duckId, landAssetId, d, savedTime)
13441333 }
13451334 }
13461335
13471336
13481337 func claimResInternal (addr,amount,claimMode,landAssetIdIn) = if ((0 > amount))
13491338 then throw("Negative amount")
13501339 else {
13511340 let c = checkClaimConditions(addr, claimMode, landAssetIdIn)
13521341 let landSize = c._3[recLandSize]
13531342 let terrainCounts = countTerrains(c._3[recTerrains])
13541343 let deltaTime = (lastBlock.timestamp - c._4)
13551344 if ((0 > deltaTime))
13561345 then throw(((("Saved timestamp is in future, saved = " + toString(c._4)) + ", current = ") + toString(lastBlock.timestamp)))
13571346 else {
13581347 let pieces = numPiecesBySize(landSize)
13591348 let dailyProductionByPiece = applyBonuses(c._2, pieces)
13601349 let availRes = fraction(deltaTime, (dailyProductionByPiece * pieces), DAYMILLIS)
13611350 if ((amount > availRes))
13621351 then throw(((("Not enough resources, available = " + toString(availRes)) + ", requested = ") + toString(amount)))
13631352 else {
13641353 let newDeltaTime = fraction((availRes - amount), DAYMILLIS, (dailyProductionByPiece * pieces))
13651354 let newTimestamp = (lastBlock.timestamp - newDeltaTime)
13661355 let landIndex = (pieces / SSIZE)
13671356 let resToClaim = virtClaim(terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece)
13681357 let whKey = keyWarehouseByLand(c._2)
13691358 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(c._2)), 0)
13701359 let currentWh = getWarehouse(whKey, landIndex, infraLevel)
13711360 let loft = split(currentWh[whIdxLOFT], "_")
13721361 let whSpaceLeft = parseIntValue(loft[volFree])
13731362 if (if ((claimMode == claimModeWh))
13741363 then (amount > whSpaceLeft)
13751364 else false)
13761365 then throw((("Only " + toString(whSpaceLeft)) + " space left in warehouse"))
13771366 else {
13781367 let bpKey = keyBackpackByDuck(c._1)
13791368 let currentPack = getBackpack(bpKey)
13801369 let currentPackRes = split(currentPack[bpIdxRes], "_")
13811370 let currentWhRes = split(currentWh[whIdxRes], "_")
1382- let $t03186532736 = if ((claimMode == claimModeWh))
1371+ let $t03211632987 = if ((claimMode == claimModeWh))
13831372 then $Tuple4(addRes(currentWhRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), currentPack[bpIdxRes], (parseIntValue(loft[volOccupied]) + resToClaim._2), (parseIntValue(loft[volFree]) - resToClaim._2))
13841373 else if ((claimMode == claimModeDuck))
13851374 then $Tuple4(currentWh[whIdxRes], addRes(currentPackRes, terrainCounts, (deltaTime - newDeltaTime), landIndex, dailyProductionByPiece), parseIntValue(loft[volOccupied]), parseIntValue(loft[volFree]))
13861375 else {
13871376 let distr = distributeRes(currentWhRes, currentPackRes, resToClaim, whSpaceLeft)
13881377 let whAm = min([parseIntValue(loft[volFree]), resToClaim._2])
13891378 $Tuple4(distr._1, distr._2, (parseIntValue(loft[volOccupied]) + whAm), (parseIntValue(loft[volFree]) - whAm))
13901379 }
1391- let whRes = $t03186532736._1
1392- let bpRes = $t03186532736._2
1393- let loftO = $t03186532736._3
1394- let loftF = $t03186532736._4
1380+ let whRes = $t03211632987._1
1381+ let bpRes = $t03211632987._2
1382+ let loftO = $t03211632987._3
1383+ let loftF = $t03211632987._4
13951384 $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]], "_")])
13961385 }
13971386 }
13981387 }
13991388 }
14001389
14011390
14021391 func claimAll (addr,landAssetId,pieces,claimMode) = {
14031392 let timeKey = keyStakedTimeByAssetId(landAssetId)
14041393 let savedTime = value(getInteger(timeKey))
14051394 let availRes = (fraction((lastBlock.timestamp - savedTime), applyBonuses(landAssetId, pieces), DAYMILLIS) * pieces)
14061395 claimResInternal(addr, availRes, claimMode, landAssetId)
14071396 }
14081397
14091398
14101399 func upInfraCommon (shouldUseMat,caller,paymentAmount,landAssetId) = {
14111400 let addr = toString(caller)
14121401 let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetId)
14131402 let pieces = numPiecesBySize(c._3[recLandSize])
14141403 let infraKey = keyInfraLevelByAssetId(c._2)
14151404 let curLevel = valueOrElse(getInteger(infraKey), 0)
14161405 if ((curLevel >= 3))
14171406 then throw("Currently max infrastructure level = 3")
14181407 else {
14191408 let newLevel = (curLevel + 1)
14201409 let cost = fraction(InfraUpgradeCostSUsdt, (pieces * newLevel), SSIZE)
14211410 if (if (!(shouldUseMat))
14221411 then (paymentAmount != cost)
14231412 else false)
14241413 then throw(("Payment attached should be " + toString(cost)))
14251414 else {
14261415 let bpKey = keyBackpackByDuck(c._1)
14271416 let currentPack = getBackpack(bpKey)
14281417 let mList = split(currentPack[bpIdxMat], "_")
14291418 let matUsed = fraction(InfraUpgradeCostS, (pieces * newLevel), SSIZE)
14301419 let newMat = makeString(subtractMaterials(shouldUseMat, mList, matUsed), "_")
14311420 let claimResult = claimAll(addr, c._2, pieces, claimModeWhThenDuck)
14321421 let whData = claimResult._5
14331422 let oldVol = getWarehouseTotalVolume(whData[whIdxLevels])
14341423 let newVolData = makeString([split(whData[whIdxLevels], "_")[0], toString(newLevel)], "_")
14351424 let newVol = getWarehouseTotalVolume(newVolData)
14361425 let loft = split(whData[whIdxLOFT], "_")
14371426 let newLoftStr = makeString([loft[volLocked], loft[volOccupied], toString(((parseIntValue(loft[volFree]) + newVol) - oldVol)), toString(newVol)], "_")
14381427 $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)
14391428 }
14401429 }
14411430 }
14421431
14431432
14441433 func updateDuckStatsInternal (duckAssetId,deltaXP) = if (!(KSALLOWXPLEVELS))
14451434 then $Tuple2(nil, 0)
14461435 else {
14471436 let lvlKey = keyDuckLevel(duckAssetId)
14481437 let xpKey = keyDuckXP(duckAssetId)
14491438 let xp = valueOrElse(getInteger(stakingContract, xpKey), 0)
14501439 let newXP = (xp + deltaXP)
14511440 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP)
14521441 let keyPoints = keyDuckFreePoints(duckAssetId)
14531442 $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP)
14541443 }
14551444
14561445
14571446 func updateAccStatsInternal (addr,deltaXP) = if (!(KSALLOWXPLEVELS))
14581447 then $Tuple2(nil, 0)
14591448 else {
14601449 let lvlKey = keyUserLevel(addr)
14611450 let xpKey = keyUserXP(addr)
14621451 let xp = valueOrElse(getInteger(stakingContract, xpKey), 0)
14631452 let newXP = (xp + deltaXP)
14641453 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP)
14651454 let keyPoints = keyUserFreePoints(addr)
14661455 $Tuple2([IntegerEntry(lvlKey, lvlPoints[0]), IntegerEntry(xpKey, newXP), IntegerEntry(keyPoints, (valueOrElse(getInteger(keyPoints), 0) + lvlPoints[1]))], newXP)
14671456 }
14681457
14691458
14701459 func activateOnboardArt (addr) = {
14711460 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
14721461 let refByKey = keyAddressRefBy(addr)
14731462 let refBy = getString(refByKey)
14741463 if (!(isDefined(refBy)))
14751464 then throw("You are not eligible for ONBOARD artifact")
14761465 else {
14771466 let artKey = keyOnboardArtDuckActivatedBy(addr)
14781467 let artDuck = getString(artKey)
14791468 if (isDefined(artDuck))
14801469 then throw(("You already used your ONBOARD artifact on duck " + value(artDuck)))
14811470 else {
14821471 let duckActivatorKey = keyOnboardArtActivatedOnDuck(duckAssetId)
14831472 let duckActivator = getString(duckActivatorKey)
14841473 if (isDefined(duckActivator))
14851474 then throw(((("The duck " + duckAssetId) + " already got points from ONBOARD artifact from user ") + value(duckActivator)))
14861475 else ([StringEntry(artKey, duckAssetId), StringEntry(duckActivatorKey, addr)] ++ updateDuckStatsInternal(duckAssetId, xpOnboard)._1)
14871476 }
14881477 }
14891478 }
14901479
14911480
14921481 func activatePresaleArt (addr,landAssetIdIn) = {
14931482 let c = checkClaimConditions(addr, claimModeWhThenDuck, landAssetIdIn)
14941483 let landAssetId = c._2
14951484 let pieces = numPiecesBySize(c._3[recLandSize])
14961485 let activationKey = keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)
14971486 if ((valueOrElse(getInteger(activationKey), 0) > 0))
14981487 then throw("Presale artifact is already activated")
14991488 else if ((parseIntValue(c._3[recLandNum]) > PRESALENUMLANDS))
15001489 then throw((((LANDPREFIX + " ") + landAssetId) + " is not eligible for presale artifact"))
15011490 else {
15021491 let claimResult = claimAll(addr, landAssetId, pieces, claimModeWhThenDuck)
15031492 ((((claimResult._1 :+ IntegerEntry(activationKey, pieces)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr), pieces)) :+ StringEntry(claimResult._2, makeString(claimResult._3, ":"))) :+ StringEntry(claimResult._4, makeString(claimResult._5, ":")))
15041493 }
15051494 }
15061495
15071496
15081497 func mergeInternal (newLandSize,newLevel,formula,addr,landAssetIds,txId,needMat) = {
15091498 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
15101499 func checkMerge (acc,landAssetId) = {
15111500 let asset = value(assetInfo(fromBase58String(landAssetId)))
15121501 let timeKey = keyStakedTimeByAssetId(landAssetId)
15131502 let savedTime = valueOrErrorMessage(getInteger(timeKey), (("NFT " + asset.name) + " is not staked"))
15141503 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
15151504 if ((owner != addr))
15161505 then throw((LANDPREFIX + " is not yours"))
15171506 else {
15181507 let d = split(asset.description, "_")
15191508 let continent = d[recContinent]
15201509 if (if ((acc._3 != ""))
15211510 then (acc._3 != continent)
15221511 else false)
15231512 then throw("Lands should be on the same continent to merge")
15241513 else {
15251514 let landSize = d[recLandSize]
15261515 let sizesIn = acc._1
15271516 let i = valueOrErrorMessage(indexOf(sizesIn, landSize), "You haven't passed all the lands needed")
15281517 let sizesOut = (take(sizesIn, i) + drop(sizesIn, (i + 1)))
15291518 let pieces = numPiecesBySize(landSize)
15301519 let arts = (acc._2 + valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0))
15311520 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
15321521 let reqLevel = match landSize {
15331522 case _ =>
15341523 if (("S" == $match0))
15351524 then 3
15361525 else if (("M" == $match0))
15371526 then 4
15381527 else if (("L" == $match0))
15391528 then 5
15401529 else if (("XL" == $match0))
15411530 then 6
15421531 else throw("Only S, M, L, XL can merge")
15431532 }
15441533 if ((infraLevel != reqLevel))
15451534 then throw("All lands should be maxed to merge")
15461535 else {
15471536 let landNum = d[recLandNum]
15481537 let terrainCounts = countTerrains(d[recTerrains])
15491538 let deltaTime = (lastBlock.timestamp - savedTime)
15501539 if ((0 > deltaTime))
15511540 then throw(((("Saved timestamp is in future, saved = " + toString(savedTime)) + ", current = ") + toString(lastBlock.timestamp)))
15521541 else {
15531542 let dailyProductionByPiece = applyBonuses(landAssetId, pieces)
15541543 let landIndex = (pieces / SSIZE)
15551544 let bpRes = addRes(split(acc._4, "_"), terrainCounts, deltaTime, landIndex, dailyProductionByPiece)
15561545 let props = updateProportionsInternal(split(acc._6, "_"), terrainCounts, landIndex, -1)
15571546 let lands = acc._7
15581547 let idx = indexOf(lands, landAssetId)
15591548 if (!(isDefined(idx)))
15601549 then throw(("Your staked lands don't contain " + landAssetId))
15611550 else {
15621551 let customKey = keyLandAssetIdToCustomName(landAssetId)
15631552 let customName = valueOrElse(getString(customKey), "")
15641553 $Tuple8(sizesOut, arts, continent, bpRes, (((((((((((((acc._5 :+ DeleteEntry(keyStakedTimeByAssetId(landAssetId))) :+ DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr))) :+ DeleteEntry(keyLandToAssetId(landNum))) :+ DeleteEntry(keyLandAssetIdToOwner(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetId(landAssetId))) :+ DeleteEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, addr))) :+ DeleteEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId))) :+ DeleteEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, addr))) :+ DeleteEntry(keyLandNumToOwner(landNum))) :+ DeleteEntry(keyWarehouseByLand(landAssetId))) :+ DeleteEntry(customKey)) :+ DeleteEntry(keyLandCustomNameToAssetId(customName))) :+ Burn(fromBase58String(landAssetId), 1)), props, removeByIndex(lands, value(idx)), (acc._8 + pieces))
15651554 }
15661555 }
15671556 }
15681557 }
15691558 }
15701559 }
15711560
15721561 let bpKey = keyBackpackByDuck(duckAssetId)
15731562 let currentPack = getBackpack(bpKey)
15741563 let propStr = valueOrElse(getString(keyResProportions()), "0_0_0_0_0_0")
15751564 let landsKey = keyStakedLandsByOwner(addr)
15761565 let landsStr = getString(landsKey)
15771566 let landsIn = if (isDefined(landsStr))
15781567 then split_51C(value(landsStr), "_")
15791568 else nil
15801569 let r = {
15811570 let $l = landAssetIds
15821571 let $s = size($l)
15831572 let $acc0 = $Tuple8(formula, 0, "", currentPack[bpIdxRes], nil, propStr, landsIn, 0)
15841573 func $f0_1 ($a,$i) = if (($i >= $s))
15851574 then $a
15861575 else checkMerge($a, $l[$i])
15871576
15881577 func $f0_2 ($a,$i) = if (($i >= $s))
15891578 then $a
15901579 else throw("List size exceeds 5")
15911580
15921581 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
15931582 }
15941583 let continent = r._3
15951584 let continentIdx = valueOrErrorMessage(indexOf(continents, continent), ("Unknown continent: " + continent))
15961585 let terrains = genTerrains(abs(toBigInt(txId)), continentIdx)
15971586 let freeNum = valueOrElse(getInteger(keyNextFreeLandNum()), (PRESALENUMLANDS + 1))
15981587 let newLandNum = toString(freeNum)
15991588 let issue = Issue(nftName(newLandNum, newLandSize), makeString([newLandNum, newLandSize, terrains, continent], "_"), 1, 0, false)
16001589 let assetId = calculateAssetId(issue)
16011590 let newLandAssetId = toBase58String(assetId)
16021591 let newMat = makeString(subtractMaterials((needMat > 0), split(currentPack[bpIdxMat], "_"), needMat), "_")
16031592 let piecesKey = keyStakedPiecesByOwner(addr)
16041593 let stakedPieces = valueOrElse(getInteger(piecesKey), 0)
16051594 $Tuple2((((((((((((((((r._5 :+ (if ((size(r._7) > 0))
16061595 then StringEntry(landsKey, makeString_11C(r._7, "_"))
16071596 else DeleteEntry(landsKey))) :+ IntegerEntry(piecesKey, if ((r._8 > stakedPieces))
16081597 then 0
16091598 else (stakedPieces - r._8))) :+ IntegerEntry(keyNextFreeLandNum(), (freeNum + 1))) :+ issue) :+ StringEntry(keyLandToAssetId(newLandNum), newLandAssetId)) :+ StringEntry(keyLandAssetIdToOwner(newLandAssetId), addr)) :+ StringEntry(keyLandNumToOwner(newLandNum), addr)) :+ IntegerEntry(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, newLandAssetId), r._2)) :+ IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, newLandAssetId, addr), r._2)) :+ IntegerEntry(keyInfraLevelByAssetId(newLandAssetId), newLevel)) :+ IntegerEntry(keyInfraLevelByAssetIdAndOwner(newLandAssetId, addr), newLevel)) :+ StringEntry(bpKey, makeString([currentPack[bpIdxLevel], r._4, newMat, currentPack[bpIdxProd]], ":"))) :+ StringEntry(keyResProportions(), r._6)) :+ StringEntry(keyDuckLocation(duckAssetId), makeString([continent, "L", newLandAssetId], "_"))) :+ ScriptTransfer(addressFromStringValue(addr), 1, assetId)), newLandAssetId)
16101599 }
16111600
16121601
16131602 func s2m (addr,landAssetIds,txId) = mergeInternal("M", 3, "SSSS", addr, landAssetIds, txId, 0)
16141603
16151604
16161605 func m2l (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
16171606 let cost = (InfraUpgradeCostSUsdt * 4)
16181607 if (if (!(shouldUseMat))
16191608 then (paymentAmount != cost)
16201609 else false)
16211610 then throw(("Payment attached should be " + toString(cost)))
16221611 else mergeInternal("L", 4, "SMM", addr, landAssetIds, txId, (InfraUpgradeCostS * 4))
16231612 }
16241613
16251614
16261615 func l2xl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
16271616 let cost = (InfraUpgradeCostSUsdt * 47)
16281617 if (if (!(shouldUseMat))
16291618 then (paymentAmount != cost)
16301619 else false)
16311620 then throw(("Payment attached should be " + toString(cost)))
16321621 else mergeInternal("XL", 5, "SSSML", addr, landAssetIds, txId, (InfraUpgradeCostS * 47))
16331622 }
16341623
16351624
16361625 func xl2xxl (addr,landAssetIds,txId,shouldUseMat,paymentAmount) = {
16371626 let cost = (InfraUpgradeCostSUsdt * 54)
16381627 if (if (!(shouldUseMat))
16391628 then (paymentAmount != cost)
16401629 else false)
16411630 then throw(("Payment attached should be " + toString(cost)))
16421631 else mergeInternal("XXL", 6, "LXL", addr, landAssetIds, txId, (InfraUpgradeCostS * 54))
16431632 }
16441633
16451634
16461635 func mergeCommon (shouldUseMat,addr,paymentAmount,landAssetIds,txId) = {
16471636 let mergeResult = match size(landAssetIds) {
16481637 case _ =>
16491638 if ((4 == $match0))
16501639 then s2m(addr, landAssetIds, txId)
16511640 else if ((3 == $match0))
16521641 then m2l(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
16531642 else if ((5 == $match0))
16541643 then l2xl(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
16551644 else if ((2 == $match0))
16561645 then xl2xxl(addr, landAssetIds, txId, shouldUseMat, paymentAmount)
16571646 else throw("Unknown merge")
16581647 }
16591648 mergeResult
16601649 }
16611650
16621651
16631652 func prolog (i) = if (if ((i.originCaller != restContract))
16641653 then valueOrElse(getBoolean(keyBlocked()), false)
16651654 else false)
16661655 then throw("Contracts are under maintenance")
16671656 else StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))
16681657
16691658
16701659 @Callable(i)
16711660 func constructorV1 (restAddr) = if ((i.caller != this))
16721661 then throw("Permission denied")
16731662 else [StringEntry(keyRestAddress(), restAddr)]
16741663
16751664
16761665
16771666 @Callable(i)
16781667 func setBlocked (isBlocked) = if ((i.caller != this))
16791668 then throw("permission denied")
16801669 else [BooleanEntry(keyBlocked(), isBlocked)]
16811670
16821671
16831672
16841673 @Callable(i)
16851674 func stakeLand () = {
16861675 let prologAction = prolog(i)
16871676 if ((size(i.payments) != 1))
16881677 then throw("Exactly one payment required")
16891678 else {
16901679 let pmt = value(i.payments[0])
16911680 let assetId = value(pmt.assetId)
16921681 let address = toString(i.caller)
16931682 if ((pmt.amount != 1))
16941683 then throw((("NFT " + LANDPREFIX) + " token should be attached as payment"))
16951684 else {
16961685 let asset = value(assetInfo(assetId))
16971686 if ((asset.issuer != this))
16981687 then throw("Unknown issuer of token")
16991688 else if (!(contains(asset.name, LANDPREFIX)))
17001689 then throw((("Only NFT " + LANDPREFIX) + " tokens are accepted"))
17011690 else {
17021691 let landNumSize = drop(asset.name, 4)
17031692 let landNum = if (contains(landNumSize, "XXL"))
17041693 then dropRight(landNumSize, 3)
17051694 else if (contains(landNumSize, "XL"))
17061695 then dropRight(landNumSize, 2)
17071696 else dropRight(landNumSize, 1)
17081697 if (!(isDefined(parseInt(landNum))))
17091698 then throw(("Cannot parse land number from " + asset.name))
17101699 else {
17111700 let landAssetId = toBase58String(assetId)
17121701 let timeKey = keyStakedTimeByAssetId(landAssetId)
17131702 if (isDefined(getInteger(timeKey)))
17141703 then throw((("NFT " + asset.name) + " is already staked"))
17151704 else {
17161705 let d = split(asset.description, "_")
17171706 let terrainCounts = countTerrains(d[recTerrains])
17181707 let pieces = numPiecesBySize(d[recLandSize])
17191708 let props = updateProportions(terrainCounts, (pieces / SSIZE), 1)
17201709 let artPieces = valueOrElse(getInteger(keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0)
17211710 let landsKey = keyStakedLandsByOwner(address)
17221711 let landsStr = getString(landsKey)
17231712 let lands = if (isDefined(landsStr))
17241713 then split_51C(value(landsStr), "_")
17251714 else nil
17261715 if (containsElement(lands, landAssetId))
17271716 then throw(("Your staked lands already contain " + landAssetId))
17281717 else {
17291718 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
17301719 let piecesKey = keyStakedPiecesByOwner(address)
17311720 let oldPieces = valueOrElse(getInteger(piecesKey), 0)
17321721 let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [address], nil))
17331722 $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, address), lastBlock.timestamp), StringEntry(landsKey, makeString_11C((lands :+ landAssetId), "_")), IntegerEntry(piecesKey, (oldPieces + pieces)), StringEntry(keyLandAssetIdToOwner(landAssetId), address), StringEntry(keyLandNumToOwner(landNum), address), IntegerEntry(keyLandArtStatusByTypeAssetIdAndOwner(ARTPRESALE, landAssetId, address), artPieces), IntegerEntry(keyInfraLevelByAssetIdAndOwner(landAssetId, address), infraLevel), StringEntry(keyResProportions(), props), prologAction], wlgResult)
17341723 }
17351724 }
17361725 }
17371726 }
17381727 }
17391728 }
17401729 }
17411730
17421731
17431732
17441733 @Callable(i)
17451734 func unstakeLand (landAssetIdIn) = {
17461735 let prologAction = prolog(i)
17471736 if ((size(i.payments) != 0))
17481737 then throw("No payments required")
17491738 else {
17501739 let addr = toString(i.caller)
17511740 let c = checkClaimConditions(addr, claimModeDuck, landAssetIdIn)
17521741 let landAssetId = c._2
17531742 let landsKey = keyStakedLandsByOwner(addr)
17541743 let terrainCounts = countTerrains(c._3[recTerrains])
17551744 let pieces = numPiecesBySize(c._3[recLandSize])
17561745 let props = updateProportions(terrainCounts, (pieces / SSIZE), -1)
17571746 let claimResult = claimAll(addr, landAssetId, pieces, claimModeDuck)
17581747 let lands = split_51C(valueOrElse(getString(landsKey), ""), "_")
17591748 let idx = indexOf(lands, landAssetId)
17601749 if (!(isDefined(idx)))
17611750 then throw(("Your staked lands don't contain " + landAssetId))
17621751 else {
17631752 let now = lastBlock.timestamp
17641753 let govReleaseTime = valueOrElse(getInteger(govContract, keyUserGwlReleaseTime(addr)), 0)
17651754 if ((govReleaseTime >= now))
17661755 then throw(("Your gWL are taking part in voting, cannot unstake until " + toString(govReleaseTime)))
17671756 else {
17681757 let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastArbTimeByUser(addr)), 0) + arbitrageDelay)
17691758 if ((arbReleaseTime > now))
17701759 then throw(("Your staked lands took part in arbitrage, cannot unstake until " + toString(arbReleaseTime)))
17711760 else {
17721761 let piecesKey = keyStakedPiecesByOwner(addr)
17731762 let stakedPieces = valueOrElse(getInteger(piecesKey), 0)
17741763 let newPieces = if ((pieces > stakedPieces))
17751764 then 0
17761765 else (stakedPieces - pieces)
17771766 let wlgResult = asInt(invoke(wlgContract, "onStakeUnstakeLand", [addr], nil))
17781767 $Tuple2([ScriptTransfer(i.caller, 1, fromBase58String(landAssetId)), DeleteEntry(keyStakedTimeByAssetId(landAssetId)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(LANDPREFIX, landAssetId, addr)), StringEntry(keyResProportions(), props), StringEntry(claimResult._2, makeString(claimResult._3, ":")), if ((size(lands) > 1))
17791768 then StringEntry(landsKey, makeString_11C(removeByIndex(lands, value(idx)), "_"))
17801769 else DeleteEntry(landsKey), IntegerEntry(piecesKey, newPieces), prologAction], wlgResult)
17811770 }
17821771 }
17831772 }
17841773 }
17851774 }
17861775
17871776
17881777
17891778 @Callable(i)
17901779 func stakeDuck () = {
17911780 let prologAction = prolog(i)
17921781 if ((size(i.payments) != 1))
17931782 then throw("Exactly one payment required")
17941783 else {
17951784 let pmt = value(i.payments[0])
17961785 let assetId = value(pmt.assetId)
17971786 let address = toString(i.caller)
17981787 if ((pmt.amount != 1))
17991788 then throw((("NFT " + DUCKPREFIX) + " token should be attached as payment"))
18001789 else {
18011790 let asset = value(assetInfo(assetId))
18021791 if (if ((asset.issuer != incubatorAddr))
18031792 then (asset.issuer != breederAddr)
18041793 else false)
18051794 then throw((("Unknown issuer of " + DUCKPREFIX) + " token"))
18061795 else if (!(contains(asset.name, DUCKPREFIX)))
18071796 then throw((("Only NFT " + DUCKPREFIX) + " tokens are accepted"))
18081797 else {
18091798 let assetIdStr = toBase58String(assetId)
18101799 let timeKey = keyStakedTimeByAssetId(assetIdStr)
18111800 if (isDefined(getInteger(timeKey)))
18121801 then throw((("NFT " + asset.name) + " is already staked"))
18131802 else if (isDefined(getString(keyStakedDuckByOwner(address))))
18141803 then throw(("You already staked one duck: " + asset.name))
18151804 else {
18161805 let locKey = keyDuckLocation(assetIdStr)
18171806 let location = getString(locKey)
18181807 let bpKey = keyBackpackByDuck(assetIdStr)
18191808 let backpack = getString(bpKey)
18201809 let keyHealth = keyDuckHealth(assetIdStr)
18211810 let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0))
18221811 let curHealth = valueOrElse(getInteger(keyHealth), maxHP)
18231812 ([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, toBase58String(assetId), address), lastBlock.timestamp), StringEntry(keyDuckIdToOwner(assetIdStr), address), StringEntry(keyStakedDuckByOwner(address), assetIdStr)] ++ (if (isDefined(location))
18241813 then nil
18251814 else ([StringEntry(locKey, DEFAULTLOCATION)] ++ (if (isDefined(backpack))
18261815 then nil
18271816 else (([StringEntry(bpKey, "0:0_0_0_0_0_0:0_0_0_0_0_0:")] :+ IntegerEntry(keyHealth, curHealth)) :+ prologAction)))))
18281817 }
18291818 }
18301819 }
18311820 }
18321821 }
18331822
18341823
18351824
18361825 @Callable(i)
18371826 func unstakeDuck (assetIdStr) = {
18381827 let prologAction = prolog(i)
18391828 if ((size(i.payments) != 0))
18401829 then throw("No payments required")
18411830 else {
18421831 let assetId = fromBase58String(assetIdStr)
18431832 let address = toString(i.caller)
18441833 let asset = value(assetInfo(assetId))
18451834 let timeKey = keyStakedTimeByAssetId(toBase58String(assetId))
18461835 if (!(isDefined(getInteger(timeKey))))
18471836 then throw((("NFT " + asset.name) + " is not staked"))
18481837 else if (!(isDefined(getString(keyStakedDuckByOwner(address)))))
18491838 then throw((("The duck " + asset.name) + " is not staked"))
18501839 else {
18511840 let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(toBase58String(assetId))), (("NFT " + asset.name) + " is orphaned"))
18521841 if ((owner != address))
18531842 then throw("Staked NFT is not yours")
18541843 else {
18551844 let keyHealth = keyDuckHealth(assetIdStr)
18561845 let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(assetIdStr)), 0))
18571846 let health = valueOrElse(getInteger(keyHealth), maxHP)
18581847 if ((maxHP > health))
18591848 then throw((("Please heal your duck to " + toString(maxHP)) + "hp before unstaking"))
18601849 else [ScriptTransfer(i.caller, 1, assetId), DeleteEntry(timeKey), DeleteEntry(keyHealth), DeleteEntry(keyDuckLocation(assetIdStr)), DeleteEntry(keyDuckIdToOwner(assetIdStr)), DeleteEntry(keyStakedTimeByTypeAssetIdAndOwner(DUCKPREFIX, assetIdStr, address)), DeleteEntry(keyStakedDuckByOwner(address)), prologAction]
18611850 }
18621851 }
18631852 }
18641853 }
18651854
18661855
18671856
18681857 @Callable(i)
18691858 func claimRes (amount,landAssetIdStr) = {
18701859 let prologAction = prolog(i)
18711860 if ((size(i.payments) != 0))
18721861 then throw("No payments required")
18731862 else {
18741863 let addr = toString(i.originCaller)
18751864 let result = claimResInternal(addr, amount, claimModeDuck, landAssetIdStr)
18761865 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
18771866 $Tuple2(((((result._1 ++ updateDuckStatsInternal(duckAssetId, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._3[bpIdxRes])
18781867 }
18791868 }
18801869
18811870
18821871
18831872 @Callable(i)
18841873 func claimResToWH (amount,landAssetIdStr) = {
18851874 let prologAction = prolog(i)
18861875 if ((size(i.payments) != 0))
18871876 then throw("No payments required")
18881877 else {
18891878 let addr = toString(i.originCaller)
18901879 let result = claimResInternal(addr, amount, claimModeWh, landAssetIdStr)
18911880 $Tuple2(((((result._1 ++ updateAccStatsInternal(addr, fraction(xpClaim, amount, MULT8))._1) :+ StringEntry(result._2, makeString(result._3, ":"))) :+ StringEntry(result._4, makeString(result._5, ":"))) :+ prologAction), result._5[whIdxRes])
18921881 }
18931882 }
18941883
18951884
18961885
18971886 @Callable(i)
18981887 func flight (message,sig) = {
18991888 let prologAction = prolog(i)
19001889 if ((size(i.payments) != 0))
19011890 then throw("No payments required")
19021891 else {
19031892 let userAddr = toString(i.caller)
19041893 let f = flightCommon(userAddr, message, sig)
19051894 let duckAssetId = f._2
19061895 let locKey = keyDuckLocation(duckAssetId)
19071896 let curLocation = valueOrElse(getString(locKey), DEFAULTLOCATION)
19081897 if ((f._4 == curLocation))
19091898 then throw("You can't fly to the same location")
19101899 else {
1911- let bpKey = keyBackpackByDuck(duckAssetId)
1912- let currentPack = getBackpack(bpKey)
1913- let newProd = subtractProducts(currentPack[bpIdxProd], f._5)
1900+ let eqKey = keyDuckEquipment(duckAssetId)
1901+ let currentEq = valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,")
1902+ let newEq = subtractEquipment(currentEq, f._5)
19141903 $Tuple2(([StringEntry(locKey, if ((f._1 > 0))
19151904 then f._4
1916- else curLocation), StringEntry(bpKey, makeString([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProd], ":")), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0))
1905+ else curLocation), StringEntry(eqKey, newEq), IntegerEntry(keyDuckHealth(duckAssetId), f._1), prologAction] ++ updateDuckStatsInternal(duckAssetId, if ((f._1 > 0))
19171906 then xpSuccessFlight
19181907 else xpFailFlight)._1), f._3)
19191908 }
19201909 }
19211910 }
19221911
19231912
19241913
19251914 @Callable(i)
19261915 func heal (quantityL1,quantityL2,quantityL3) = {
19271916 let prologAction = prolog(i)
19281917 if (if (if ((0 > quantityL1))
19291918 then true
19301919 else (0 > quantityL2))
19311920 then true
19321921 else (0 > quantityL3))
19331922 then throw("Quantity cannot be negative")
19341923 else {
19351924 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
19361925 let qts = [quantityL1, quantityL2, quantityL3]
19371926 let keyHealth = keyDuckHealth(duckAssetId)
19381927 let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0))
19391928 let oldHealth = valueOrElse(getInteger(keyHealth), maxHP)
19401929 if ((oldHealth >= maxHP))
19411930 then throw((("HP should be < " + toString(maxHP)) + " to heal"))
19421931 else {
19431932 let bpKey = keyBackpackByDuck(duckAssetId)
19441933 let currentPack = getBackpack(bpKey)
19451934 let prodList = if ((currentPack[bpIdxProd] == ""))
19461935 then nil
19471936 else split(currentPack[bpIdxProd], "_")
19481937 func iterateProd (acc,ignoredItem) = {
19491938 let n = acc._2
19501939 let x = if ((size(prodList) > n))
19511940 then parseIntValue(prodList[n])
19521941 else 0
19531942 if ((3 > n))
19541943 then {
19551944 let q = qts[n]
19561945 if ((q > x))
19571946 then throw(((("You have only " + toString(x)) + " of ") + prodTypes[n]))
19581947 else $Tuple3((acc._1 :+ toString((x - q))), (n + 1), (acc._3 + (medKitHp[n] * q)))
19591948 }
19601949 else $Tuple3((acc._1 :+ toString(x)), (n + 1), acc._3)
19611950 }
19621951
19631952 let result = {
19641953 let $l = productionMatrix
19651954 let $s = size($l)
19661955 let $acc0 = $Tuple3(nil, 0, 0)
19671956 func $f0_1 ($a,$i) = if (($i >= $s))
19681957 then $a
19691958 else iterateProd($a, $l[$i])
19701959
19711960 func $f0_2 ($a,$i) = if (($i >= $s))
19721961 then $a
19731962 else throw("List size exceeds 50")
19741963
19751964 $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)
19761965 }
19771966 let newHealth = min([maxHP, (oldHealth + result._3)])
19781967 $Tuple2(([IntegerEntry(keyHealth, newHealth), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], makeString(result._1, "_")], ":")), prologAction] ++ updateDuckStatsInternal(duckAssetId, (xpHeal * ((quantityL1 + quantityL2) + quantityL3)))._1), newHealth)
19791968 }
19801969 }
19811970 }
19821971
19831972
19841973
19851974 @Callable(i)
19861975 func healES () = {
19871976 let prologAction = prolog(i)
19881977 if ((size(i.payments) != 1))
19891978 then throw("Exactly one payment required")
19901979 else {
19911980 let pmt = value(i.payments[0])
19921981 if ((pmt.assetId != usdtAssetId))
19931982 then throw("Allowed USDT payment only!")
19941983 else {
19951984 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
19961985 let keyHealth = keyDuckHealth(duckAssetId)
19971986 let maxHP = maxHealth(valueOrElse(getInteger(keyDuckLevel(duckAssetId)), 0))
19981987 let oldHealth = valueOrElse(getInteger(keyHealth), maxHP)
19991988 if ((oldHealth > 0))
20001989 then throw("HP should be 0 to call Emergency Service")
20011990 else {
20021991 let bpKey = keyBackpackByDuck(duckAssetId)
20031992 let currentPack = getBackpack(bpKey)
20041993 let prodList = if ((currentPack[bpIdxProd] == ""))
20051994 then nil
20061995 else split(currentPack[bpIdxProd], "_")
20071996 let medKitAmount1 = if ((size(prodList) > 0))
20081997 then parseIntValue(prodList[0])
20091998 else 0
20101999 let medKitAmount2 = if ((size(prodList) > 1))
20112000 then parseIntValue(prodList[1])
20122001 else 0
20132002 let medKitAmount3 = if ((size(prodList) > 2))
20142003 then parseIntValue(prodList[2])
20152004 else 0
20162005 if (if (if ((medKitAmount1 > 0))
20172006 then true
20182007 else (medKitAmount2 > 0))
20192008 then true
20202009 else (medKitAmount3 > 0))
20212010 then throw("You have to use own Medical Kit")
20222011 else {
20232012 let existStr = getString(economyContract, keyEsWarehouse())
20242013 let existAmounts = if (isDefined(existStr))
20252014 then split(value(existStr), "_")
20262015 else nil
20272016 let existAmount = if ((size(existAmounts) > 0))
20282017 then parseIntValue(existAmounts[0])
20292018 else 0
20302019 if ((0 >= existAmount))
20312020 then throw("There are no Medical Kits L1 at Emergency Service storage")
20322021 else {
20332022 let newHealth = (oldHealth + medKitHp[0])
20342023 let newES = makeString([toString((existAmount - 1)), removeByIndex(existAmounts, 0)], "_")
20352024 let recipe = split(productionMatrix[0], "_")
20362025 let totalMat = getRecipeMaterials(recipe)
20372026 let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (10 * PRODUCTPKGSIZE))
20382027 if ((pmt.amount != sellPrice))
20392028 then throw(("Payment attached should be " + toString(sellPrice)))
20402029 else {
20412030 let result = asString(invoke(economyContract, "updateEsStorage", [newES], [AttachedPayment(usdtAssetId, sellPrice)]))
20422031 $Tuple2(([IntegerEntry(keyHealth, newHealth), prologAction] ++ updateDuckStatsInternal(duckAssetId, xpCallES)._1), result)
20432032 }
20442033 }
20452034 }
20462035 }
20472036 }
20482037 }
20492038 }
20502039
20512040
20522041
20532042 @Callable(i)
20542043 func updateBackpack (duckAssetId,newPack) = if ((i.caller != economyContract))
20552044 then throw("permission denied")
20562045 else $Tuple2([StringEntry(keyBackpackByDuck(duckAssetId), newPack)], newPack)
20572046
20582047
20592048
20602049 @Callable(i)
20612050 func buySLand () = {
20622051 let prologAction = prolog(i)
20632052 if ((size(i.payments) != 1))
20642053 then throw("Exactly one payment required")
20652054 else {
20662055 let pmt = value(i.payments[0])
20672056 if ((pmt.assetId != usdtAssetId))
20682057 then throw("Allowed USDT payment only!")
20692058 else if ((pmt.amount != EXPUSDT))
20702059 then throw(("Payment attached should be " + toString(EXPUSDT)))
20712060 else {
20722061 let result = expeditionInternal(i.caller, i.transactionId)
20732062 $Tuple2((((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) ++ updateAccStatsInternal(toString(i.caller), xpNewSLand)._1) :+ prologAction), result._2._1)
20742063 }
20752064 }
20762065 }
20772066
20782067
20792068
20802069 @Callable(i)
20812070 func expedition (message,sig) = {
20822071 let prologAction = prolog(i)
20832072 if ((size(i.payments) != 0))
20842073 then throw("No payments required")
20852074 else {
20862075 let result = expeditionCommon(i.caller, i.transactionId, message, sig)
20872076 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
20882077 $Tuple2(((result._1 ++ updateDuckStatsInternal(duckAssetId, xpNewSLand)._1) :+ prologAction), $Tuple2(result._2, result._3))
20892078 }
20902079 }
20912080
20922081
20932082
20942083 @Callable(i)
20952084 func upgradeInfra (landAssetId) = {
20962085 let prologAction = prolog(i)
20972086 if ((size(i.payments) != 0))
20982087 then throw("No payments required")
20992088 else {
21002089 let result = upInfraCommon(true, i.caller, 0, landAssetId)
21012090 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(toString(i.caller))), "You don't have a duck staked")
21022091 $Tuple2(((result._1 :+ prologAction) ++ updateDuckStatsInternal(duckAssetId, fraction(xpUpgradeInfra, result._3, MULT8))._1), result._2)
21032092 }
21042093 }
21052094
21062095
21072096
21082097 @Callable(i)
21092098 func upgradeInfraUsdt (landAssetId) = if ((i.caller != this))
21102099 then throw("Permission denied")
21112100 else {
21122101 let prologAction = prolog(i)
21132102 if ((size(i.payments) != 1))
21142103 then throw("Exactly one payment required")
21152104 else {
21162105 let pmt = value(i.payments[0])
21172106 if ((pmt.assetId != usdtAssetId))
21182107 then throw("Allowed USDT payment only!")
21192108 else {
21202109 let result = upInfraCommon(false, i.caller, pmt.amount, landAssetId)
21212110 $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2)
21222111 }
21232112 }
21242113 }
21252114
21262115
21272116
21282117 @Callable(i)
21292118 func activateArtifact (artName,landAssetIdOpt) = {
21302119 let prologAction = prolog(i)
21312120 if ((size(i.payments) != 0))
21322121 then throw("No payments required")
21332122 else {
21342123 let addr = toString(i.caller)
21352124 let result = match artName {
21362125 case _ =>
21372126 if (("PRESALE" == $match0))
21382127 then activatePresaleArt(addr, landAssetIdOpt)
21392128 else if (("ONBOARD" == $match0))
21402129 then activateOnboardArt(addr)
21412130 else throw("Unknown artifact")
21422131 }
21432132 (result :+ prologAction)
21442133 }
21452134 }
21462135
21472136
21482137
21492138 @Callable(i)
21502139 func mergeLands (landAssetIds) = {
21512140 let prologAction = prolog(i)
21522141 if ((size(i.payments) != 0))
21532142 then throw("No payments required")
21542143 else {
21552144 let result = mergeCommon(true, toString(i.caller), 0, landAssetIds, i.transactionId)
21562145 $Tuple2(((result._1 :+ prologAction) ++ updateAccStatsInternal(toString(i.caller), xpMerge)._1), result._2)
21572146 }
21582147 }
21592148
21602149
21612150
21622151 @Callable(i)
21632152 func mergeLandsUsdt (landAssetIds) = {
21642153 let prologAction = prolog(i)
21652154 if ((size(i.payments) != 1))
21662155 then throw("Exactly one payment required")
21672156 else {
21682157 let pmt = value(i.payments[0])
21692158 if ((pmt.assetId != usdtAssetId))
21702159 then throw("Allowed USDT payment only!")
21712160 else {
21722161 let result = mergeCommon(false, toString(i.caller), pmt.amount, landAssetIds, i.transactionId)
21732162 $Tuple2(((result._1 :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), result._2)
21742163 }
21752164 }
21762165 }
21772166
21782167
21792168
21802169 @Callable(i)
21812170 func cargoExchange (cargoListStr,landAssetId) = {
21822171 let prologAction = prolog(i)
21832172 if ((size(i.payments) != 0))
21842173 then throw("No payments required")
21852174 else {
21862175 let cargoParts = split_4C(cargoListStr, ":")
21872176 let addr = toString(i.originCaller)
21882177 let asset = value(assetInfo(fromBase58String(landAssetId)))
21892178 let timeKey = keyStakedTimeByAssetId(landAssetId)
21902179 if (!(isDefined(getInteger(timeKey))))
21912180 then throw((asset.name + " is not staked"))
21922181 else {
21932182 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(landAssetId)), (("NFT " + asset.name) + " is orphaned"))
21942183 if ((owner != addr))
21952184 then throw((LANDPREFIX + " is not yours"))
21962185 else {
21972186 let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE)
21982187 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
21992188 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
22002189 let curLocation = valueOrElse(getString(keyDuckLocation(duckAssetId)), DEFAULTLOCATION)
22012190 let loc = split(value(curLocation), "_")
22022191 if ((loc[locIdxType] != "L"))
22032192 then throw((("Duck location type is " + loc[locIdxType]) + ", but should be L"))
22042193 else if ((loc[locIdxId] != landAssetId))
22052194 then throw(("Duck should be on the land " + landAssetId))
22062195 else {
22072196 let whKey = keyWarehouseByLand(landAssetId)
22082197 let currentWh = getWarehouse(whKey, landIndex, infraLevel)
22092198 let bpKey = keyBackpackByDuck(duckAssetId)
22102199 let currentPack = getBackpack(bpKey)
22112200 let result = moveStuff(cargoParts, currentWh, currentPack)
22122201 let loft = split(currentWh[whIdxLOFT], "_")
22132202 let loftO = (parseIntValue(loft[volOccupied]) + result._7)
22142203 let loftF = (parseIntValue(loft[volFree]) - result._7)
22152204 [StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], result._4, result._5, result._6], ":")), StringEntry(whKey, makeString_2C([currentWh[whIdxLevels], result._1, result._2, result._3, makeString([loft[volLocked], toString(loftO), toString(loftF), loft[volTotal]], "_")], ":")), prologAction]
22162205 }
22172206 }
22182207 }
22192208 }
22202209 }
22212210
22222211
22232212
22242213 @Callable(i)
22252214 func saveWarehouse (whStr,landAssetId) = if ((i.caller != economyContract))
22262215 then throw("Access denied")
22272216 else {
22282217 let whKey = keyWarehouseByLand(landAssetId)
22292218 let wh = split_4C(whStr, ":")
22302219 if ((size(wh) != 5))
22312220 then throw("warehouse string should contain 4 ':' separators")
22322221 else {
22332222 let loftL = split(wh[whIdxLOFT], "_")[volLocked]
22342223 let loftO = getWarehouseOccupiedVol(wh)
22352224 let loftT = getWarehouseTotalVolume(wh[whIdxLevels])
22362225 let loftF = ((loftT - parseIntValue(loftL)) - loftO)
22372226 let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([loftL, toString(loftO), toString(loftF), toString(loftT)], "_")], ":")
22382227 $Tuple2([StringEntry(whKey, newWhStr)], newWhStr)
22392228 }
22402229 }
22412230
22422231
22432232
22442233 @Callable(i)
22452234 func fixWarehouseFormat (landAssetId) = if ((i.caller != restContract))
22462235 then throw("Access denied")
22472236 else {
22482237 let whKey = keyWarehouseByLand(landAssetId)
22492238 let asset = value(assetInfo(fromBase58String(landAssetId)))
22502239 let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE)
22512240 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
22522241 let wh = getWarehouse(whKey, landIndex, infraLevel)
22532242 let loftL = asInt(invoke(economyContract, "recalcLockedVolumeREADONLY", [landAssetId, wh], nil))
22542243 let loftO = getWarehouseOccupiedVol(wh)
22552244 let loftT = getWarehouseTotalVolume(wh[whIdxLevels])
22562245 let loftF = ((loftT - loftL) - loftO)
22572246 let newWhStr = makeString_2C([wh[whIdxLevels], wh[whIdxRes], wh[whIdxMat], wh[whIdxProd], makeString([toString(loftL), toString(loftO), toString(loftF), toString(loftT)], "_")], ":")
22582247 $Tuple2([StringEntry(whKey, newWhStr)], newWhStr)
22592248 }
22602249
22612250
22622251
22632252 @Callable(i)
22642253 func fixStakedPieces (address) = if ((i.caller != restContract))
22652254 then throw("Access denied")
22662255 else {
22672256 let stakedPieces = if ((address == ""))
22682257 then 0
22692258 else {
22702259 let landsStr = getString(stakingContract, keyStakedLandsByOwner(address))
22712260 let lands = if (isDefined(landsStr))
22722261 then split_51C(value(landsStr), "_")
22732262 else nil
22742263 func oneLand (acc,landAssetId) = {
22752264 let asset = value(assetInfo(fromBase58String(landAssetId)))
22762265 let landSize = split(asset.description, "_")[recLandSize]
22772266 (acc + numPiecesBySize(landSize))
22782267 }
22792268
22802269 let $l = lands
22812270 let $s = size($l)
22822271 let $acc0 = 0
22832272 func $f0_1 ($a,$i) = if (($i >= $s))
22842273 then $a
22852274 else oneLand($a, $l[$i])
22862275
22872276 func $f0_2 ($a,$i) = if (($i >= $s))
22882277 then $a
22892278 else throw("List size exceeds 100")
22902279
22912280 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
22922281 }
22932282 $Tuple2([IntegerEntry(keyStakedPiecesByOwner(address), stakedPieces)], stakedPieces)
22942283 }
22952284
22962285
22972286
22982287 @Callable(i)
22992288 func setCustomName (assetId,customName,type) = {
23002289 let prologAction = prolog(i)
23012290 if ((size(i.payments) != 1))
23022291 then throw("Exactly one payment required")
23032292 else {
23042293 let pmt = value(i.payments[0])
23052294 if ((pmt.assetId != usdtAssetId))
23062295 then throw("Allowed USDT payment only!")
23072296 else if ((pmt.amount != RENAMINGCOST))
23082297 then throw(("Payment should be " + toString(RENAMINGCOST)))
23092298 else if (contains(customName, "__"))
23102299 then throw(("Name should not contain '__': " + customName))
23112300 else if ((size(customName) > MAXNAMELEN))
23122301 then throw(("Name too long, maxLength=" + toString(MAXNAMELEN)))
23132302 else {
23142303 let addr = toString(i.originCaller)
23152304 let actions = match type {
23162305 case _ =>
23172306 if (("ACCOUNT" == $match0))
23182307 then {
23192308 let reverseKey = keyCustomNameToAddress(customName)
23202309 let nameOwner = getString(reverseKey)
23212310 if (isDefined(nameOwner))
23222311 then throw(("Name already registered: " + customName))
23232312 else {
23242313 let addrToNameKey = keyAddressToCustomName(addr)
23252314 let oldName = getString(addrToNameKey)
23262315 let freeOld = if (isDefined(oldName))
23272316 then [DeleteEntry(keyCustomNameToAddress(value(oldName)))]
23282317 else nil
23292318 (((freeOld :+ StringEntry(addrToNameKey, customName)) :+ StringEntry(reverseKey, addr)) ++ updateAccStatsInternal(addr, xpCustomName)._1)
23302319 }
23312320 }
23322321 else if (("LAND" == $match0))
23332322 then {
23342323 let asset = value(assetInfo(fromBase58String(assetId)))
23352324 let timeKey = keyStakedTimeByAssetId(assetId)
23362325 if (!(isDefined(getInteger(timeKey))))
23372326 then throw((asset.name + " is not staked"))
23382327 else {
23392328 let owner = valueOrErrorMessage(getString(keyLandAssetIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned"))
23402329 if ((owner != addr))
23412330 then throw((LANDPREFIX + " is not yours"))
23422331 else {
23432332 let reverseKey = keyLandCustomNameToAssetId(customName)
23442333 let nameOwner = getString(reverseKey)
23452334 if (isDefined(nameOwner))
23462335 then throw(("Name already registered: " + customName))
23472336 else {
23482337 let assetToNameKey = keyLandAssetIdToCustomName(assetId)
23492338 let oldName = getString(assetToNameKey)
23502339 let freeOld = if (isDefined(oldName))
23512340 then [DeleteEntry(keyLandCustomNameToAssetId(value(oldName)))]
23522341 else nil
23532342 (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateAccStatsInternal(addr, xpCustomName)._1)
23542343 }
23552344 }
23562345 }
23572346 }
23582347 else if (("DUCK" == $match0))
23592348 then {
23602349 let asset = value(assetInfo(fromBase58String(assetId)))
23612350 let timeKey = keyStakedTimeByAssetId(assetId)
23622351 if (if (!(isDefined(getInteger(timeKey))))
23632352 then true
23642353 else !(isDefined(getString(keyStakedDuckByOwner(addr)))))
23652354 then throw((asset.name + " is not staked"))
23662355 else {
23672356 let owner = valueOrErrorMessage(getString(keyDuckIdToOwner(assetId)), (("NFT " + asset.name) + " is orphaned"))
23682357 if ((owner != addr))
23692358 then throw((DUCKPREFIX + " is not yours"))
23702359 else {
23712360 let reverseKey = keyDuckCustomNameToAssetId(customName)
23722361 let nameOwner = getString(reverseKey)
23732362 if (isDefined(nameOwner))
23742363 then throw(("Name already registered: " + customName))
23752364 else {
23762365 let assetToNameKey = keyDuckAssetIdToCustomName(assetId)
23772366 let oldName = getString(assetToNameKey)
23782367 let freeOld = if (isDefined(oldName))
23792368 then [DeleteEntry(keyDuckCustomNameToAssetId(value(oldName)))]
23802369 else nil
23812370 (((freeOld :+ StringEntry(assetToNameKey, customName)) :+ StringEntry(reverseKey, assetId)) ++ updateDuckStatsInternal(assetId, xpCustomName)._1)
23822371 }
23832372 }
23842373 }
23852374 }
23862375 else throw("Unknown entity type")
23872376 }
23882377 $Tuple2(((actions :+ ScriptTransfer(economyContract, pmt.amount, usdtAssetId)) :+ prologAction), 0)
23892378 }
23902379 }
23912380 }
23922381
23932382
23942383
23952384 @Callable(i)
23962385 func setReferrals (oldPlayer,newPlayer) = if ((i.callerPublicKey != pub))
23972386 then throw("Permission denied")
23982387 else {
23992388 let prologAction = prolog(i)
24002389 if ((size(i.payments) != 0))
24012390 then throw("No payments required")
24022391 else if (!(isDefined(addressFromString(oldPlayer))))
24032392 then throw(("Invalid address: " + oldPlayer))
24042393 else if (!(isDefined(addressFromString(newPlayer))))
24052394 then throw(("Invalid address: " + newPlayer))
24062395 else {
24072396 let oldsKey = keyOldies()
24082397 let olds = getString(oldsKey)
24092398 let oldies = if (isDefined(olds))
24102399 then split_4C(value(olds), "_")
24112400 else nil
24122401 if (containsElement(oldies, newPlayer))
24132402 then throw((newPlayer + " is not newbie (already has referrals)"))
24142403 else {
24152404 let refByKey = keyAddressRefBy(newPlayer)
24162405 let refBy = getString(refByKey)
24172406 if (if (isDefined(refBy))
24182407 then isDefined(addressFromString(value(refBy)))
24192408 else false)
24202409 then throw(((newPlayer + " already has refBy: ") + value(refBy)))
24212410 else {
24222411 let refsKey = keyAddressReferrals(oldPlayer)
24232412 let refs = getString(refsKey)
24242413 let refsArray = if (isDefined(refs))
24252414 then split_4C(value(refs), "_")
24262415 else nil
24272416 if (containsElement(refsArray, newPlayer))
24282417 then throw((((oldPlayer + " already contains ") + newPlayer) + " within referrals"))
24292418 else {
24302419 let newRefs = makeString_2C((refsArray :+ newPlayer), "_")
24312420 let newOlds = if (containsElement(oldies, oldPlayer))
24322421 then value(olds)
24332422 else makeString_2C((oldies :+ oldPlayer), "_")
24342423 $Tuple2([StringEntry(refByKey, oldPlayer), StringEntry(refsKey, newRefs), StringEntry(oldsKey, newOlds), prologAction], 0)
24352424 }
24362425 }
24372426 }
24382427 }
24392428 }
24402429
24412430
24422431
24432432 @Callable(i)
24442433 func distributePoints (strength,accuracy,intellect,endurance,dexterity) = {
24452434 let prologAction = prolog(i)
24462435 if ((size(i.payments) != 0))
24472436 then throw("No payments required")
24482437 else {
24492438 let addr = toString(i.originCaller)
24502439 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
24512440 let freeKeyAcc = keyUserFreePoints(addr)
24522441 let freePointsAcc = valueOrElse(getInteger(stakingContract, freeKeyAcc), 0)
24532442 let freeKeyDuck = keyDuckFreePoints(duckAssetId)
24542443 let freePointsDuck = valueOrElse(getInteger(stakingContract, freeKeyDuck), 0)
24552444 let sumFree = (freePointsAcc + freePointsDuck)
24562445 let sumToDistribute = ((((strength + accuracy) + intellect) + endurance) + dexterity)
24572446 if ((sumToDistribute > sumFree))
24582447 then throw((("There are only " + toString(sumFree)) + " free points to distribute"))
24592448 else {
24602449 let charsKey = keyDuckChars(duckAssetId)
24612450 let chars = split(valueOrElse(getString(stakingContract, charsKey), "0_0_0_0_0"), "_")
24622451 let newAcc = (freePointsAcc - sumToDistribute)
24632452 $Tuple2([IntegerEntry(freeKeyAcc, if ((0 > newAcc))
24642453 then 0
24652454 else newAcc), IntegerEntry(freeKeyDuck, if ((0 > newAcc))
24662455 then (freePointsDuck + newAcc)
24672456 else freePointsDuck), StringEntry(charsKey, makeString([toString((parseIntValue(chars[charStrength]) + strength)), toString((parseIntValue(chars[charAccuracy]) + accuracy)), toString((parseIntValue(chars[charIntellect]) + intellect)), toString((parseIntValue(chars[charEndurance]) + endurance)), toString((parseIntValue(chars[charDexterity]) + dexterity))], "_")), prologAction], 0)
24682457 }
24692458 }
24702459 }
24712460
24722461
24732462
24742463 @Callable(i)
24752464 func splitByGlobalWeightsREADONLY (amount) = $Tuple2(nil, getNeededMaterials(amount))
24762465
24772466
24782467
24792468 @Callable(i)
24802469 func splitByGlobalAndLocalWeightsREADONLY (matAmount,resAmount,terrains) = {
24812470 let terrainCounts = countTerrains(terrains)
24822471 $Tuple2(nil, $Tuple2(getNeededMaterials(matAmount), distributeByWeights(resAmount, terrainCounts)))
24832472 }
24842473
24852474
24862475
24872476 @Callable(i)
24882477 func getBackpackREADONLY (duckAssetId) = $Tuple2(nil, makeString(getBackpack(keyBackpackByDuck(duckAssetId)), ":"))
24892478
24902479
24912480
24922481 @Callable(i)
24932482 func getWarehouseREADONLY (landAssetId) = {
24942483 let asset = value(assetInfo(fromBase58String(landAssetId)))
24952484 let landIndex = (numPiecesBySize(split(asset.description, "_")[recLandSize]) / SSIZE)
24962485 let infraLevel = valueOrElse(getInteger(keyInfraLevelByAssetId(landAssetId)), 0)
24972486 $Tuple2(nil, makeString_2C(getWarehouse(keyWarehouseByLand(landAssetId), landIndex, infraLevel), ":"))
24982487 }
24992488
25002489
25012490
25022491 @Callable(i)
25032492 func saveLastTx () = if (if ((i.caller != wlgContract))
25042493 then (i.caller != economyContract)
25052494 else false)
25062495 then throw("Access denied")
25072496 else $Tuple2([prolog(i)], 42)
25082497
25092498
25102499
25112500 @Callable(i)
25122501 func updateDuckStats (duckAssetId,deltaXP) = if ((i.caller != economyContract))
25132502 then throw("Access denied")
25142503 else updateDuckStatsInternal(duckAssetId, deltaXP)
25152504
25162505
25172506
25182507 @Callable(i)
25192508 func updateAccStats (addr,deltaXP) = if ((i.caller != economyContract))
25202509 then throw("Access denied")
25212510 else updateAccStatsInternal(addr, deltaXP)
25222511
25232512
25242513
25252514 @Callable(i)
25262515 func equipDuck (equipment) = {
25272516 let prologAction = prolog(i)
25282517 if ((size(i.payments) != 0))
25292518 then throw("No payments required")
25302519 else {
25312520 let addr = toString(i.originCaller)
25322521 let duckAssetId = valueOrErrorMessage(getString(keyStakedDuckByOwner(addr)), "You don't have a duck staked")
25332522 let eqKey = keyDuckEquipment(duckAssetId)
25342523 let currentSegs = split(valueOrElse(getString(eqKey), ",;,_,;,_,;,_,;,_,;,_,;,"), "_")
25352524 let bpKey = keyBackpackByDuck(duckAssetId)
25362525 let currentPack = getBackpack(bpKey)
25372526 let newEq = split(equipment, "_")
25382527 if ((size(newEq) != NUMSEGMENTS))
25392528 then throw("Wrong equipment string")
25402529 else {
25412530 let reqs = getDuckStats(this, duckAssetId)
25422531 let tempProdB = dressB(currentSegs, prodStrToBytes(currentPack[bpIdxProd]), true, reqs)
25432532 let newProdB = dressB(newEq, tempProdB, false, reqs)
25442533 let newProdStr = bytesToProdStr(newProdB)
25452534 $Tuple2([StringEntry(eqKey, equipment), StringEntry(bpKey, makeString_2C([currentPack[bpIdxLevel], currentPack[bpIdxRes], currentPack[bpIdxMat], newProdStr], ":")), prologAction], 0)
25462535 }
25472536 }
25482537 }
25492538
25502539

github/deemru/w8io/169f3d6 
217.81 ms