tx · E1SUVZRsQuqCnEJdNiovpLZG757W4onBiw56iB8T94u3 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx: -0.01000000 Waves 2021.07.26 10:28 [1630317] smart account 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx > SELF 0.00000000 Waves
{ "type": 13, "id": "E1SUVZRsQuqCnEJdNiovpLZG757W4onBiw56iB8T94u3", "fee": 1000000, "feeAssetId": null, "timestamp": 1627284557698, "version": 2, "chainId": 84, "sender": "3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx", "senderPublicKey": "6qoAe8r1esyuGECiN4UZSvi5RpyExfXXS8izyNwWZaJP", "proofs": [ "3aSVBZiTD8B6dHRvjMkn774dYxBFgbh9kwxvtCEKKLk8RvfqPzTv8jstyycn1qZDqL5JPrrBnue8FVYw4pEoyqfj" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZXlCeXRlcw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lQXJlbmE6IAUAAAAOY2FyZEluVGhlQXJlbmECAAAAES8gYXJlbmFDYXJkU2NvcmU6CQABpAAAAAEFAAAADmFyZW5hQ2FyZFNjb3JlAgAAAAkvIHdpbm5lcjoFAAAABndpbm5lcgIAAAAOLyB3aW5uaW5nQ2FyZDoFAAAAC3dpbm5pbmdDYXJkAgAAAB8vIHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQ6CQABpAAAAAEFAAAAHHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAWUmVzdWx0YWRvIGRhIFBhcnRpZGE6IAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAl1c2VkQ2FyZDoFAAAACGNhcmROYW1lAgAAAAkvIHdpbm5lcjoFAAAABndpbm5lcgIAAAAOLyB3aW5uaW5nQ2FyZDoFAAAAC3dpbm5pbmdDYXJkAgAAAB8vIHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQ6CQABpAAAAAEFAAAAHHBvaW50c1JlbWFpbmluZ09uV2lubmluZ0NhcmQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAdzdGF0dXNfBQAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXICAAAABFVzZWQFAAAAA25pbAAAAADeveKE", "height": 1630317, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2zmRByYzPNkpTmom9X171gDMnMVsa57HG3LCojsqF2wG Next: AU2MbzgvgsvU9yHc3MUKgDKj25s7JkXLPqaWb18aYHfp Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_6", "Undead_7", "Undead_8", "Undead_9", "Undead_10"] | |
16 | 16 | let classGame = ["Undead"] | |
17 | 17 | let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"] | |
18 | + | let hd = ScriptTransfer(Address(base58'3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx'), 1, base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5AS') | |
19 | + | let hjk = base58'mwsu' | |
18 | 20 | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
19 | 21 | case t: String => | |
20 | 22 | t | |
143 | 145 | func foldFunc (acc,e) = (acc + e) | |
144 | 146 | ||
145 | 147 | let resultVerifyStatusCards = { | |
146 | - | let $ | |
147 | - | let $ | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
148 | + | let $list49374971 = statusCards | |
149 | + | let $size49374971 = size($list49374971) | |
150 | + | let $acc049374971 = 0 | |
151 | + | if (($size49374971 == 0)) | |
152 | + | then $acc049374971 | |
151 | 153 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
154 | + | let $acc149374971 = foldFunc($acc049374971, $list49374971[0]) | |
155 | + | if (($size49374971 == 1)) | |
156 | + | then $acc149374971 | |
155 | 157 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
158 | + | let $acc249374971 = foldFunc($acc149374971, $list49374971[1]) | |
159 | + | if (($size49374971 == 2)) | |
160 | + | then $acc249374971 | |
159 | 161 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
162 | + | let $acc349374971 = foldFunc($acc249374971, $list49374971[2]) | |
163 | + | if (($size49374971 == 3)) | |
164 | + | then $acc349374971 | |
163 | 165 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
166 | + | let $acc449374971 = foldFunc($acc349374971, $list49374971[3]) | |
167 | + | if (($size49374971 == 4)) | |
168 | + | then $acc449374971 | |
167 | 169 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
170 | + | let $acc549374971 = foldFunc($acc449374971, $list49374971[4]) | |
171 | + | if (($size49374971 == 5)) | |
172 | + | then $acc549374971 | |
171 | 173 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
174 | + | let $acc649374971 = foldFunc($acc549374971, $list49374971[5]) | |
175 | + | if (($size49374971 == 6)) | |
176 | + | then $acc649374971 | |
175 | 177 | else { | |
176 | - | let $ | |
177 | - | if (($ | |
178 | - | then $ | |
178 | + | let $acc749374971 = foldFunc($acc649374971, $list49374971[6]) | |
179 | + | if (($size49374971 == 7)) | |
180 | + | then $acc749374971 | |
179 | 181 | else { | |
180 | - | let $ | |
181 | - | if (($ | |
182 | - | then $ | |
182 | + | let $acc849374971 = foldFunc($acc749374971, $list49374971[7]) | |
183 | + | if (($size49374971 == 8)) | |
184 | + | then $acc849374971 | |
183 | 185 | else { | |
184 | - | let $ | |
185 | - | if (($ | |
186 | - | then $ | |
186 | + | let $acc949374971 = foldFunc($acc849374971, $list49374971[8]) | |
187 | + | if (($size49374971 == 9)) | |
188 | + | then $acc949374971 | |
187 | 189 | else { | |
188 | - | let $ | |
189 | - | if (($ | |
190 | - | then $ | |
190 | + | let $acc1049374971 = foldFunc($acc949374971, $list49374971[9]) | |
191 | + | if (($size49374971 == 10)) | |
192 | + | then $acc1049374971 | |
191 | 193 | else { | |
192 | - | let $ | |
194 | + | let $acc1149374971 = foldFunc($acc1049374971, $list49374971[10]) | |
193 | 195 | throw("List size exceed 10") | |
194 | 196 | } | |
195 | 197 | } | |
207 | 209 | then true | |
208 | 210 | else !(containsElement(cardsGame, cardName))) | |
209 | 211 | then throw("A classe enviada não existe no game! Por favor verifique suas cartas!") | |
210 | - | else if ((payAmount != 10000000)) | |
211 | - | then throw("Cada jogada possui um valor fixo de 0.01 waves.") | |
212 | - | else if ((0 >= assetBalance(currentKey, undead))) | |
213 | - | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
214 | - | else if (if ((cardInTheArena == "")) | |
215 | - | then true | |
216 | - | else (playerInTheArena == "")) | |
217 | - | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
218 | - | else if ((currentCardStatus == "Used")) | |
219 | - | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
220 | - | else { | |
221 | - | let winner = if ((currentCardScore > arenaCardScore)) | |
222 | - | then currentKeyBytes | |
223 | - | else playerInTheArena | |
224 | - | let winningCard = if ((currentCardScore > arenaCardScore)) | |
225 | - | then cardName | |
226 | - | else cardInTheArena | |
227 | - | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
228 | - | then (currentCardScore - arenaCardScore) | |
229 | - | else (arenaCardScore - currentCardScore) | |
230 | - | let rewardValue = if ((winner == currentKeyBytes)) | |
231 | - | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
232 | - | else if ((winner == playerInTheArena)) | |
233 | - | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
234 | - | else throw("Código 010105. Contate o suporte!") | |
212 | + | else if (true) | |
213 | + | then throw(toBase64String(hjk)) | |
214 | + | else if ((payAmount != 10000000)) | |
215 | + | then throw("Cada jogada possui um valor fixo de 0.01 waves.") | |
216 | + | else if ((0 >= assetBalance(currentKey, undead))) | |
217 | + | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
218 | + | else if (if ((cardInTheArena == "")) | |
219 | + | then true | |
220 | + | else (playerInTheArena == "")) | |
221 | + | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
222 | + | else if ((currentCardStatus == "Used")) | |
223 | + | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
224 | + | else { | |
225 | + | let winner = if ((currentCardScore > arenaCardScore)) | |
226 | + | then currentKeyBytes | |
227 | + | else playerInTheArena | |
228 | + | let winningCard = if ((currentCardScore > arenaCardScore)) | |
229 | + | then cardName | |
230 | + | else cardInTheArena | |
231 | + | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
232 | + | then (currentCardScore - arenaCardScore) | |
233 | + | else (arenaCardScore - currentCardScore) | |
234 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
235 | + | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
236 | + | else if ((winner == playerInTheArena)) | |
237 | + | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
238 | + | else throw("Código 010105. Contate o suporte!") | |
235 | 239 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
236 | - | then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "") | |
237 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
238 | - | then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "") | |
239 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
240 | - | then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "") | |
241 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
242 | - | then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "") | |
243 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
244 | - | then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "") | |
245 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
246 | - | then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "") | |
247 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
248 | - | then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "") | |
249 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
250 | - | then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "") | |
251 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
252 | - | then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "") | |
253 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
254 | - | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
255 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
256 | - | } | |
240 | + | then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "") | |
241 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
242 | + | then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "") | |
243 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
244 | + | then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "") | |
245 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
246 | + | then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "") | |
247 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
248 | + | then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "") | |
249 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
250 | + | then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "") | |
251 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
252 | + | then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "") | |
253 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
254 | + | then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "") | |
255 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
256 | + | then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "") | |
257 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
258 | + | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
259 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
260 | + | } | |
257 | 261 | } | |
258 | 262 | ||
259 | 263 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(inv) | |
7 | 7 | func play (card,class) = { | |
8 | 8 | let transactionId = toBase58String(inv.transactionId) | |
9 | 9 | let currentKey = inv.caller | |
10 | 10 | let payAmount = value(inv.payments[0].amount) | |
11 | 11 | let currentKeyBytes = toBase58String(inv.caller.bytes) | |
12 | 12 | let cardName = ((class + "_") + card) | |
13 | 13 | let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes) | |
14 | 14 | let undead = base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY' | |
15 | 15 | let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_6", "Undead_7", "Undead_8", "Undead_9", "Undead_10"] | |
16 | 16 | let classGame = ["Undead"] | |
17 | 17 | let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"] | |
18 | + | let hd = ScriptTransfer(Address(base58'3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx'), 1, base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5AS') | |
19 | + | let hjk = base58'mwsu' | |
18 | 20 | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
19 | 21 | case t: String => | |
20 | 22 | t | |
21 | 23 | case _ => | |
22 | 24 | "" | |
23 | 25 | } | |
24 | 26 | let currentCardScore = match getInteger(this, cardName) { | |
25 | 27 | case t: Int => | |
26 | 28 | t | |
27 | 29 | case _ => | |
28 | 30 | 0 | |
29 | 31 | } | |
30 | 32 | let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes) | |
31 | 33 | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
32 | 34 | case t: Int => | |
33 | 35 | t | |
34 | 36 | case _ => | |
35 | 37 | 0 | |
36 | 38 | } | |
37 | 39 | let playerInTheArena = match getString(this, "playerInTheArena") { | |
38 | 40 | case t: String => | |
39 | 41 | t | |
40 | 42 | case _ => | |
41 | 43 | "" | |
42 | 44 | } | |
43 | 45 | let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena) | |
44 | 46 | let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) { | |
45 | 47 | case t: Int => | |
46 | 48 | t | |
47 | 49 | case _ => | |
48 | 50 | 0 | |
49 | 51 | } | |
50 | 52 | let cardInTheArena = match getString(this, "cardInTheArena") { | |
51 | 53 | case t: String => | |
52 | 54 | t | |
53 | 55 | case _ => | |
54 | 56 | "" | |
55 | 57 | } | |
56 | 58 | let arenaCardScore = match getInteger(this, "arenaCardScore") { | |
57 | 59 | case t: Int => | |
58 | 60 | t | |
59 | 61 | case _ => | |
60 | 62 | 0 | |
61 | 63 | } | |
62 | 64 | let statusCard1 = if (( match getString(this, ((("status_" + class) + "_1_") + currentKeyBytes)) { | |
63 | 65 | case t: String => | |
64 | 66 | t | |
65 | 67 | case _ => | |
66 | 68 | "" | |
67 | 69 | } == "Used")) | |
68 | 70 | then 1 | |
69 | 71 | else 0 | |
70 | 72 | let statusCard2 = if (( match getString(this, ((("status_" + class) + "_2_") + currentKeyBytes)) { | |
71 | 73 | case t: String => | |
72 | 74 | t | |
73 | 75 | case _ => | |
74 | 76 | "" | |
75 | 77 | } == "Used")) | |
76 | 78 | then 1 | |
77 | 79 | else 0 | |
78 | 80 | let statusCard3 = if (( match getString(this, ((("status_" + class) + "_3_") + currentKeyBytes)) { | |
79 | 81 | case t: String => | |
80 | 82 | t | |
81 | 83 | case _ => | |
82 | 84 | "" | |
83 | 85 | } == "Used")) | |
84 | 86 | then 1 | |
85 | 87 | else 0 | |
86 | 88 | let statusCard4 = if (( match getString(this, ((("status_" + class) + "_4_") + currentKeyBytes)) { | |
87 | 89 | case t: String => | |
88 | 90 | t | |
89 | 91 | case _ => | |
90 | 92 | "" | |
91 | 93 | } == "Used")) | |
92 | 94 | then 1 | |
93 | 95 | else 0 | |
94 | 96 | let statusCard5 = if (( match getString(this, ((("status_" + class) + "_5_") + currentKeyBytes)) { | |
95 | 97 | case t: String => | |
96 | 98 | t | |
97 | 99 | case _ => | |
98 | 100 | "" | |
99 | 101 | } == "Used")) | |
100 | 102 | then 1 | |
101 | 103 | else 0 | |
102 | 104 | let statusCard6 = if (( match getString(this, ((("status_" + class) + "_6_") + currentKeyBytes)) { | |
103 | 105 | case t: String => | |
104 | 106 | t | |
105 | 107 | case _ => | |
106 | 108 | "" | |
107 | 109 | } == "Used")) | |
108 | 110 | then 1 | |
109 | 111 | else 0 | |
110 | 112 | let statusCard7 = if (( match getString(this, ((("status_" + class) + "_7_") + currentKeyBytes)) { | |
111 | 113 | case t: String => | |
112 | 114 | t | |
113 | 115 | case _ => | |
114 | 116 | "" | |
115 | 117 | } == "Used")) | |
116 | 118 | then 1 | |
117 | 119 | else 0 | |
118 | 120 | let statusCard8 = if (( match getString(this, ((("status_" + class) + "_8_") + currentKeyBytes)) { | |
119 | 121 | case t: String => | |
120 | 122 | t | |
121 | 123 | case _ => | |
122 | 124 | "" | |
123 | 125 | } == "Used")) | |
124 | 126 | then 1 | |
125 | 127 | else 0 | |
126 | 128 | let statusCard9 = if (( match getString(this, ((("status_" + class) + "_9_") + currentKeyBytes)) { | |
127 | 129 | case t: String => | |
128 | 130 | t | |
129 | 131 | case _ => | |
130 | 132 | "" | |
131 | 133 | } == "Used")) | |
132 | 134 | then 1 | |
133 | 135 | else 0 | |
134 | 136 | let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) { | |
135 | 137 | case t: String => | |
136 | 138 | t | |
137 | 139 | case _ => | |
138 | 140 | "" | |
139 | 141 | } == "Used")) | |
140 | 142 | then 1 | |
141 | 143 | else 0 | |
142 | 144 | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
143 | 145 | func foldFunc (acc,e) = (acc + e) | |
144 | 146 | ||
145 | 147 | let resultVerifyStatusCards = { | |
146 | - | let $ | |
147 | - | let $ | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
148 | + | let $list49374971 = statusCards | |
149 | + | let $size49374971 = size($list49374971) | |
150 | + | let $acc049374971 = 0 | |
151 | + | if (($size49374971 == 0)) | |
152 | + | then $acc049374971 | |
151 | 153 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
154 | + | let $acc149374971 = foldFunc($acc049374971, $list49374971[0]) | |
155 | + | if (($size49374971 == 1)) | |
156 | + | then $acc149374971 | |
155 | 157 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
158 | + | let $acc249374971 = foldFunc($acc149374971, $list49374971[1]) | |
159 | + | if (($size49374971 == 2)) | |
160 | + | then $acc249374971 | |
159 | 161 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
162 | + | let $acc349374971 = foldFunc($acc249374971, $list49374971[2]) | |
163 | + | if (($size49374971 == 3)) | |
164 | + | then $acc349374971 | |
163 | 165 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
166 | + | let $acc449374971 = foldFunc($acc349374971, $list49374971[3]) | |
167 | + | if (($size49374971 == 4)) | |
168 | + | then $acc449374971 | |
167 | 169 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
170 | + | let $acc549374971 = foldFunc($acc449374971, $list49374971[4]) | |
171 | + | if (($size49374971 == 5)) | |
172 | + | then $acc549374971 | |
171 | 173 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
174 | + | let $acc649374971 = foldFunc($acc549374971, $list49374971[5]) | |
175 | + | if (($size49374971 == 6)) | |
176 | + | then $acc649374971 | |
175 | 177 | else { | |
176 | - | let $ | |
177 | - | if (($ | |
178 | - | then $ | |
178 | + | let $acc749374971 = foldFunc($acc649374971, $list49374971[6]) | |
179 | + | if (($size49374971 == 7)) | |
180 | + | then $acc749374971 | |
179 | 181 | else { | |
180 | - | let $ | |
181 | - | if (($ | |
182 | - | then $ | |
182 | + | let $acc849374971 = foldFunc($acc749374971, $list49374971[7]) | |
183 | + | if (($size49374971 == 8)) | |
184 | + | then $acc849374971 | |
183 | 185 | else { | |
184 | - | let $ | |
185 | - | if (($ | |
186 | - | then $ | |
186 | + | let $acc949374971 = foldFunc($acc849374971, $list49374971[8]) | |
187 | + | if (($size49374971 == 9)) | |
188 | + | then $acc949374971 | |
187 | 189 | else { | |
188 | - | let $ | |
189 | - | if (($ | |
190 | - | then $ | |
190 | + | let $acc1049374971 = foldFunc($acc949374971, $list49374971[9]) | |
191 | + | if (($size49374971 == 10)) | |
192 | + | then $acc1049374971 | |
191 | 193 | else { | |
192 | - | let $ | |
194 | + | let $acc1149374971 = foldFunc($acc1049374971, $list49374971[10]) | |
193 | 195 | throw("List size exceed 10") | |
194 | 196 | } | |
195 | 197 | } | |
196 | 198 | } | |
197 | 199 | } | |
198 | 200 | } | |
199 | 201 | } | |
200 | 202 | } | |
201 | 203 | } | |
202 | 204 | } | |
203 | 205 | } | |
204 | 206 | } | |
205 | 207 | } | |
206 | 208 | if (if (!(containsElement(classGame, class))) | |
207 | 209 | then true | |
208 | 210 | else !(containsElement(cardsGame, cardName))) | |
209 | 211 | then throw("A classe enviada não existe no game! Por favor verifique suas cartas!") | |
210 | - | else if ((payAmount != 10000000)) | |
211 | - | then throw("Cada jogada possui um valor fixo de 0.01 waves.") | |
212 | - | else if ((0 >= assetBalance(currentKey, undead))) | |
213 | - | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
214 | - | else if (if ((cardInTheArena == "")) | |
215 | - | then true | |
216 | - | else (playerInTheArena == "")) | |
217 | - | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
218 | - | else if ((currentCardStatus == "Used")) | |
219 | - | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
220 | - | else { | |
221 | - | let winner = if ((currentCardScore > arenaCardScore)) | |
222 | - | then currentKeyBytes | |
223 | - | else playerInTheArena | |
224 | - | let winningCard = if ((currentCardScore > arenaCardScore)) | |
225 | - | then cardName | |
226 | - | else cardInTheArena | |
227 | - | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
228 | - | then (currentCardScore - arenaCardScore) | |
229 | - | else (arenaCardScore - currentCardScore) | |
230 | - | let rewardValue = if ((winner == currentKeyBytes)) | |
231 | - | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
232 | - | else if ((winner == playerInTheArena)) | |
233 | - | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
234 | - | else throw("Código 010105. Contate o suporte!") | |
212 | + | else if (true) | |
213 | + | then throw(toBase64String(hjk)) | |
214 | + | else if ((payAmount != 10000000)) | |
215 | + | then throw("Cada jogada possui um valor fixo de 0.01 waves.") | |
216 | + | else if ((0 >= assetBalance(currentKey, undead))) | |
217 | + | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
218 | + | else if (if ((cardInTheArena == "")) | |
219 | + | then true | |
220 | + | else (playerInTheArena == "")) | |
221 | + | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
222 | + | else if ((currentCardStatus == "Used")) | |
223 | + | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
224 | + | else { | |
225 | + | let winner = if ((currentCardScore > arenaCardScore)) | |
226 | + | then currentKeyBytes | |
227 | + | else playerInTheArena | |
228 | + | let winningCard = if ((currentCardScore > arenaCardScore)) | |
229 | + | then cardName | |
230 | + | else cardInTheArena | |
231 | + | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
232 | + | then (currentCardScore - arenaCardScore) | |
233 | + | else (arenaCardScore - currentCardScore) | |
234 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
235 | + | then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance) | |
236 | + | else if ((winner == playerInTheArena)) | |
237 | + | then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance) | |
238 | + | else throw("Código 010105. Contate o suporte!") | |
235 | 239 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
236 | - | then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "") | |
237 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
238 | - | then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "") | |
239 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
240 | - | then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "") | |
241 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
242 | - | then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "") | |
243 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
244 | - | then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "") | |
245 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
246 | - | then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "") | |
247 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
248 | - | then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "") | |
249 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
250 | - | then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "") | |
251 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
252 | - | then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "") | |
253 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
254 | - | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
255 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
256 | - | } | |
240 | + | then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "") | |
241 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
242 | + | then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "") | |
243 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
244 | + | then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "") | |
245 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
246 | + | then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "") | |
247 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
248 | + | then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "") | |
249 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
250 | + | then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "") | |
251 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
252 | + | then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "") | |
253 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
254 | + | then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "") | |
255 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
256 | + | then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "") | |
257 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
258 | + | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
259 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
260 | + | } | |
257 | 261 | } | |
258 | 262 | ||
259 | 263 |
github/deemru/w8io/169f3d6 105.01 ms ◑