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