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