tx · GkUWfzh6oTPA3YEkuSHz5peHmCN3DdZA7NLiZzXmzAzR 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c: -0.01400000 Waves 2022.02.04 17:33 [1909000] smart account 3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c > SELF 0.00000000 Waves
{ "type": 13, "id": "GkUWfzh6oTPA3YEkuSHz5peHmCN3DdZA7NLiZzXmzAzR", "fee": 1400000, "feeAssetId": null, "timestamp": 1643985232239, "version": 2, "chainId": 84, "sender": "3MucnifgqjCVTQDsVvyBbDfUYL4NzUJme6c", "senderPublicKey": "5VeehaC8J2hY5k7GyMevtfCSC4on8kxpPvqqQqNe5erh", "proofs": [ "2swzkbLVkWZycNCkaee4FJVFo7zZS1AQQwyDRDWgqeiUCDZvsSv52JvPQZNX7CbSuimUSY6uE7ZFcwjuqixT46zr" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYIAQEBAQEAAABGAAAAAAZwYXJhbXMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNOMmpaYUgxakxaNXVoS2tOaWs2Z2VBNTdIek1Hdzk4aWdSAAAAAA1rZXlJbml0VjFEb25lAgAAAAxpbml0X3YxX2RvbmUAAAAACmtleVRva2VuSWQCAAAAB3Rva2VuSWQAAAAAG2tleUluaXRpYWxDaGFyQ3JlYXRpb25TdGF0cwIAAAAYaW5pdGlhbENoYXJDcmVhdGlvblN0YXRzAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAAEGtleUl0ZW1zSWRzQ291bnQCAAAADWl0ZW1zSWRzQ291bnQAAAAAEWtleVNwZWxsc0lkc0NvdW50AgAAAA5zcGVsbHNJZHNDb3VudAAAAAAPa2V5TW9ic0lkc0NvdW50AgAAAAxtb2JzSWRzQ291bnQAAAAAC2tleUl0ZW1UeXBlAgAAAAhpdGVtVHlwZQAAAAAQa2V5SXRlbVN0YXQxVHlwZQIAAAANaXRlbVN0YXQxVHlwZQAAAAAQa2V5SXRlbVN0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lclJhbmsFAAAACWNoYXJJZFN0cgUAAAAFdGVycmEJAARMAAAAAgUAAAAJY2hhcklzc3VlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAGY2hhcklkBQAAAANuaWwFAAAACG1vYkVudHJ5AAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmiHb/u", "height": 1909000, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F59mCSN2X2hQBGDeGNCtK1W8cHebNKS47vW5WTy5eV2R Next: none Diff:
Old | New | Differences | |
---|---|---|---|
132 | 132 | func with (str1,str2) = ((str1 + separator) + str2) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func | |
135 | + | func generateRandHash (nonce,txId) = sha256_16Kb(((value(value(blockInfoByHeight(height)).vrf) + txId) + toBytes(nonce))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func randInt (min,max,randHash,nonce) = ((toInt(randHash, nonce) % ((max - min) + 1)) + min) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func generateItem (type,itemId, | |
141 | + | func generateItem (type,itemId,txId) = { | |
142 | 142 | let statsRange = [[1, 5], [5, 25], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [5, 15], [5, 15], [5, 15], [1, 5], [5, 10]] | |
143 | 143 | let statsAvailable = if ((type == 0)) | |
144 | 144 | then [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14] | |
148 | 148 | then [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
149 | 149 | else throw("Unknown item type") | |
150 | 150 | let statsAmount = size(statsAvailable) | |
151 | - | let s1 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 1))] | |
152 | - | let s2 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 2))] | |
153 | - | let s3 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 3))] | |
154 | - | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, (currentNonce + 4)) | |
155 | - | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, (currentNonce + 5)) | |
156 | - | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, (currentNonce + 6)) | |
151 | + | let randHash = generateRandHash(1, txId) | |
152 | + | let s1 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 0)] | |
153 | + | let s2 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 1)] | |
154 | + | let s3 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 2)] | |
155 | + | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, 3) | |
156 | + | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, 4) | |
157 | + | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, 5) | |
157 | 158 | let itemIdStr = toString(itemId) | |
158 | 159 | [IntegerEntry(with(keyItemType, itemIdStr), type), IntegerEntry(with(keyItemStat1Type, itemIdStr), s1), IntegerEntry(with(keyItemStat2Type, itemIdStr), s2), IntegerEntry(with(keyItemStat3Type, itemIdStr), s3), IntegerEntry(with(keyItemStat1Value, itemIdStr), v1), IntegerEntry(with(keyItemStat2Value, itemIdStr), v2), IntegerEntry(with(keyItemStat3Value, itemIdStr), v3)] | |
159 | 160 | } | |
160 | 161 | ||
161 | 162 | ||
162 | - | func generateSpell (spellId, | |
163 | + | func generateSpell (spellId,txId) = { | |
163 | 164 | let statsRange = [[1, 5], [5, 25], [100, 200], [100, 150], [1, 5], [1, 5], [1, 5], [1, 5], [5, 10]] | |
164 | - | let dmgType = randInt(0, 3, randHash, (currentNonce + 1)) | |
165 | - | let dmgMinRange = randInt(200, 250, randHash, (currentNonce + 2)) | |
166 | - | let dmgMaxRange = randInt(251, 400, randHash, (currentNonce + 3)) | |
167 | - | let s1 = randInt(0, 8, randHash, (currentNonce + 4)) | |
168 | - | let s2 = randInt(0, 8, randHash, (currentNonce + 5)) | |
169 | - | let s3 = randInt(0, 8, randHash, (currentNonce + 6)) | |
170 | - | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, (currentNonce + 7)) | |
171 | - | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, (currentNonce + 8)) | |
172 | - | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, (currentNonce + 9)) | |
165 | + | let randHash = generateRandHash(2, txId) | |
166 | + | let dmgType = randInt(0, 3, randHash, 0) | |
167 | + | let dmgMinRange = randInt(200, 250, randHash, 1) | |
168 | + | let dmgMaxRange = randInt(251, 400, randHash, 2) | |
169 | + | let s1 = randInt(0, 8, randHash, 3) | |
170 | + | let s2 = randInt(0, 8, randHash, 4) | |
171 | + | let s3 = randInt(0, 8, randHash, 5) | |
172 | + | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, 6) | |
173 | + | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, 7) | |
174 | + | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, 8) | |
173 | 175 | let spellIdStr = toString(spellId) | |
174 | 176 | [IntegerEntry(with(keySpellDmgType, spellIdStr), dmgType), IntegerEntry(with(keySpellMinDmg, spellIdStr), dmgMinRange), IntegerEntry(with(keySpellMaxDmg, spellIdStr), dmgMaxRange), IntegerEntry(with(keySpellStat1Type, spellIdStr), s1), IntegerEntry(with(keySpellStat2Type, spellIdStr), s2), IntegerEntry(with(keySpellStat3Type, spellIdStr), s3), IntegerEntry(with(keySpellStat1Value, spellIdStr), v1), IntegerEntry(with(keySpellStat2Value, spellIdStr), v2), IntegerEntry(with(keySpellStat3Value, spellIdStr), v3)] | |
175 | 177 | } | |
176 | 178 | ||
177 | 179 | ||
178 | - | func generateMobEntry ( | |
179 | - | let currentItemId = 0 | |
180 | - | let currentSpellId = 0 | |
181 | - | let currentMobId = 0 | |
180 | + | func generateMobEntry (txId) = { | |
181 | + | let currentItemId = valueOrElse(getInteger(this, keyItemsIdsCount), 0) | |
182 | + | let currentSpellId = valueOrElse(getInteger(this, keySpellsIdsCount), 0) | |
183 | + | let currentMobId = valueOrElse(getInteger(this, keyMobsIdsCount), 0) | |
182 | 184 | let currentMobIdStr = toString(currentMobId) | |
183 | - | let mobHealth = randInt(1000, 1500, randHash, 25) | |
184 | - | [IntegerEntry(with(keyMobMaxHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobStaffId, currentMobIdStr), currentItemId), IntegerEntry(with(keyMobRobeId, currentMobIdStr), (currentItemId + 1)), IntegerEntry(with(keyMobRingId, currentMobIdStr), (currentItemId + 2)), IntegerEntry(with(keyMobSpell1Id, currentMobIdStr), currentSpellId), IntegerEntry(with(keyMobSpell2Id, currentMobIdStr), (currentSpellId + 1)), IntegerEntry(with(keyMobSpell3Id, currentMobIdStr), (currentSpellId + 2)), IntegerEntry(keyItemsIdsCount, (currentItemId + 3)), IntegerEntry(keySpellsIdsCount, (currentSpellId + 3)), IntegerEntry(keyMobsIdsCount, (currentMobId + 1))] | |
185 | + | let randHash = generateRandHash(3, txId) | |
186 | + | let staff = generateItem(0, currentItemId, txId) | |
187 | + | let robe = generateItem(1, (currentItemId + 1), txId) | |
188 | + | let ring = generateItem(2, (currentItemId + 2), txId) | |
189 | + | let spell1 = generateSpell(currentSpellId, txId) | |
190 | + | let spell2 = generateSpell((currentSpellId + 1), txId) | |
191 | + | let spell3 = generateSpell((currentSpellId + 2), txId) | |
192 | + | let mobHealth = randInt(1000, 1500, randHash, 0) | |
193 | + | let mobExp = randInt(100, 200, randHash, 1) | |
194 | + | let mobGold = randInt(500, 2000, randHash, 2) | |
195 | + | let mobLootChance = randInt(5, 20, randHash, 3) | |
196 | + | (((((([IntegerEntry(with(keyMobCurrentHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobMaxHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobExpPoints, currentMobIdStr), mobExp), IntegerEntry(with(keyMobGold, currentMobIdStr), mobGold), IntegerEntry(with(keyMobLootChance, currentMobIdStr), mobLootChance), IntegerEntry(with(keyMobStaffId, currentMobIdStr), currentItemId), IntegerEntry(with(keyMobRobeId, currentMobIdStr), (currentItemId + 1)), IntegerEntry(with(keyMobRingId, currentMobIdStr), (currentItemId + 2)), IntegerEntry(with(keyMobSpell1Id, currentMobIdStr), currentSpellId), IntegerEntry(with(keyMobSpell2Id, currentMobIdStr), (currentSpellId + 1)), IntegerEntry(with(keyMobSpell3Id, currentMobIdStr), (currentSpellId + 2)), IntegerEntry(keyItemsIdsCount, (currentItemId + 3)), IntegerEntry(keySpellsIdsCount, (currentSpellId + 3)), IntegerEntry(keyMobsIdsCount, (currentMobId + 1))] ++ staff) ++ robe) ++ ring) ++ spell1) ++ spell2) ++ spell3) | |
185 | 197 | } | |
186 | 198 | ||
187 | 199 | ||
235 | 247 | let charIssue = Issue(name, "", 1, 0, false, unit, 0) | |
236 | 248 | let charId = calculateAssetId(charIssue) | |
237 | 249 | let charIdStr = toBase58String(charId) | |
238 | - | let randHash = | |
250 | + | let randHash = generateRandHash(4, i.transactionId) | |
239 | 251 | let minHealth = parseIntValue(initialStats[3]) | |
240 | 252 | let maxHealth = parseIntValue(initialStats[4]) | |
241 | 253 | let randHealth = (parseIntValue(initialStats[2]) + randInt(minHealth, maxHealth, randHash, 0)) | |
256 | 268 | let randAqua = randInt(minAqua, aqua, randHash, 6) | |
257 | 269 | let minTerra = parseIntValue(initialStats[17]) | |
258 | 270 | let randTerra = randInt(minTerra, terra, randHash, 7) | |
259 | - | let mobEntry = generateMobEntry( | |
271 | + | let mobEntry = generateMobEntry(i.transactionId) | |
260 | 272 | ([StringEntry(with(keyName, charIdStr), name), IntegerEntry(with(keySex, charIdStr), sex), IntegerEntry(with(keyRank, charIdStr), 1), IntegerEntry(with(keyHealthCurrent, charIdStr), randHealth), IntegerEntry(with(keyHealthMax, charIdStr), randHealth), IntegerEntry(with(keyMinHealthPerRank, charIdStr), minHealth), IntegerEntry(with(keyMaxHealthPerRank, charIdStr), minHealth), IntegerEntry(with(keyHealthRegen, charIdStr), randHealthRegen), IntegerEntry(with(keyMinHealthRegenPerRank, charIdStr), minHealthRegen), IntegerEntry(with(keyMaxHealthRegenPerRank, charIdStr), maxHealthRegen), IntegerEntry(with(keyManaCurrent, charIdStr), randMana), IntegerEntry(with(keyManaMax, charIdStr), randMana), IntegerEntry(with(keyMinManaPerRank, charIdStr), minMana), IntegerEntry(with(keyMaxManaPerRank, charIdStr), maxMana), IntegerEntry(with(keyManaRegen, charIdStr), randManaRegen), IntegerEntry(with(keyMinManaRegenPerRank, charIdStr), minManaRegen), IntegerEntry(with(keyMaxManaRegenPerRank, charIdStr), maxManaRegen), IntegerEntry(with(keyPyro, charIdStr), randPyro), IntegerEntry(with(keyMinPyroPerRank, charIdStr), minPyro), IntegerEntry(with(keyMaxPyroPerRank, charIdStr), pyro), IntegerEntry(with(keyAero, charIdStr), randAero), IntegerEntry(with(keyMinAeroPerRank, charIdStr), minAero), IntegerEntry(with(keyMaxAeroPerRank, charIdStr), aero), IntegerEntry(with(keyAqua, charIdStr), randAqua), IntegerEntry(with(keyMinAquaPerRank, charIdStr), minAqua), IntegerEntry(with(keyMaxAquaPerRank, charIdStr), aqua), IntegerEntry(with(keyTerra, charIdStr), randTerra), IntegerEntry(with(keyMinTerraPerRank, charIdStr), minTerra), IntegerEntry(with(keyMaxTerraPerRank, charIdStr), terra), charIssue, ScriptTransfer(i.caller, 1, charId)] ++ mobEntry) | |
261 | 273 | } | |
262 | 274 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let params = addressFromStringValue("3N2jZaH1jLZ5uhKkNik6geA57HzMGw98igR") | |
5 | 5 | ||
6 | 6 | let keyInitV1Done = "init_v1_done" | |
7 | 7 | ||
8 | 8 | let keyTokenId = "tokenId" | |
9 | 9 | ||
10 | 10 | let keyInitialCharCreationStats = "initialCharCreationStats" | |
11 | 11 | ||
12 | 12 | let separator = "_" | |
13 | 13 | ||
14 | 14 | let keyItemsIdsCount = "itemsIdsCount" | |
15 | 15 | ||
16 | 16 | let keySpellsIdsCount = "spellsIdsCount" | |
17 | 17 | ||
18 | 18 | let keyMobsIdsCount = "mobsIdsCount" | |
19 | 19 | ||
20 | 20 | let keyItemType = "itemType" | |
21 | 21 | ||
22 | 22 | let keyItemStat1Type = "itemStat1Type" | |
23 | 23 | ||
24 | 24 | let keyItemStat2Type = "itemStat2Type" | |
25 | 25 | ||
26 | 26 | let keyItemStat3Type = "itemStat3Type" | |
27 | 27 | ||
28 | 28 | let keyItemStat1Value = "itemStat1Value" | |
29 | 29 | ||
30 | 30 | let keyItemStat2Value = "itemStat2Value" | |
31 | 31 | ||
32 | 32 | let keyItemStat3Value = "itemStat3Value" | |
33 | 33 | ||
34 | 34 | let keySpellDmgType = "spellElem" | |
35 | 35 | ||
36 | 36 | let keySpellMinDmg = "spellMinDmg" | |
37 | 37 | ||
38 | 38 | let keySpellMaxDmg = "spellMaxDmg" | |
39 | 39 | ||
40 | 40 | let keySpellStat1Type = "spellStat1Type" | |
41 | 41 | ||
42 | 42 | let keySpellStat2Type = "spellStat2Type" | |
43 | 43 | ||
44 | 44 | let keySpellStat3Type = "spellStat3Type" | |
45 | 45 | ||
46 | 46 | let keySpellStat1Value = "spellStat1Value" | |
47 | 47 | ||
48 | 48 | let keySpellStat2Value = "spellStat2Value" | |
49 | 49 | ||
50 | 50 | let keySpellStat3Value = "spellStat3Value" | |
51 | 51 | ||
52 | 52 | let keyMobCurrentHealth = "mobCurrentHealth" | |
53 | 53 | ||
54 | 54 | let keyMobMaxHealth = "mobMaxHealth" | |
55 | 55 | ||
56 | 56 | let keyMobExpPoints = "mobExpPoints" | |
57 | 57 | ||
58 | 58 | let keyMobGold = "mobGold" | |
59 | 59 | ||
60 | 60 | let keyMobLootChance = "mobLootChance" | |
61 | 61 | ||
62 | 62 | let keyMobStaffId = "mobStaffId" | |
63 | 63 | ||
64 | 64 | let keyMobRobeId = "mobRobeId" | |
65 | 65 | ||
66 | 66 | let keyMobRingId = "mobRingId" | |
67 | 67 | ||
68 | 68 | let keyMobSpell1Id = "mobSpell1Id" | |
69 | 69 | ||
70 | 70 | let keyMobSpell2Id = "mobSpell2Id" | |
71 | 71 | ||
72 | 72 | let keyMobSpell3Id = "mobSpell3Id" | |
73 | 73 | ||
74 | 74 | let keyName = "name" | |
75 | 75 | ||
76 | 76 | let keySex = "sex" | |
77 | 77 | ||
78 | 78 | let keyRank = "rank" | |
79 | 79 | ||
80 | 80 | let keyHealthCurrent = "healthCurrent" | |
81 | 81 | ||
82 | 82 | let keyHealthMax = "healthMax" | |
83 | 83 | ||
84 | 84 | let keyMinHealthPerRank = "minHealthPerRank" | |
85 | 85 | ||
86 | 86 | let keyMaxHealthPerRank = "maxHealthPerRank" | |
87 | 87 | ||
88 | 88 | let keyHealthRegen = "healthRegen" | |
89 | 89 | ||
90 | 90 | let keyMinHealthRegenPerRank = "minHealthRegenPerRank" | |
91 | 91 | ||
92 | 92 | let keyMaxHealthRegenPerRank = "maxHealthRegenPerRank" | |
93 | 93 | ||
94 | 94 | let keyManaCurrent = "manaCurrent" | |
95 | 95 | ||
96 | 96 | let keyManaMax = "manaMax" | |
97 | 97 | ||
98 | 98 | let keyMinManaPerRank = "minManaPerRank" | |
99 | 99 | ||
100 | 100 | let keyMaxManaPerRank = "maxManaPerRank" | |
101 | 101 | ||
102 | 102 | let keyManaRegen = "manaRegen" | |
103 | 103 | ||
104 | 104 | let keyMinManaRegenPerRank = "minManaRegenPerRank" | |
105 | 105 | ||
106 | 106 | let keyMaxManaRegenPerRank = "maxManaRegenPerRank" | |
107 | 107 | ||
108 | 108 | let keyPyro = "pyro" | |
109 | 109 | ||
110 | 110 | let keyMinPyroPerRank = "minPyroPerRank" | |
111 | 111 | ||
112 | 112 | let keyMaxPyroPerRank = "maxPyroPerRank" | |
113 | 113 | ||
114 | 114 | let keyAero = "aero" | |
115 | 115 | ||
116 | 116 | let keyMinAeroPerRank = "minAeroPerRank" | |
117 | 117 | ||
118 | 118 | let keyMaxAeroPerRank = "maxAeroPerRank" | |
119 | 119 | ||
120 | 120 | let keyAqua = "aqua" | |
121 | 121 | ||
122 | 122 | let keyMinAquaPerRank = "minAquaPerRank" | |
123 | 123 | ||
124 | 124 | let keyMaxAquaPerRank = "maxAquaPerRank" | |
125 | 125 | ||
126 | 126 | let keyTerra = "terra" | |
127 | 127 | ||
128 | 128 | let keyMinTerraPerRank = "minTerraPerRank" | |
129 | 129 | ||
130 | 130 | let keyMaxTerraPerRank = "maxTerraPerRank" | |
131 | 131 | ||
132 | 132 | func with (str1,str2) = ((str1 + separator) + str2) | |
133 | 133 | ||
134 | 134 | ||
135 | - | func | |
135 | + | func generateRandHash (nonce,txId) = sha256_16Kb(((value(value(blockInfoByHeight(height)).vrf) + txId) + toBytes(nonce))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func randInt (min,max,randHash,nonce) = ((toInt(randHash, nonce) % ((max - min) + 1)) + min) | |
139 | 139 | ||
140 | 140 | ||
141 | - | func generateItem (type,itemId, | |
141 | + | func generateItem (type,itemId,txId) = { | |
142 | 142 | let statsRange = [[1, 5], [5, 25], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [1, 5], [5, 15], [5, 15], [5, 15], [1, 5], [5, 10]] | |
143 | 143 | let statsAvailable = if ((type == 0)) | |
144 | 144 | then [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14] | |
145 | 145 | else if ((type == 1)) | |
146 | 146 | then [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 13] | |
147 | 147 | else if ((type == 2)) | |
148 | 148 | then [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | |
149 | 149 | else throw("Unknown item type") | |
150 | 150 | let statsAmount = size(statsAvailable) | |
151 | - | let s1 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 1))] | |
152 | - | let s2 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 2))] | |
153 | - | let s3 = statsAvailable[randInt(0, (statsAmount - 1), randHash, (currentNonce + 3))] | |
154 | - | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, (currentNonce + 4)) | |
155 | - | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, (currentNonce + 5)) | |
156 | - | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, (currentNonce + 6)) | |
151 | + | let randHash = generateRandHash(1, txId) | |
152 | + | let s1 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 0)] | |
153 | + | let s2 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 1)] | |
154 | + | let s3 = statsAvailable[randInt(0, (statsAmount - 1), randHash, 2)] | |
155 | + | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, 3) | |
156 | + | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, 4) | |
157 | + | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, 5) | |
157 | 158 | let itemIdStr = toString(itemId) | |
158 | 159 | [IntegerEntry(with(keyItemType, itemIdStr), type), IntegerEntry(with(keyItemStat1Type, itemIdStr), s1), IntegerEntry(with(keyItemStat2Type, itemIdStr), s2), IntegerEntry(with(keyItemStat3Type, itemIdStr), s3), IntegerEntry(with(keyItemStat1Value, itemIdStr), v1), IntegerEntry(with(keyItemStat2Value, itemIdStr), v2), IntegerEntry(with(keyItemStat3Value, itemIdStr), v3)] | |
159 | 160 | } | |
160 | 161 | ||
161 | 162 | ||
162 | - | func generateSpell (spellId, | |
163 | + | func generateSpell (spellId,txId) = { | |
163 | 164 | let statsRange = [[1, 5], [5, 25], [100, 200], [100, 150], [1, 5], [1, 5], [1, 5], [1, 5], [5, 10]] | |
164 | - | let dmgType = randInt(0, 3, randHash, (currentNonce + 1)) | |
165 | - | let dmgMinRange = randInt(200, 250, randHash, (currentNonce + 2)) | |
166 | - | let dmgMaxRange = randInt(251, 400, randHash, (currentNonce + 3)) | |
167 | - | let s1 = randInt(0, 8, randHash, (currentNonce + 4)) | |
168 | - | let s2 = randInt(0, 8, randHash, (currentNonce + 5)) | |
169 | - | let s3 = randInt(0, 8, randHash, (currentNonce + 6)) | |
170 | - | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, (currentNonce + 7)) | |
171 | - | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, (currentNonce + 8)) | |
172 | - | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, (currentNonce + 9)) | |
165 | + | let randHash = generateRandHash(2, txId) | |
166 | + | let dmgType = randInt(0, 3, randHash, 0) | |
167 | + | let dmgMinRange = randInt(200, 250, randHash, 1) | |
168 | + | let dmgMaxRange = randInt(251, 400, randHash, 2) | |
169 | + | let s1 = randInt(0, 8, randHash, 3) | |
170 | + | let s2 = randInt(0, 8, randHash, 4) | |
171 | + | let s3 = randInt(0, 8, randHash, 5) | |
172 | + | let v1 = randInt(statsRange[s1][0], statsRange[s1][1], randHash, 6) | |
173 | + | let v2 = randInt(statsRange[s2][0], statsRange[s2][1], randHash, 7) | |
174 | + | let v3 = randInt(statsRange[s3][0], statsRange[s3][1], randHash, 8) | |
173 | 175 | let spellIdStr = toString(spellId) | |
174 | 176 | [IntegerEntry(with(keySpellDmgType, spellIdStr), dmgType), IntegerEntry(with(keySpellMinDmg, spellIdStr), dmgMinRange), IntegerEntry(with(keySpellMaxDmg, spellIdStr), dmgMaxRange), IntegerEntry(with(keySpellStat1Type, spellIdStr), s1), IntegerEntry(with(keySpellStat2Type, spellIdStr), s2), IntegerEntry(with(keySpellStat3Type, spellIdStr), s3), IntegerEntry(with(keySpellStat1Value, spellIdStr), v1), IntegerEntry(with(keySpellStat2Value, spellIdStr), v2), IntegerEntry(with(keySpellStat3Value, spellIdStr), v3)] | |
175 | 177 | } | |
176 | 178 | ||
177 | 179 | ||
178 | - | func generateMobEntry ( | |
179 | - | let currentItemId = 0 | |
180 | - | let currentSpellId = 0 | |
181 | - | let currentMobId = 0 | |
180 | + | func generateMobEntry (txId) = { | |
181 | + | let currentItemId = valueOrElse(getInteger(this, keyItemsIdsCount), 0) | |
182 | + | let currentSpellId = valueOrElse(getInteger(this, keySpellsIdsCount), 0) | |
183 | + | let currentMobId = valueOrElse(getInteger(this, keyMobsIdsCount), 0) | |
182 | 184 | let currentMobIdStr = toString(currentMobId) | |
183 | - | let mobHealth = randInt(1000, 1500, randHash, 25) | |
184 | - | [IntegerEntry(with(keyMobMaxHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobStaffId, currentMobIdStr), currentItemId), IntegerEntry(with(keyMobRobeId, currentMobIdStr), (currentItemId + 1)), IntegerEntry(with(keyMobRingId, currentMobIdStr), (currentItemId + 2)), IntegerEntry(with(keyMobSpell1Id, currentMobIdStr), currentSpellId), IntegerEntry(with(keyMobSpell2Id, currentMobIdStr), (currentSpellId + 1)), IntegerEntry(with(keyMobSpell3Id, currentMobIdStr), (currentSpellId + 2)), IntegerEntry(keyItemsIdsCount, (currentItemId + 3)), IntegerEntry(keySpellsIdsCount, (currentSpellId + 3)), IntegerEntry(keyMobsIdsCount, (currentMobId + 1))] | |
185 | + | let randHash = generateRandHash(3, txId) | |
186 | + | let staff = generateItem(0, currentItemId, txId) | |
187 | + | let robe = generateItem(1, (currentItemId + 1), txId) | |
188 | + | let ring = generateItem(2, (currentItemId + 2), txId) | |
189 | + | let spell1 = generateSpell(currentSpellId, txId) | |
190 | + | let spell2 = generateSpell((currentSpellId + 1), txId) | |
191 | + | let spell3 = generateSpell((currentSpellId + 2), txId) | |
192 | + | let mobHealth = randInt(1000, 1500, randHash, 0) | |
193 | + | let mobExp = randInt(100, 200, randHash, 1) | |
194 | + | let mobGold = randInt(500, 2000, randHash, 2) | |
195 | + | let mobLootChance = randInt(5, 20, randHash, 3) | |
196 | + | (((((([IntegerEntry(with(keyMobCurrentHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobMaxHealth, currentMobIdStr), mobHealth), IntegerEntry(with(keyMobExpPoints, currentMobIdStr), mobExp), IntegerEntry(with(keyMobGold, currentMobIdStr), mobGold), IntegerEntry(with(keyMobLootChance, currentMobIdStr), mobLootChance), IntegerEntry(with(keyMobStaffId, currentMobIdStr), currentItemId), IntegerEntry(with(keyMobRobeId, currentMobIdStr), (currentItemId + 1)), IntegerEntry(with(keyMobRingId, currentMobIdStr), (currentItemId + 2)), IntegerEntry(with(keyMobSpell1Id, currentMobIdStr), currentSpellId), IntegerEntry(with(keyMobSpell2Id, currentMobIdStr), (currentSpellId + 1)), IntegerEntry(with(keyMobSpell3Id, currentMobIdStr), (currentSpellId + 2)), IntegerEntry(keyItemsIdsCount, (currentItemId + 3)), IntegerEntry(keySpellsIdsCount, (currentSpellId + 3)), IntegerEntry(keyMobsIdsCount, (currentMobId + 1))] ++ staff) ++ robe) ++ ring) ++ spell1) ++ spell2) ++ spell3) | |
185 | 197 | } | |
186 | 198 | ||
187 | 199 | ||
188 | 200 | @Callable(i) | |
189 | 201 | func create (name,sex,pyro,aero,aqua,terra) = { | |
190 | 202 | let initialStats = split(getStringValue(params, keyInitialCharCreationStats), separator) | |
191 | 203 | let nameSize = size(name) | |
192 | 204 | if (if ((parseIntValue(initialStats[0]) > nameSize)) | |
193 | 205 | then true | |
194 | 206 | else (nameSize > parseIntValue(initialStats[1]))) | |
195 | 207 | then throw("Char name size not valid") | |
196 | 208 | else if (if (contains(name, " ")) | |
197 | 209 | then true | |
198 | 210 | else contains(name, separator)) | |
199 | 211 | then throw((("Whitespaces or " + separator) + " not allowed")) | |
200 | 212 | else if (if ((sex != 1)) | |
201 | 213 | then (sex != 2) | |
202 | 214 | else false) | |
203 | 215 | then throw("Somethings wrong with char sex") | |
204 | 216 | else if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (((((pyro + aero) + aqua) + terra) != 14)) | |
205 | 217 | then true | |
206 | 218 | else (2 > pyro)) | |
207 | 219 | then true | |
208 | 220 | else (pyro > 5)) | |
209 | 221 | then true | |
210 | 222 | else (2 > aero)) | |
211 | 223 | then true | |
212 | 224 | else (aero > 5)) | |
213 | 225 | then true | |
214 | 226 | else (2 > aqua)) | |
215 | 227 | then true | |
216 | 228 | else (aqua > 5)) | |
217 | 229 | then true | |
218 | 230 | else (2 > terra)) | |
219 | 231 | then true | |
220 | 232 | else (terra > 5)) | |
221 | 233 | then true | |
222 | 234 | else (pyro == aero)) | |
223 | 235 | then true | |
224 | 236 | else (pyro == aqua)) | |
225 | 237 | then true | |
226 | 238 | else (pyro == terra)) | |
227 | 239 | then true | |
228 | 240 | else (aero == aqua)) | |
229 | 241 | then true | |
230 | 242 | else (aero == terra)) | |
231 | 243 | then true | |
232 | 244 | else (aqua == terra)) | |
233 | 245 | then throw("Elem spec issue") | |
234 | 246 | else { | |
235 | 247 | let charIssue = Issue(name, "", 1, 0, false, unit, 0) | |
236 | 248 | let charId = calculateAssetId(charIssue) | |
237 | 249 | let charIdStr = toBase58String(charId) | |
238 | - | let randHash = | |
250 | + | let randHash = generateRandHash(4, i.transactionId) | |
239 | 251 | let minHealth = parseIntValue(initialStats[3]) | |
240 | 252 | let maxHealth = parseIntValue(initialStats[4]) | |
241 | 253 | let randHealth = (parseIntValue(initialStats[2]) + randInt(minHealth, maxHealth, randHash, 0)) | |
242 | 254 | let minHealthRegen = parseIntValue(initialStats[6]) | |
243 | 255 | let maxHealthRegen = parseIntValue(initialStats[7]) | |
244 | 256 | let randHealthRegen = (parseIntValue(initialStats[5]) + randInt(minHealthRegen, maxHealthRegen, randHash, 1)) | |
245 | 257 | let minMana = parseIntValue(initialStats[9]) | |
246 | 258 | let maxMana = parseIntValue(initialStats[10]) | |
247 | 259 | let randMana = (parseIntValue(initialStats[8]) + randInt(minMana, maxMana, randHash, 2)) | |
248 | 260 | let minManaRegen = parseIntValue(initialStats[12]) | |
249 | 261 | let maxManaRegen = parseIntValue(initialStats[13]) | |
250 | 262 | let randManaRegen = (parseIntValue(initialStats[11]) + randInt(minManaRegen, maxManaRegen, randHash, 3)) | |
251 | 263 | let minPyro = parseIntValue(initialStats[14]) | |
252 | 264 | let randPyro = randInt(minPyro, pyro, randHash, 4) | |
253 | 265 | let minAero = parseIntValue(initialStats[15]) | |
254 | 266 | let randAero = randInt(minAero, aero, randHash, 5) | |
255 | 267 | let minAqua = parseIntValue(initialStats[16]) | |
256 | 268 | let randAqua = randInt(minAqua, aqua, randHash, 6) | |
257 | 269 | let minTerra = parseIntValue(initialStats[17]) | |
258 | 270 | let randTerra = randInt(minTerra, terra, randHash, 7) | |
259 | - | let mobEntry = generateMobEntry( | |
271 | + | let mobEntry = generateMobEntry(i.transactionId) | |
260 | 272 | ([StringEntry(with(keyName, charIdStr), name), IntegerEntry(with(keySex, charIdStr), sex), IntegerEntry(with(keyRank, charIdStr), 1), IntegerEntry(with(keyHealthCurrent, charIdStr), randHealth), IntegerEntry(with(keyHealthMax, charIdStr), randHealth), IntegerEntry(with(keyMinHealthPerRank, charIdStr), minHealth), IntegerEntry(with(keyMaxHealthPerRank, charIdStr), minHealth), IntegerEntry(with(keyHealthRegen, charIdStr), randHealthRegen), IntegerEntry(with(keyMinHealthRegenPerRank, charIdStr), minHealthRegen), IntegerEntry(with(keyMaxHealthRegenPerRank, charIdStr), maxHealthRegen), IntegerEntry(with(keyManaCurrent, charIdStr), randMana), IntegerEntry(with(keyManaMax, charIdStr), randMana), IntegerEntry(with(keyMinManaPerRank, charIdStr), minMana), IntegerEntry(with(keyMaxManaPerRank, charIdStr), maxMana), IntegerEntry(with(keyManaRegen, charIdStr), randManaRegen), IntegerEntry(with(keyMinManaRegenPerRank, charIdStr), minManaRegen), IntegerEntry(with(keyMaxManaRegenPerRank, charIdStr), maxManaRegen), IntegerEntry(with(keyPyro, charIdStr), randPyro), IntegerEntry(with(keyMinPyroPerRank, charIdStr), minPyro), IntegerEntry(with(keyMaxPyroPerRank, charIdStr), pyro), IntegerEntry(with(keyAero, charIdStr), randAero), IntegerEntry(with(keyMinAeroPerRank, charIdStr), minAero), IntegerEntry(with(keyMaxAeroPerRank, charIdStr), aero), IntegerEntry(with(keyAqua, charIdStr), randAqua), IntegerEntry(with(keyMinAquaPerRank, charIdStr), minAqua), IntegerEntry(with(keyMaxAquaPerRank, charIdStr), aqua), IntegerEntry(with(keyTerra, charIdStr), randTerra), IntegerEntry(with(keyMinTerraPerRank, charIdStr), minTerra), IntegerEntry(with(keyMaxTerraPerRank, charIdStr), terra), charIssue, ScriptTransfer(i.caller, 1, charId)] ++ mobEntry) | |
261 | 273 | } | |
262 | 274 | } | |
263 | 275 | ||
264 | 276 | ||
265 | 277 | @Verifier(tx) | |
266 | 278 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
267 | 279 |
github/deemru/w8io/169f3d6 45.82 ms ◑