tx · E2BvC9T6r69WRoA4nudpRC4u6oWjyymSSui7Khs3MBbd 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX: -0.01000000 Waves 2021.08.10 18:56 [1652457] smart account 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX > SELF 0.00000000 Waves
{ "type": 13, "id": "E2BvC9T6r69WRoA4nudpRC4u6oWjyymSSui7Khs3MBbd", "fee": 1000000, "feeAssetId": null, "timestamp": 1628610966908, "version": 2, "chainId": 84, "sender": "3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX", "senderPublicKey": "FzLqgx3z1ige5YuhjR5esJe6Ug78Eq1Nwezof8APt4h4", "proofs": [ "4ccgsd63nUQNHn2TTg37Y7147BXsQVpe741itAJock5bUKSGUEFCC6SNGuCJ9EPLmX9ekMeQ9KJdoQhqhkYt6ERt" ], "script": "base64:AAIFAAAAAAAABSsIAhIECgIICBoJCgJhMRIDaW52GgoKAmEyEgRjYXJkGgsKAmEzEgVjbGFzcxoTCgJhNBINdHJhbnNhY3Rpb25JZBoQCgJhNRIKY3VycmVudEtleRoPCgJhNhIJcGF5QW1vdW50GhUKAmE3Eg9jdXJyZW50S2V5Qnl0ZXMaDgoCYTgSCGNhcmROYW1lGhsKAmE5EhVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIaEQoCYjESC2NhcmRzT3JhY2xlGg8KAmIyEgljYXJkc0dhbWUaDwoCYjMSCWNsYXNzR2FtZRoQCgJiNBIKYXNzZXRzR2FtZRoQCgJiNRIKaGlzdG9yaWNJZBoNCgJiNhIHJG1hdGNoMBoHCgJiNxIBdBoXCgJiOBIRY3VycmVudENhcmRTdGF0dXMaFgoCYjkSEGN1cnJlbnRDYXJkU2NvcmUaHQoCYzESF2N1cnJlbnRLZXlQbGF5ZXJCYWxhbmNlGhoKAmMyEhRjdXJyZW50UGxheWVyQmFsYW5jZRoWCgJjMxIQcGxheWVySW5UaGVBcmVuYRobCgJjNBIVYXJlbmFLZXlQbGF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AAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEHsiaGlzdG9yaWNJZCI6ICIJAAGkAAAAAQUAAAACaDICAAAAFSIsICJ0cmFuc2FjdGlvbklkIjogIgUAAAACYTQCAAAAFCIsICJwbGF5ZXJBdHRhY2siOiAiBQAAAAJhNwIAAAAYIiwgInBsYXllckluVGhlQXJlbmEiOiAiBQAAAAJjMwIAAAAQIiwgInVzZWRDYXJkIjogIgUAAAACYTgCAAAAFiIsICJjYXJkSW5UaGVBcmVuYSI6ICIFAAAAAmM2AgAAABYiLCAiYXJlbmFDYXJkU2NvcmUiOiAiCQABpAAAAAEFAAAAAmM3AgAAAA4iLCAid2lubmVyIjogIgUAAAACZzMCAAAAEyIsICJ3aW5uaW5nQ2FyZCI6ICIFAAAAAmc1AgAAABAiLCAiZGVmZWF0ZWQiOiAiBQAAAAJnNAIAAAAUIiwgImRlZmVhdGVkQ2FyZCI6ICIFAAAAAmc2AgAAACQiLCAicG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZCI6ICIJAAGkAAAAAQUAAAACZzcCAAAAESIsICJ3aW5SZXdhcmQiOiAiCQABpAAAAAEFAAAAAmc4AgAAABQiLCAiZGVmZWF0UmV3YXJkIjogIgkAAaQAAAABBQAAAAJoMQIAAAACIn0JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAdzdGF0dXNfBQAAAAJhOQIAAAAEVXNlZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAKaGlzdG9yaWNJZAUAAAACaDIFAAAAA25pbAAAAACuxlPD", "height": 1652457, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HfHpx3PwsPCtXhzFb71z3rM18LqqmXHWaNLqyCZ9PidY Next: AyAEaYAVAM1uuyom2cZ7n3s19t5BkrFHeZSseqsLN8BA Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(inv) | |
7 | - | func play (card,class | |
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) | |
156 | 156 | func foldFunc (acc,e) = (acc + e) | |
157 | 157 | ||
158 | 158 | let resultVerifyStatusCards = { | |
159 | - | let $ | |
160 | - | let $ | |
161 | - | let $ | |
162 | - | if (($ | |
163 | - | then $ | |
159 | + | let $list51565190 = statusCards | |
160 | + | let $size51565190 = size($list51565190) | |
161 | + | let $acc051565190 = 0 | |
162 | + | if (($size51565190 == 0)) | |
163 | + | then $acc051565190 | |
164 | 164 | else { | |
165 | - | let $ | |
166 | - | if (($ | |
167 | - | then $ | |
165 | + | let $acc151565190 = foldFunc($acc051565190, $list51565190[0]) | |
166 | + | if (($size51565190 == 1)) | |
167 | + | then $acc151565190 | |
168 | 168 | else { | |
169 | - | let $ | |
170 | - | if (($ | |
171 | - | then $ | |
169 | + | let $acc251565190 = foldFunc($acc151565190, $list51565190[1]) | |
170 | + | if (($size51565190 == 2)) | |
171 | + | then $acc251565190 | |
172 | 172 | else { | |
173 | - | let $ | |
174 | - | if (($ | |
175 | - | then $ | |
173 | + | let $acc351565190 = foldFunc($acc251565190, $list51565190[2]) | |
174 | + | if (($size51565190 == 3)) | |
175 | + | then $acc351565190 | |
176 | 176 | else { | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
177 | + | let $acc451565190 = foldFunc($acc351565190, $list51565190[3]) | |
178 | + | if (($size51565190 == 4)) | |
179 | + | then $acc451565190 | |
180 | 180 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
181 | + | let $acc551565190 = foldFunc($acc451565190, $list51565190[4]) | |
182 | + | if (($size51565190 == 5)) | |
183 | + | then $acc551565190 | |
184 | 184 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
185 | + | let $acc651565190 = foldFunc($acc551565190, $list51565190[5]) | |
186 | + | if (($size51565190 == 6)) | |
187 | + | then $acc651565190 | |
188 | 188 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
189 | + | let $acc751565190 = foldFunc($acc651565190, $list51565190[6]) | |
190 | + | if (($size51565190 == 7)) | |
191 | + | then $acc751565190 | |
192 | 192 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
193 | + | let $acc851565190 = foldFunc($acc751565190, $list51565190[7]) | |
194 | + | if (($size51565190 == 8)) | |
195 | + | then $acc851565190 | |
196 | 196 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
197 | + | let $acc951565190 = foldFunc($acc851565190, $list51565190[8]) | |
198 | + | if (($size51565190 == 9)) | |
199 | + | then $acc951565190 | |
200 | 200 | else { | |
201 | - | let $ | |
202 | - | if (($ | |
203 | - | then $ | |
201 | + | let $acc1051565190 = foldFunc($acc951565190, $list51565190[9]) | |
202 | + | if (($size51565190 == 10)) | |
203 | + | then $acc1051565190 | |
204 | 204 | else { | |
205 | - | let $ | |
205 | + | let $acc1151565190 = foldFunc($acc1051565190, $list51565190[10]) | |
206 | 206 | throw("List size exceed 10") | |
207 | 207 | } | |
208 | 208 | } |
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 | - | func play (card,class | |
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 cardsOracle = base58'CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef' | |
15 | 15 | let cardsGame = ["Card_100", "Card_200", "Card_300", "Card_400", "Card_500", "Card_600", "Card_700", "Card_800", "Card_900", "Card_1000"] | |
16 | 16 | let classGame = ["Card"] | |
17 | 17 | let assetsGame = ["CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef"] | |
18 | 18 | let historicId = match getInteger(this, "historicId") { | |
19 | 19 | case t: Int => | |
20 | 20 | t | |
21 | 21 | case _ => | |
22 | 22 | 0 | |
23 | 23 | } | |
24 | 24 | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
25 | 25 | case t: String => | |
26 | 26 | t | |
27 | 27 | case _ => | |
28 | 28 | "" | |
29 | 29 | } | |
30 | 30 | let currentCardScore = match getInteger(this, cardName) { | |
31 | 31 | case t: Int => | |
32 | 32 | t | |
33 | 33 | case _ => | |
34 | 34 | 0 | |
35 | 35 | } | |
36 | 36 | let currentKeyPlayerBalance = ("balance_reward_" + currentKeyBytes) | |
37 | 37 | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
38 | 38 | case t: Int => | |
39 | 39 | t | |
40 | 40 | case _ => | |
41 | 41 | 0 | |
42 | 42 | } | |
43 | 43 | let playerInTheArena = match getString(this, "playerInTheArena") { | |
44 | 44 | case t: String => | |
45 | 45 | t | |
46 | 46 | case _ => | |
47 | 47 | "" | |
48 | 48 | } | |
49 | 49 | let arenaKeyPlayerBalance = ("balance_reward_" + playerInTheArena) | |
50 | 50 | let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) { | |
51 | 51 | case t: Int => | |
52 | 52 | t | |
53 | 53 | case _ => | |
54 | 54 | 0 | |
55 | 55 | } | |
56 | 56 | let cardInTheArena = match getString(this, "cardInTheArena") { | |
57 | 57 | case t: String => | |
58 | 58 | t | |
59 | 59 | case _ => | |
60 | 60 | "" | |
61 | 61 | } | |
62 | 62 | let arenaCardScore = match getInteger(this, "arenaCardScore") { | |
63 | 63 | case t: Int => | |
64 | 64 | t | |
65 | 65 | case _ => | |
66 | 66 | 0 | |
67 | 67 | } | |
68 | 68 | let statusCard1 = if (( match getString(this, ((("status_" + class) + "_100_") + currentKeyBytes)) { | |
69 | 69 | case t: String => | |
70 | 70 | t | |
71 | 71 | case _ => | |
72 | 72 | "" | |
73 | 73 | } == "Used")) | |
74 | 74 | then 1 | |
75 | 75 | else 0 | |
76 | 76 | let statusCard2 = if (( match getString(this, ((("status_" + class) + "_200_") + currentKeyBytes)) { | |
77 | 77 | case t: String => | |
78 | 78 | t | |
79 | 79 | case _ => | |
80 | 80 | "" | |
81 | 81 | } == "Used")) | |
82 | 82 | then 1 | |
83 | 83 | else 0 | |
84 | 84 | let statusCard3 = if (( match getString(this, ((("status_" + class) + "_300_") + currentKeyBytes)) { | |
85 | 85 | case t: String => | |
86 | 86 | t | |
87 | 87 | case _ => | |
88 | 88 | "" | |
89 | 89 | } == "Used")) | |
90 | 90 | then 1 | |
91 | 91 | else 0 | |
92 | 92 | let statusCard4 = if (( match getString(this, ((("status_" + class) + "_400_") + currentKeyBytes)) { | |
93 | 93 | case t: String => | |
94 | 94 | t | |
95 | 95 | case _ => | |
96 | 96 | "" | |
97 | 97 | } == "Used")) | |
98 | 98 | then 1 | |
99 | 99 | else 0 | |
100 | 100 | let statusCard5 = if (( match getString(this, ((("status_" + class) + "_500_") + currentKeyBytes)) { | |
101 | 101 | case t: String => | |
102 | 102 | t | |
103 | 103 | case _ => | |
104 | 104 | "" | |
105 | 105 | } == "Used")) | |
106 | 106 | then 1 | |
107 | 107 | else 0 | |
108 | 108 | let statusCard6 = if (( match getString(this, ((("status_" + class) + "_600_") + currentKeyBytes)) { | |
109 | 109 | case t: String => | |
110 | 110 | t | |
111 | 111 | case _ => | |
112 | 112 | "" | |
113 | 113 | } == "Used")) | |
114 | 114 | then 1 | |
115 | 115 | else 0 | |
116 | 116 | let statusCard7 = if (( match getString(this, ((("status_" + class) + "_700_") + currentKeyBytes)) { | |
117 | 117 | case t: String => | |
118 | 118 | t | |
119 | 119 | case _ => | |
120 | 120 | "" | |
121 | 121 | } == "Used")) | |
122 | 122 | then 1 | |
123 | 123 | else 0 | |
124 | 124 | let statusCard8 = if (( match getString(this, ((("status_" + class) + "_800_") + currentKeyBytes)) { | |
125 | 125 | case t: String => | |
126 | 126 | t | |
127 | 127 | case _ => | |
128 | 128 | "" | |
129 | 129 | } == "Used")) | |
130 | 130 | then 1 | |
131 | 131 | else 0 | |
132 | 132 | let statusCard9 = if (( match getString(this, ((("status_" + class) + "_900_") + currentKeyBytes)) { | |
133 | 133 | case t: String => | |
134 | 134 | t | |
135 | 135 | case _ => | |
136 | 136 | "" | |
137 | 137 | } == "Used")) | |
138 | 138 | then 1 | |
139 | 139 | else 0 | |
140 | 140 | let statusCard10 = if (( match getString(this, ((("status_" + class) + "_1000_") + currentKeyBytes)) { | |
141 | 141 | case t: String => | |
142 | 142 | t | |
143 | 143 | case _ => | |
144 | 144 | "" | |
145 | 145 | } == "Used")) | |
146 | 146 | then 1 | |
147 | 147 | else 0 | |
148 | 148 | let purchasedTokens = match getInteger(this, ("purchased tokens_" + currentKeyBytes)) { | |
149 | 149 | case t: Int => | |
150 | 150 | t | |
151 | 151 | case _ => | |
152 | 152 | 0 | |
153 | 153 | } | |
154 | 154 | let newPurchasedTokensBalance = parseBigIntValue(card) | |
155 | 155 | let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10] | |
156 | 156 | func foldFunc (acc,e) = (acc + e) | |
157 | 157 | ||
158 | 158 | let resultVerifyStatusCards = { | |
159 | - | let $ | |
160 | - | let $ | |
161 | - | let $ | |
162 | - | if (($ | |
163 | - | then $ | |
159 | + | let $list51565190 = statusCards | |
160 | + | let $size51565190 = size($list51565190) | |
161 | + | let $acc051565190 = 0 | |
162 | + | if (($size51565190 == 0)) | |
163 | + | then $acc051565190 | |
164 | 164 | else { | |
165 | - | let $ | |
166 | - | if (($ | |
167 | - | then $ | |
165 | + | let $acc151565190 = foldFunc($acc051565190, $list51565190[0]) | |
166 | + | if (($size51565190 == 1)) | |
167 | + | then $acc151565190 | |
168 | 168 | else { | |
169 | - | let $ | |
170 | - | if (($ | |
171 | - | then $ | |
169 | + | let $acc251565190 = foldFunc($acc151565190, $list51565190[1]) | |
170 | + | if (($size51565190 == 2)) | |
171 | + | then $acc251565190 | |
172 | 172 | else { | |
173 | - | let $ | |
174 | - | if (($ | |
175 | - | then $ | |
173 | + | let $acc351565190 = foldFunc($acc251565190, $list51565190[2]) | |
174 | + | if (($size51565190 == 3)) | |
175 | + | then $acc351565190 | |
176 | 176 | else { | |
177 | - | let $ | |
178 | - | if (($ | |
179 | - | then $ | |
177 | + | let $acc451565190 = foldFunc($acc351565190, $list51565190[3]) | |
178 | + | if (($size51565190 == 4)) | |
179 | + | then $acc451565190 | |
180 | 180 | else { | |
181 | - | let $ | |
182 | - | if (($ | |
183 | - | then $ | |
181 | + | let $acc551565190 = foldFunc($acc451565190, $list51565190[4]) | |
182 | + | if (($size51565190 == 5)) | |
183 | + | then $acc551565190 | |
184 | 184 | else { | |
185 | - | let $ | |
186 | - | if (($ | |
187 | - | then $ | |
185 | + | let $acc651565190 = foldFunc($acc551565190, $list51565190[5]) | |
186 | + | if (($size51565190 == 6)) | |
187 | + | then $acc651565190 | |
188 | 188 | else { | |
189 | - | let $ | |
190 | - | if (($ | |
191 | - | then $ | |
189 | + | let $acc751565190 = foldFunc($acc651565190, $list51565190[6]) | |
190 | + | if (($size51565190 == 7)) | |
191 | + | then $acc751565190 | |
192 | 192 | else { | |
193 | - | let $ | |
194 | - | if (($ | |
195 | - | then $ | |
193 | + | let $acc851565190 = foldFunc($acc751565190, $list51565190[7]) | |
194 | + | if (($size51565190 == 8)) | |
195 | + | then $acc851565190 | |
196 | 196 | else { | |
197 | - | let $ | |
198 | - | if (($ | |
199 | - | then $ | |
197 | + | let $acc951565190 = foldFunc($acc851565190, $list51565190[8]) | |
198 | + | if (($size51565190 == 9)) | |
199 | + | then $acc951565190 | |
200 | 200 | else { | |
201 | - | let $ | |
202 | - | if (($ | |
203 | - | then $ | |
201 | + | let $acc1051565190 = foldFunc($acc951565190, $list51565190[9]) | |
202 | + | if (($size51565190 == 10)) | |
203 | + | then $acc1051565190 | |
204 | 204 | else { | |
205 | - | let $ | |
205 | + | let $acc1151565190 = foldFunc($acc1051565190, $list51565190[10]) | |
206 | 206 | throw("List size exceed 10") | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | } | |
212 | 212 | } | |
213 | 213 | } | |
214 | 214 | } | |
215 | 215 | } | |
216 | 216 | } | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | if ((class == "Buy Tokens Oracle Arena")) | |
220 | 220 | then throw(toString(newPurchasedTokensBalance)) | |
221 | 221 | else if (if ((card == "Buy Cards")) | |
222 | 222 | then (payAmount == 100000000) | |
223 | 223 | else false) | |
224 | 224 | then [ScriptTransfer(currentKey, 10, cardsOracle)] | |
225 | 225 | else if (if (!(containsElement(classGame, class))) | |
226 | 226 | then true | |
227 | 227 | else !(containsElement(cardsGame, cardName))) | |
228 | 228 | then throw("The card sent does not exist in the game! Please check your cards!") | |
229 | 229 | else if ((payAmount != 10000000)) | |
230 | 230 | then throw("Each move has a fixed value of 1 token.") | |
231 | 231 | else if ((0 >= assetBalance(currentKey, cardsOracle))) | |
232 | 232 | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
233 | 233 | else if (if ((cardInTheArena == "")) | |
234 | 234 | then true | |
235 | 235 | else (playerInTheArena == "")) | |
236 | 236 | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")] | |
237 | 237 | else if ((currentCardStatus == "Used")) | |
238 | 238 | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
239 | 239 | else { | |
240 | 240 | let winner = if ((currentCardScore > arenaCardScore)) | |
241 | 241 | then currentKeyBytes | |
242 | 242 | else playerInTheArena | |
243 | 243 | let defeated = if ((arenaCardScore > currentCardScore)) | |
244 | 244 | then currentKeyBytes | |
245 | 245 | else if ((currentCardScore > arenaCardScore)) | |
246 | 246 | then playerInTheArena | |
247 | 247 | else currentKeyBytes | |
248 | 248 | let winningCard = if ((currentCardScore > arenaCardScore)) | |
249 | 249 | then cardName | |
250 | 250 | else cardInTheArena | |
251 | 251 | let defeatedCard = if ((arenaCardScore > currentCardScore)) | |
252 | 252 | then cardName | |
253 | 253 | else if ((currentCardScore > arenaCardScore)) | |
254 | 254 | then cardInTheArena | |
255 | 255 | else currentKeyBytes | |
256 | 256 | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
257 | 257 | then (currentCardScore - arenaCardScore) | |
258 | 258 | else (arenaCardScore - currentCardScore) | |
259 | 259 | let winReward = if ((currentCardScore > arenaCardScore)) | |
260 | 260 | then payAmount | |
261 | 261 | else (payAmount / 2) | |
262 | 262 | let rewardValue = if ((winner == currentKeyBytes)) | |
263 | 263 | then (winReward + currentPlayerBalance) | |
264 | 264 | else if ((winner == playerInTheArena)) | |
265 | 265 | then (winReward + arenaPlayerBalance) | |
266 | 266 | else throw("Código 010105. Contate o suporte!") | |
267 | 267 | let defeatReward = 0 | |
268 | 268 | let newHistoricId = (historicId + 1) | |
269 | 269 | [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
270 | 270 | then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "") | |
271 | 271 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
272 | 272 | then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "") | |
273 | 273 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
274 | 274 | then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "") | |
275 | 275 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
276 | 276 | then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "") | |
277 | 277 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
278 | 278 | then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "") | |
279 | 279 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
280 | 280 | then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "") | |
281 | 281 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
282 | 282 | then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "") | |
283 | 283 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
284 | 284 | then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "") | |
285 | 285 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
286 | 286 | then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "") | |
287 | 287 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
288 | 288 | then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "") | |
289 | 289 | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)] | |
290 | 290 | } | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 |
github/deemru/w8io/026f985 83.89 ms ◑