tx · HLxJRSU93d7ffCqEUYoFyVxoCXkA253yX7p5nUjgsPeC 3MuH9NgpoGaSQufEQLPRikXNS9PXhkhcLzp: -0.01900000 Waves 2022.05.23 17:55 [2064473] smart account 3MuH9NgpoGaSQufEQLPRikXNS9PXhkhcLzp > SELF 0.00000000 Waves
{ "type": 13, "id": "HLxJRSU93d7ffCqEUYoFyVxoCXkA253yX7p5nUjgsPeC", "fee": 1900000, "feeAssetId": null, "timestamp": 1653317767459, "version": 2, "chainId": 84, "sender": "3MuH9NgpoGaSQufEQLPRikXNS9PXhkhcLzp", "senderPublicKey": "74D2dSZ2CcYprVwEPr2GayHyp7wbLrppDt4SWXZcfT1z", "proofs": [ "6WTWtbUqodxUw6wt2Um5hCXZL6pLx1kgQJRPDmtRLMZrJYJ1XueFkxEWM3SsrYMKn5JfXeXjDWNMmYXHEuBkKgS" ], "script": "base64:AAIFAAAAAAAAABsIAhIDCgEBEgMKAQESBwoFCAEBAQESBAoCCAEAAABNAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAABmdvdkFwcAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM015eGZ3dmJ1ZVVCeW5ZSGZRc3V0TlhaTnFOb3pHaU1uc0cAAAAACGNoYXJzQXBwCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTkEzTFJTaWdrNmtuTFoxNnVUemNkTE5vdzJFUVp0WFRhSgAAAAAIbGFuZHNBcHAJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNNeGlKTHJZNlFhNWJTWXh4U0ZIU0c1YlZWMm41OXgxTUduAAAAAApiYXR0bGVzQXBwCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABAgAAACMzTXVIOU5ncG9HYVNRdWZFUUxQUmlrWE5TOVBYaGtoY0x6cAAAAAAVa2V5RWNvc3lzdGVtQWRkcmVzc2VzAgAAABNlY29zeXN0ZW1fYWRkcmVzc2VzAAAAAAprZXlUb2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AETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAADGtleUNoYXJBcm1vcgUAAAAGY2hhcklkAAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAADGtleUNoYXJKZXdlbAUAAAAGY2hhcklkAAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAAE2tleUl0ZW1Jc0VxdWlwcGVkQnkFAAAACHdlYXBvbklkAAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAEd2l0aAAAAAIFAAAAE2tleUl0ZW1Jc0VxdWlwcGVkQnkFAAAAB2FybW9ySWQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAAAR3aXRoAAAAAgUAAAATa2V5SXRlbUlzRXF1aXBwZWRCeQUAAAAHamV3ZWxJZAAAAAAAAAAAAAUAAAADbmlsCQAEuQAAAAIJAARMAAAAAgkAAaQAAAABBQAAAAh3ZWFwb25JZAkABEwAAAACCQABpAAAAAEFAAAAB2FybW9ySWQJAARMAAAAAgkAAaQAAAABBQAAAAdqZXdlbElkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5S0xVlQ==", "height": 2064473, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Acoxx3rnMAbhXsotJ8MP3ML3TvCfEAV7QoXm37DrNfhT Next: none Diff:
Old | New | Differences | |
---|---|---|---|
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ecosystemCheck (caller) = if ((contains(getStringValue( | |
154 | + | func ecosystemCheck (caller) = if ((contains(getStringValue(govApp, keyEcosystemAddresses), toBase58String(caller.bytes)) != true)) | |
155 | 155 | then throw("Access denied ") | |
156 | 156 | else true | |
157 | 157 | ||
251 | 251 | ||
252 | 252 | ||
253 | 253 | @Callable(i) | |
254 | - | func setEquipment (callerAddr,charId,weaponId,armorId,jewelId) = if ((ecosystemCheck(i.caller) | |
254 | + | func setEquipment (callerAddr,charId,weaponId,armorId,jewelId) = if (!(ecosystemCheck(i.caller))) | |
255 | 255 | then throw() | |
256 | 256 | else { | |
257 | 257 | func equipItem (key,itemId,itemCat) = if (if (if ((getStringValue(this, with(keyItemOwner, itemId)) != callerAddr)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "_" | |
5 | 5 | ||
6 | 6 | let govApp = addressFromStringValue("3MyxfwvbueUBynYHfQsutNXZNqNozGiMnsG") | |
7 | 7 | ||
8 | 8 | let charsApp = addressFromStringValue("3NA3LRSigk6knLZ16uTzcdLNow2EQZtXTaJ") | |
9 | 9 | ||
10 | 10 | let landsApp = addressFromStringValue("3MxiJLrY6Qa5bSYxxSFHSG5bVV2n59x1MGn") | |
11 | 11 | ||
12 | 12 | let battlesApp = addressFromStringValue("3MuH9NgpoGaSQufEQLPRikXNS9PXhkhcLzp") | |
13 | 13 | ||
14 | 14 | let keyEcosystemAddresses = "ecosystem_addresses" | |
15 | 15 | ||
16 | 16 | let keyTokenId = "token_id" | |
17 | 17 | ||
18 | 18 | let keyTokenEmissionRate = "token_emission_rate" | |
19 | 19 | ||
20 | 20 | let keyTokenGenerated = "token_generated" | |
21 | 21 | ||
22 | 22 | let keyTokenGeneratedLastUpdate = "token_generated_last_update" | |
23 | 23 | ||
24 | 24 | let keyCharsBodyAmount = "chars_body_amount" | |
25 | 25 | ||
26 | 26 | let keyCharsEyesAmount = "chars_eyes_amount" | |
27 | 27 | ||
28 | 28 | let keyCharsMouthAmount = "chars_mouth_amount" | |
29 | 29 | ||
30 | 30 | let keyCharsStatsTiersRanges = "chars_stats_tiers_ranges" | |
31 | 31 | ||
32 | 32 | let keyCharsNaturalElemBonusRanges = "chars_natural_elem_bonus_ranges" | |
33 | 33 | ||
34 | 34 | let keyCharsNaturalBattleBonusRanges = "chars_natural_battle_bonus_ranges" | |
35 | 35 | ||
36 | 36 | let keyCharsNaturalGeneratingBonusRanges = "chars_natural_generating_bonus_ranges" | |
37 | 37 | ||
38 | 38 | let keyTotalLands = "total_lands" | |
39 | 39 | ||
40 | 40 | let keyBattleRestPeriod = "battle_rest_period" | |
41 | 41 | ||
42 | 42 | let keyBattleWinChanceHardcap = "battle_win_chance_hardcap" | |
43 | 43 | ||
44 | 44 | let keyBattleWinChanceIncrPerBlock = "battle_win_chance_incr_per_block" | |
45 | 45 | ||
46 | 46 | let keyBattleLootRarityRanges = "battle_loot_rarity_ranges" | |
47 | 47 | ||
48 | 48 | let keyItemsCategories = "items_categories" | |
49 | 49 | ||
50 | 50 | let keyItemsTypesPerCat = "items_types_per_cat" | |
51 | 51 | ||
52 | 52 | let keyItemsEffectsAmount = "items_effects_amount" | |
53 | 53 | ||
54 | 54 | let keyitemsEffectsMaxRanges = "items_effects_max_range" | |
55 | 55 | ||
56 | 56 | let keyCharsCount = "chars_count" | |
57 | 57 | ||
58 | 58 | let keyOwner = "owner" | |
59 | 59 | ||
60 | 60 | let keyAppearance = "appearance" | |
61 | 61 | ||
62 | 62 | let keyNaturalPyroBonus = "natural_pyro_bonus" | |
63 | 63 | ||
64 | 64 | let keyNaturalAquaBonus = "natural_aqua_bonus" | |
65 | 65 | ||
66 | 66 | let keyNaturalTerraBonus = "natural_terra_bonus" | |
67 | 67 | ||
68 | 68 | let keyNaturalAeroBonus = "natural_aero_bonus" | |
69 | 69 | ||
70 | 70 | let keyNaturalBattleBonus = "natural_battle_bonus" | |
71 | 71 | ||
72 | 72 | let keyNaturalGeneratingBonus = "natural_generating_bonus" | |
73 | 73 | ||
74 | 74 | let keyCharCurrentLand = "char_current_land" | |
75 | 75 | ||
76 | 76 | let keyLandPyroPower = "land_pyro_power" | |
77 | 77 | ||
78 | 78 | let keyLandAquaPower = "land_aqua_power" | |
79 | 79 | ||
80 | 80 | let keyLandTerraPower = "land_terra_power" | |
81 | 81 | ||
82 | 82 | let keyLandAeroPower = "land_aero_power" | |
83 | 83 | ||
84 | 84 | let keyCharTotalIncome = "char_total_income" | |
85 | 85 | ||
86 | 86 | let keyAddressTotalIncome = "address_total_income" | |
87 | 87 | ||
88 | 88 | let keyCharPyroPower = "char_pyro_power" | |
89 | 89 | ||
90 | 90 | let keyCharAquaPower = "char_aqua_power" | |
91 | 91 | ||
92 | 92 | let keyCharTerraPower = "char_terra_power" | |
93 | 93 | ||
94 | 94 | let keyCharAeroPower = "char_aero_power" | |
95 | 95 | ||
96 | 96 | let keyCharInitialPyroShares = "char_initial_pyro_shares" | |
97 | 97 | ||
98 | 98 | let keyCharInitialAquaShares = "char_initial_aqua_shares" | |
99 | 99 | ||
100 | 100 | let keyCharInitialTerraShares = "char_initial_terra_shares" | |
101 | 101 | ||
102 | 102 | let keyCharInitialAeroShares = "char_initial_aero_shares" | |
103 | 103 | ||
104 | 104 | let keyCharInitialLandPyroGrantedTokens = "char_initial_land_pyro_granted_tokens" | |
105 | 105 | ||
106 | 106 | let keyCharInitialLandAquaGrantedTokens = "char_initial_land_aqua_granted_tokens" | |
107 | 107 | ||
108 | 108 | let keyCharInitialLandTerraGrantedTokens = "char_initial_land_terra_granted_tokens" | |
109 | 109 | ||
110 | 110 | let keyCharInitialLandAeroGrantedTokens = "char_initial_land_aero_granted_tokens" | |
111 | 111 | ||
112 | 112 | let keyLandLastTokenDistributionUpdate = "land_mast_token_distribution_update" | |
113 | 113 | ||
114 | 114 | let keyLandPyroTotalGrantedTokens = "land_pyro_total_granted_tokens" | |
115 | 115 | ||
116 | 116 | let keyLandAquaTotalGrantedTokens = "land_aqua_total_granted_tokens" | |
117 | 117 | ||
118 | 118 | let keyLandTerraTotalGrantedTokens = "land_terra_total_granted_tokens" | |
119 | 119 | ||
120 | 120 | let keyLandAeroTotalGrantedTokens = "land_aero_total_granted_tokens" | |
121 | 121 | ||
122 | 122 | let keyLastBattleHeight = "last_battle_height" | |
123 | 123 | ||
124 | 124 | let keyItemsCount = "items_count" | |
125 | 125 | ||
126 | 126 | let keyItemOwner = "item_owner" | |
127 | 127 | ||
128 | 128 | let keyItemCategory = "item_category" | |
129 | 129 | ||
130 | 130 | let keyItemType = "item_type" | |
131 | 131 | ||
132 | 132 | let keyItemEffects = "item_effects" | |
133 | 133 | ||
134 | 134 | let keyItemIsEquippedBy = "item_is_equipped_by" | |
135 | 135 | ||
136 | 136 | let keyCharWeapon = "char_weapon" | |
137 | 137 | ||
138 | 138 | let keyCharArmor = "char_armor" | |
139 | 139 | ||
140 | 140 | let keyCharJewel = "char_jewel" | |
141 | 141 | ||
142 | 142 | let keyItemEffectsValuesPerTypes = "item_effects_values_per_types" | |
143 | 143 | ||
144 | 144 | func invokeChecks (callerAddr) = if ((isDataStorageUntouched(govApp) != false)) | |
145 | 145 | then throw("Governing app not ready") | |
146 | 146 | else { | |
147 | 147 | let ecosystemAddresses = getStringValue(govApp, keyEcosystemAddresses) | |
148 | 148 | if ((contains(ecosystemAddresses, toString(callerAddr)) != false)) | |
149 | 149 | then throw("Access denied") | |
150 | 150 | else true | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ecosystemCheck (caller) = if ((contains(getStringValue( | |
154 | + | func ecosystemCheck (caller) = if ((contains(getStringValue(govApp, keyEcosystemAddresses), toBase58String(caller.bytes)) != true)) | |
155 | 155 | then throw("Access denied ") | |
156 | 156 | else true | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func with (a,b) = makeString([toString(b), a], separator) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func withStr (a,b) = makeString([b, a], separator) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func randInt (min,max,txId,nonce) = { | |
166 | 166 | let hash = value(sha256_16Kb(((value(value(blockInfoByHeight(height)).vrf) + txId) + toBytes(nonce)))) | |
167 | 167 | value(((value(toInt(hash)) % ((max - min) + 1)) + min)) | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func calcEffectValue (itemEffects,effectId) = ((((if ((itemEffects[0][0] == effectId)) | |
172 | 172 | then itemEffects[0][1] | |
173 | 173 | else 0) + (if ((itemEffects[1][0] == effectId)) | |
174 | 174 | then itemEffects[1][1] | |
175 | 175 | else 0)) + (if ((itemEffects[2][0] == effectId)) | |
176 | 176 | then itemEffects[2][1] | |
177 | 177 | else 0)) + (if ((itemEffects[3][0] == effectId)) | |
178 | 178 | then itemEffects[3][1] | |
179 | 179 | else 0)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func createItem (callerAddr,startingNonce,txId) = { | |
183 | 183 | let itemCat = randInt(1, getIntegerValue(govApp, keyItemsCategories), txId, startingNonce) | |
184 | 184 | let itemCatTypesAmount = parseIntValue(split(getStringValue(govApp, keyItemsTypesPerCat), separator)[itemCat]) | |
185 | 185 | let itemType = randInt(1, itemCatTypesAmount, txId, (startingNonce + 1)) | |
186 | 186 | let itemRarityRanges = split(getStringValue(govApp, keyBattleLootRarityRanges), separator) | |
187 | 187 | let itemRarity = randInt(0, 10000, txId, (startingNonce + 2)) | |
188 | 188 | let itemEffectSlots = if ((parseIntValue(itemRarityRanges[0]) >= itemRarity)) | |
189 | 189 | then 1 | |
190 | 190 | else if ((parseIntValue(itemRarityRanges[1]) >= itemRarity)) | |
191 | 191 | then 2 | |
192 | 192 | else if ((parseIntValue(itemRarityRanges[2]) >= itemRarity)) | |
193 | 193 | then 3 | |
194 | 194 | else 4 | |
195 | 195 | let itemEffectsAmounts = getIntegerValue(govApp, keyItemsEffectsAmount) | |
196 | 196 | let itemEffectsMaxRanges = split(getStringValue(govApp, keyitemsEffectsMaxRanges), separator) | |
197 | 197 | let effectType1 = randInt(1, itemEffectsAmounts, txId, (startingNonce + 3)) | |
198 | 198 | let effectType2 = if ((itemEffectSlots > 1)) | |
199 | 199 | then randInt(1, itemEffectsAmounts, txId, (startingNonce + 5)) | |
200 | 200 | else 0 | |
201 | 201 | let effectType3 = if ((itemEffectSlots > 2)) | |
202 | 202 | then randInt(1, itemEffectsAmounts, txId, (startingNonce + 7)) | |
203 | 203 | else 0 | |
204 | 204 | let effectType4 = if ((itemEffectSlots > 3)) | |
205 | 205 | then randInt(1, itemEffectsAmounts, txId, (startingNonce + 9)) | |
206 | 206 | else 0 | |
207 | 207 | let itemEffects = [[effectType1, randInt(1, parseIntValue(itemEffectsMaxRanges[effectType1]), txId, (startingNonce + 4))], [effectType2, if ((itemEffectSlots > 1)) | |
208 | 208 | then randInt(1, parseIntValue(itemEffectsMaxRanges[effectType2]), txId, (startingNonce + 6)) | |
209 | 209 | else 0], [effectType3, if ((itemEffectSlots > 2)) | |
210 | 210 | then randInt(1, parseIntValue(itemEffectsMaxRanges[effectType3]), txId, (startingNonce + 8)) | |
211 | 211 | else 0], [effectType4, if ((itemEffectSlots > 3)) | |
212 | 212 | then randInt(1, parseIntValue(itemEffectsMaxRanges[effectType4]), txId, (startingNonce + 10)) | |
213 | 213 | else 0]] | |
214 | 214 | let itemEffectsValuesPerTypes = makeString(["0", toString(calcEffectValue(itemEffects, 1)), toString(calcEffectValue(itemEffects, 2)), toString(calcEffectValue(itemEffects, 3)), toString(calcEffectValue(itemEffects, 4)), toString(calcEffectValue(itemEffects, 5)), toString(calcEffectValue(itemEffects, 6)), toString(calcEffectValue(itemEffects, 7)), toString(calcEffectValue(itemEffects, 8)), toString(calcEffectValue(itemEffects, 9)), toString(calcEffectValue(itemEffects, 10)), toString(calcEffectValue(itemEffects, 11)), toString(calcEffectValue(itemEffects, 12)), toString(calcEffectValue(itemEffects, 13)), toString(calcEffectValue(itemEffects, 14)), toString(calcEffectValue(itemEffects, 15)), toString(calcEffectValue(itemEffects, 16)), toString(calcEffectValue(itemEffects, 17)), toString(calcEffectValue(itemEffects, 18)), toString(calcEffectValue(itemEffects, 19)), toString(calcEffectValue(itemEffects, 20)), toString(calcEffectValue(itemEffects, 21)), toString(calcEffectValue(itemEffects, 22)), toString(calcEffectValue(itemEffects, 23)), toString(calcEffectValue(itemEffects, 24)), toString(calcEffectValue(itemEffects, 25)), toString(calcEffectValue(itemEffects, 26)), toString(calcEffectValue(itemEffects, 27)), toString(calcEffectValue(itemEffects, 28)), toString(calcEffectValue(itemEffects, 29)), toString(calcEffectValue(itemEffects, 30)), toString(calcEffectValue(itemEffects, 31)), toString(calcEffectValue(itemEffects, 32))], separator) | |
215 | 215 | let itemId = valueOrElse(getInteger(this, keyItemsCount), 1) | |
216 | 216 | [IntegerEntry(keyItemsCount, (itemId + 1)), IntegerEntry(with(keyItemCategory, itemId), itemCat), IntegerEntry(with(keyItemType, itemId), itemType), StringEntry(with(keyItemEffectsValuesPerTypes, itemId), itemEffectsValuesPerTypes), StringEntry(with(keyItemOwner, itemId), callerAddr), IntegerEntry(with(keyItemIsEquippedBy, itemId), 0)] | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | @Callable(i) | |
221 | 221 | func battle (charId) = if ((invokeChecks(i.caller) != true)) | |
222 | 222 | then throw() | |
223 | 223 | else { | |
224 | 224 | let callerAddr = toBase58String(i.caller.bytes) | |
225 | 225 | let txId = i.transactionId | |
226 | 226 | if ((getStringValue(charsApp, with(keyOwner, charId)) != callerAddr)) | |
227 | 227 | then throw("Caller doesn't own this char") | |
228 | 228 | else { | |
229 | 229 | let battleReadyHeight = (getIntegerValue(this, with(keyLastBattleHeight, charId)) + getIntegerValue(govApp, keyBattleRestPeriod)) | |
230 | 230 | if ((battleReadyHeight > height)) | |
231 | 231 | then throw("Still resting") | |
232 | 232 | else { | |
233 | 233 | let winChance = min([((getIntegerValue(govApp, keyBattleWinChanceIncrPerBlock) * (height - battleReadyHeight)) + (getIntegerValue(charsApp, with(keyNaturalBattleBonus, charId)) * 100)), getIntegerValue(govApp, keyBattleWinChanceHardcap)]) | |
234 | 234 | if ((randInt(0, 1000000, txId, 0) > winChance)) | |
235 | 235 | then [IntegerEntry(with(keyLastBattleHeight, charId), height)] | |
236 | 236 | else { | |
237 | 237 | let newItem = createItem(callerAddr, 1, txId) | |
238 | 238 | ([IntegerEntry(with(keyLastBattleHeight, charId), height)] ++ newItem) | |
239 | 239 | } | |
240 | 240 | } | |
241 | 241 | } | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(i) | |
247 | 247 | func updateLastBattleHeight (charId) = if (!(ecosystemCheck(i.caller))) | |
248 | 248 | then throw() | |
249 | 249 | else $Tuple2([IntegerEntry(with(keyLastBattleHeight, charId), height)], height) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | ||
253 | 253 | @Callable(i) | |
254 | - | func setEquipment (callerAddr,charId,weaponId,armorId,jewelId) = if ((ecosystemCheck(i.caller) | |
254 | + | func setEquipment (callerAddr,charId,weaponId,armorId,jewelId) = if (!(ecosystemCheck(i.caller))) | |
255 | 255 | then throw() | |
256 | 256 | else { | |
257 | 257 | func equipItem (key,itemId,itemCat) = if (if (if ((getStringValue(this, with(keyItemOwner, itemId)) != callerAddr)) | |
258 | 258 | then true | |
259 | 259 | else (getIntegerValue(this, with(keyItemIsEquippedBy, itemId)) != 0)) | |
260 | 260 | then true | |
261 | 261 | else (getIntegerValue(this, with(keyItemCategory, itemId)) != itemCat)) | |
262 | 262 | then $Tuple2(nil, 0) | |
263 | 263 | else $Tuple2([IntegerEntry(with(keyItemIsEquippedBy, itemId), charId), IntegerEntry(with(key, charId), itemId)], itemId) | |
264 | 264 | ||
265 | 265 | let weapon = if ((weaponId != 0)) | |
266 | 266 | then equipItem(keyCharWeapon, weaponId, 1) | |
267 | 267 | else $Tuple2(nil, 0) | |
268 | 268 | let armor = if ((armorId != 0)) | |
269 | 269 | then equipItem(keyCharArmor, armorId, 2) | |
270 | 270 | else $Tuple2(nil, 0) | |
271 | 271 | let jewel = if ((jewelId != 0)) | |
272 | 272 | then equipItem(keyCharJewel, jewelId, 3) | |
273 | 273 | else $Tuple2(nil, 0) | |
274 | 274 | $Tuple2(((weapon._1 ++ armor._1) ++ jewel._1), makeString([toString(weapon._2), toString(armor._2), toString(jewel._2)], separator)) | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(i) | |
280 | 280 | func removeEquipment (callerAddr,charId) = if ((ecosystemCheck(i.caller) != true)) | |
281 | 281 | then throw() | |
282 | 282 | else { | |
283 | 283 | let weaponId = getIntegerValue(this, with(keyCharWeapon, charId)) | |
284 | 284 | let armorId = getIntegerValue(this, with(keyCharArmor, charId)) | |
285 | 285 | let jewelId = getIntegerValue(this, with(keyCharJewel, charId)) | |
286 | 286 | $Tuple2([IntegerEntry(with(keyCharWeapon, charId), 0), IntegerEntry(with(keyCharArmor, charId), 0), IntegerEntry(with(keyCharJewel, charId), 0), IntegerEntry(with(keyItemIsEquippedBy, weaponId), 0), IntegerEntry(with(keyItemIsEquippedBy, armorId), 0), IntegerEntry(with(keyItemIsEquippedBy, jewelId), 0)], makeString([toString(weaponId), toString(armorId), toString(jewelId)], separator)) | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | @Verifier(tx) | |
291 | 291 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
292 | 292 |
github/deemru/w8io/169f3d6 75.78 ms ◑