tx · GsWJ9o3vacbzEfdtjck5jQYfMqvvmiLzAngghKMCML4A 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA: -0.01000000 Waves 2021.07.25 08:16 [1628742] smart account 3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA > SELF 0.00000000 Waves
{ "type": 13, "id": "GsWJ9o3vacbzEfdtjck5jQYfMqvvmiLzAngghKMCML4A", "fee": 1000000, "feeAssetId": null, "timestamp": 1627190204349, "version": 2, "chainId": 84, "sender": "3N3mV2Baor8EY7CYQ7QgAm3tL8KruH1VpKA", "senderPublicKey": "4P5V3b5K49wXNGa4M6SwDgHAMBa582FxTsF5qjWePQo3", "proofs": [ "3SLQ81coH7qRWsuyfiG6tNL3gEvqz9WCFZHGxWDAo2QyZSrXiaziShxUccfYQWp8ic84mc7kzaX77n8WA5jz6uRx" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZXlCeXRlcwQAA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AIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACXVzZWRDYXJkOgUAAAAIY2FyZE5hbWUCAAAACS8gd2lubmVyOgUAAAAGd2lubmVyAgAAAA4vIHdpbm5pbmdDYXJkOgUAAAALd2lubmluZ0NhcmQCAAAAHy8gcG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZDoJAAGkAAAAAQUAAAAccG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAB3N0YXR1c18FAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgIAAAAEVXNlZAUAAAADbmlsAAAAAH8ORZc=", "height": 1628742, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hr3oHtKEQJWGZcQ14R16ZqfRnK8YRKCebj3s79A3Wsye Next: 7B3NtcMxiYb3uJhDQ5uRLi3F9DQbbnbfFySV4jx22atE Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | case _ => | |
28 | 28 | 0 | |
29 | 29 | } | |
30 | + | let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes) | |
31 | + | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
32 | + | case t: Int => | |
33 | + | t | |
34 | + | case _ => | |
35 | + | throw("Código 010101. Contate o suporte!") | |
36 | + | } | |
30 | 37 | let playerInTheArena = match getString(this, "playerInTheArena") { | |
31 | 38 | case t: String => | |
32 | 39 | t | |
33 | 40 | case _ => | |
34 | 41 | "" | |
42 | + | } | |
43 | + | let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena) | |
44 | + | let arenaPlayerBalance = match getInteger(this, cardName) { | |
45 | + | case t: Int => | |
46 | + | t | |
47 | + | case _ => | |
48 | + | throw("Código 010102. Contate o suporte!") | |
35 | 49 | } | |
36 | 50 | let cardInTheArena = match getString(this, "cardInTheArena") { | |
37 | 51 | case t: String => | |
129 | 143 | func foldFunc (acc,e) = (acc + e) | |
130 | 144 | ||
131 | 145 | let resultVerifyStatusCards = { | |
132 | - | let $ | |
133 | - | let $ | |
134 | - | let $ | |
135 | - | if (($ | |
136 | - | then $ | |
146 | + | let $list48764910 = statusCards | |
147 | + | let $size48764910 = size($list48764910) | |
148 | + | let $acc048764910 = 0 | |
149 | + | if (($size48764910 == 0)) | |
150 | + | then $acc048764910 | |
137 | 151 | else { | |
138 | - | let $ | |
139 | - | if (($ | |
140 | - | then $ | |
152 | + | let $acc148764910 = foldFunc($acc048764910, $list48764910[0]) | |
153 | + | if (($size48764910 == 1)) | |
154 | + | then $acc148764910 | |
141 | 155 | else { | |
142 | - | let $ | |
143 | - | if (($ | |
144 | - | then $ | |
156 | + | let $acc248764910 = foldFunc($acc148764910, $list48764910[1]) | |
157 | + | if (($size48764910 == 2)) | |
158 | + | then $acc248764910 | |
145 | 159 | else { | |
146 | - | let $ | |
147 | - | if (($ | |
148 | - | then $ | |
160 | + | let $acc348764910 = foldFunc($acc248764910, $list48764910[2]) | |
161 | + | if (($size48764910 == 3)) | |
162 | + | then $acc348764910 | |
149 | 163 | else { | |
150 | - | let $ | |
151 | - | if (($ | |
152 | - | then $ | |
164 | + | let $acc448764910 = foldFunc($acc348764910, $list48764910[3]) | |
165 | + | if (($size48764910 == 4)) | |
166 | + | then $acc448764910 | |
153 | 167 | else { | |
154 | - | let $ | |
155 | - | if (($ | |
156 | - | then $ | |
168 | + | let $acc548764910 = foldFunc($acc448764910, $list48764910[4]) | |
169 | + | if (($size48764910 == 5)) | |
170 | + | then $acc548764910 | |
157 | 171 | else { | |
158 | - | let $ | |
159 | - | if (($ | |
160 | - | then $ | |
172 | + | let $acc648764910 = foldFunc($acc548764910, $list48764910[5]) | |
173 | + | if (($size48764910 == 6)) | |
174 | + | then $acc648764910 | |
161 | 175 | else { | |
162 | - | let $ | |
163 | - | if (($ | |
164 | - | then $ | |
176 | + | let $acc748764910 = foldFunc($acc648764910, $list48764910[6]) | |
177 | + | if (($size48764910 == 7)) | |
178 | + | then $acc748764910 | |
165 | 179 | else { | |
166 | - | let $ | |
167 | - | if (($ | |
168 | - | then $ | |
180 | + | let $acc848764910 = foldFunc($acc748764910, $list48764910[7]) | |
181 | + | if (($size48764910 == 8)) | |
182 | + | then $acc848764910 | |
169 | 183 | else { | |
170 | - | let $ | |
171 | - | if (($ | |
172 | - | then $ | |
184 | + | let $acc948764910 = foldFunc($acc848764910, $list48764910[8]) | |
185 | + | if (($size48764910 == 9)) | |
186 | + | then $acc948764910 | |
173 | 187 | else { | |
174 | - | let $ | |
175 | - | if (($ | |
176 | - | then $ | |
188 | + | let $acc1048764910 = foldFunc($acc948764910, $list48764910[9]) | |
189 | + | if (($size48764910 == 10)) | |
190 | + | then $acc1048764910 | |
177 | 191 | else { | |
178 | - | let $ | |
192 | + | let $acc1148764910 = foldFunc($acc1048764910, $list48764910[10]) | |
179 | 193 | throw("List size exceed 10") | |
180 | 194 | } | |
181 | 195 | } | |
211 | 225 | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
212 | 226 | then (currentCardScore - arenaCardScore) | |
213 | 227 | else (arenaCardScore - currentCardScore) | |
214 | - | let rewardValue = (((payAmount * 19) / 10) / 2) | |
228 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
229 | + | then (currentPlayerBalance + (((payAmount * 19) / 10) / 2)) | |
230 | + | else if ((winner == playerInTheArena)) | |
231 | + | then (arenaPlayerBalance + (((payAmount * 19) / 10) / 2)) | |
232 | + | else throw("Código 010105. Contate o suporte!") | |
215 | 233 | [StringEntry("playerIntTheArena", winner), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
216 | 234 | then StringEntry(((("status_" + class) + "_01_") + currentKeyBytes), "") | |
217 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
235 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
218 | 236 | then StringEntry(((("status_" + class) + "_02_") + currentKeyBytes), "") | |
219 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
237 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
220 | 238 | then StringEntry(((("status_" + class) + "_03_") + currentKeyBytes), "") | |
221 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
239 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
222 | 240 | then StringEntry(((("status_" + class) + "_04_") + currentKeyBytes), "") | |
223 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
241 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
224 | 242 | then StringEntry(((("status_" + class) + "_05_") + currentKeyBytes), "") | |
225 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
243 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
226 | 244 | then StringEntry(((("status_" + class) + "_06_") + currentKeyBytes), "") | |
227 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
245 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
228 | 246 | then StringEntry(((("status_" + class) + "_07_") + currentKeyBytes), "") | |
229 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
247 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
230 | 248 | then StringEntry(((("status_" + class) + "_08_") + currentKeyBytes), "") | |
231 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
249 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
232 | 250 | then StringEntry(((("status_" + class) + "_09_") + currentKeyBytes), "") | |
233 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
251 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
234 | 252 | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
235 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), | |
253 | + | 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")] | |
236 | 254 | } | |
237 | 255 | } | |
238 | 256 |
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'3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk' | |
15 | 15 | let cardsGame = ["Undead_01", "Undead_02", "Undead_03", "Undead_04", "Undead_05", "Undead_07", "Undead_08", "Undead_09", "Undead_10"] | |
16 | 16 | let classGame = ["Undead"] | |
17 | 17 | let assetsGame = ["3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk"] | |
18 | 18 | let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) { | |
19 | 19 | case t: String => | |
20 | 20 | t | |
21 | 21 | case _ => | |
22 | 22 | "" | |
23 | 23 | } | |
24 | 24 | let currentCardScore = match getInteger(this, cardName) { | |
25 | 25 | case t: Int => | |
26 | 26 | t | |
27 | 27 | case _ => | |
28 | 28 | 0 | |
29 | 29 | } | |
30 | + | let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes) | |
31 | + | let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) { | |
32 | + | case t: Int => | |
33 | + | t | |
34 | + | case _ => | |
35 | + | throw("Código 010101. Contate o suporte!") | |
36 | + | } | |
30 | 37 | let playerInTheArena = match getString(this, "playerInTheArena") { | |
31 | 38 | case t: String => | |
32 | 39 | t | |
33 | 40 | case _ => | |
34 | 41 | "" | |
42 | + | } | |
43 | + | let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena) | |
44 | + | let arenaPlayerBalance = match getInteger(this, cardName) { | |
45 | + | case t: Int => | |
46 | + | t | |
47 | + | case _ => | |
48 | + | throw("Código 010102. Contate o suporte!") | |
35 | 49 | } | |
36 | 50 | let cardInTheArena = match getString(this, "cardInTheArena") { | |
37 | 51 | case t: String => | |
38 | 52 | t | |
39 | 53 | case _ => | |
40 | 54 | "" | |
41 | 55 | } | |
42 | 56 | let arenaCardScore = match getInteger(this, "arenaCardScore") { | |
43 | 57 | case t: Int => | |
44 | 58 | t | |
45 | 59 | case _ => | |
46 | 60 | 0 | |
47 | 61 | } | |
48 | 62 | let statusCard01 = if (( match getString(this, ((("status_" + class) + "_01_") + currentKeyBytes)) { | |
49 | 63 | case t: String => | |
50 | 64 | t | |
51 | 65 | case _ => | |
52 | 66 | "" | |
53 | 67 | } == "Used")) | |
54 | 68 | then 1 | |
55 | 69 | else 0 | |
56 | 70 | let statusCard02 = if (( match getString(this, ((("status_" + class) + "_02_") + currentKeyBytes)) { | |
57 | 71 | case t: String => | |
58 | 72 | t | |
59 | 73 | case _ => | |
60 | 74 | "" | |
61 | 75 | } == "Used")) | |
62 | 76 | then 1 | |
63 | 77 | else 0 | |
64 | 78 | let statusCard03 = if (( match getString(this, ((("status_" + class) + "_03_") + currentKeyBytes)) { | |
65 | 79 | case t: String => | |
66 | 80 | t | |
67 | 81 | case _ => | |
68 | 82 | "" | |
69 | 83 | } == "Used")) | |
70 | 84 | then 1 | |
71 | 85 | else 0 | |
72 | 86 | let statusCard04 = if (( match getString(this, ((("status_" + class) + "_04_") + currentKeyBytes)) { | |
73 | 87 | case t: String => | |
74 | 88 | t | |
75 | 89 | case _ => | |
76 | 90 | "" | |
77 | 91 | } == "Used")) | |
78 | 92 | then 1 | |
79 | 93 | else 0 | |
80 | 94 | let statusCard05 = if (( match getString(this, ((("status_" + class) + "_05_") + currentKeyBytes)) { | |
81 | 95 | case t: String => | |
82 | 96 | t | |
83 | 97 | case _ => | |
84 | 98 | "" | |
85 | 99 | } == "Used")) | |
86 | 100 | then 1 | |
87 | 101 | else 0 | |
88 | 102 | let statusCard06 = if (( match getString(this, ((("status_" + class) + "_06_") + currentKeyBytes)) { | |
89 | 103 | case t: String => | |
90 | 104 | t | |
91 | 105 | case _ => | |
92 | 106 | "" | |
93 | 107 | } == "Used")) | |
94 | 108 | then 1 | |
95 | 109 | else 0 | |
96 | 110 | let statusCard07 = if (( match getString(this, ((("status_" + class) + "_07_") + currentKeyBytes)) { | |
97 | 111 | case t: String => | |
98 | 112 | t | |
99 | 113 | case _ => | |
100 | 114 | "" | |
101 | 115 | } == "Used")) | |
102 | 116 | then 1 | |
103 | 117 | else 0 | |
104 | 118 | let statusCard08 = if (( match getString(this, ((("status_" + class) + "_08_") + currentKeyBytes)) { | |
105 | 119 | case t: String => | |
106 | 120 | t | |
107 | 121 | case _ => | |
108 | 122 | "" | |
109 | 123 | } == "Used")) | |
110 | 124 | then 1 | |
111 | 125 | else 0 | |
112 | 126 | let statusCard09 = if (( match getString(this, ((("status_" + class) + "_09_") + currentKeyBytes)) { | |
113 | 127 | case t: String => | |
114 | 128 | t | |
115 | 129 | case _ => | |
116 | 130 | "" | |
117 | 131 | } == "Used")) | |
118 | 132 | then 1 | |
119 | 133 | else 0 | |
120 | 134 | let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) { | |
121 | 135 | case t: String => | |
122 | 136 | t | |
123 | 137 | case _ => | |
124 | 138 | "" | |
125 | 139 | } == "Used")) | |
126 | 140 | then 1 | |
127 | 141 | else 0 | |
128 | 142 | let statusCards = [statusCard01, statusCard02, statusCard03, statusCard04, statusCard05, statusCard06, statusCard07, statusCard08, statusCard09, statusCard10] | |
129 | 143 | func foldFunc (acc,e) = (acc + e) | |
130 | 144 | ||
131 | 145 | let resultVerifyStatusCards = { | |
132 | - | let $ | |
133 | - | let $ | |
134 | - | let $ | |
135 | - | if (($ | |
136 | - | then $ | |
146 | + | let $list48764910 = statusCards | |
147 | + | let $size48764910 = size($list48764910) | |
148 | + | let $acc048764910 = 0 | |
149 | + | if (($size48764910 == 0)) | |
150 | + | then $acc048764910 | |
137 | 151 | else { | |
138 | - | let $ | |
139 | - | if (($ | |
140 | - | then $ | |
152 | + | let $acc148764910 = foldFunc($acc048764910, $list48764910[0]) | |
153 | + | if (($size48764910 == 1)) | |
154 | + | then $acc148764910 | |
141 | 155 | else { | |
142 | - | let $ | |
143 | - | if (($ | |
144 | - | then $ | |
156 | + | let $acc248764910 = foldFunc($acc148764910, $list48764910[1]) | |
157 | + | if (($size48764910 == 2)) | |
158 | + | then $acc248764910 | |
145 | 159 | else { | |
146 | - | let $ | |
147 | - | if (($ | |
148 | - | then $ | |
160 | + | let $acc348764910 = foldFunc($acc248764910, $list48764910[2]) | |
161 | + | if (($size48764910 == 3)) | |
162 | + | then $acc348764910 | |
149 | 163 | else { | |
150 | - | let $ | |
151 | - | if (($ | |
152 | - | then $ | |
164 | + | let $acc448764910 = foldFunc($acc348764910, $list48764910[3]) | |
165 | + | if (($size48764910 == 4)) | |
166 | + | then $acc448764910 | |
153 | 167 | else { | |
154 | - | let $ | |
155 | - | if (($ | |
156 | - | then $ | |
168 | + | let $acc548764910 = foldFunc($acc448764910, $list48764910[4]) | |
169 | + | if (($size48764910 == 5)) | |
170 | + | then $acc548764910 | |
157 | 171 | else { | |
158 | - | let $ | |
159 | - | if (($ | |
160 | - | then $ | |
172 | + | let $acc648764910 = foldFunc($acc548764910, $list48764910[5]) | |
173 | + | if (($size48764910 == 6)) | |
174 | + | then $acc648764910 | |
161 | 175 | else { | |
162 | - | let $ | |
163 | - | if (($ | |
164 | - | then $ | |
176 | + | let $acc748764910 = foldFunc($acc648764910, $list48764910[6]) | |
177 | + | if (($size48764910 == 7)) | |
178 | + | then $acc748764910 | |
165 | 179 | else { | |
166 | - | let $ | |
167 | - | if (($ | |
168 | - | then $ | |
180 | + | let $acc848764910 = foldFunc($acc748764910, $list48764910[7]) | |
181 | + | if (($size48764910 == 8)) | |
182 | + | then $acc848764910 | |
169 | 183 | else { | |
170 | - | let $ | |
171 | - | if (($ | |
172 | - | then $ | |
184 | + | let $acc948764910 = foldFunc($acc848764910, $list48764910[8]) | |
185 | + | if (($size48764910 == 9)) | |
186 | + | then $acc948764910 | |
173 | 187 | else { | |
174 | - | let $ | |
175 | - | if (($ | |
176 | - | then $ | |
188 | + | let $acc1048764910 = foldFunc($acc948764910, $list48764910[9]) | |
189 | + | if (($size48764910 == 10)) | |
190 | + | then $acc1048764910 | |
177 | 191 | else { | |
178 | - | let $ | |
192 | + | let $acc1148764910 = foldFunc($acc1048764910, $list48764910[10]) | |
179 | 193 | throw("List size exceed 10") | |
180 | 194 | } | |
181 | 195 | } | |
182 | 196 | } | |
183 | 197 | } | |
184 | 198 | } | |
185 | 199 | } | |
186 | 200 | } | |
187 | 201 | } | |
188 | 202 | } | |
189 | 203 | } | |
190 | 204 | } | |
191 | 205 | } | |
192 | 206 | if (if (!(containsElement(classGame, class))) | |
193 | 207 | then !(containsElement(cardsGame, card)) | |
194 | 208 | else false) | |
195 | 209 | then throw("A classe enviada não existe no game! Por favor contate o suporte!") | |
196 | 210 | else if ((0 > assetBalance(currentKey, undead))) | |
197 | 211 | then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.") | |
198 | 212 | else if (if ((cardInTheArena == "")) | |
199 | 213 | then true | |
200 | 214 | else (playerInTheArena == "")) | |
201 | 215 | then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore)] | |
202 | 216 | else if ((currentCardStatus == "Used")) | |
203 | 217 | then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!") | |
204 | 218 | else { | |
205 | 219 | let winner = if ((currentCardScore > arenaCardScore)) | |
206 | 220 | then currentKeyBytes | |
207 | 221 | else playerInTheArena | |
208 | 222 | let winningCard = if ((currentCardScore > arenaCardScore)) | |
209 | 223 | then cardName | |
210 | 224 | else cardInTheArena | |
211 | 225 | let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore)) | |
212 | 226 | then (currentCardScore - arenaCardScore) | |
213 | 227 | else (arenaCardScore - currentCardScore) | |
214 | - | let rewardValue = (((payAmount * 19) / 10) / 2) | |
228 | + | let rewardValue = if ((winner == currentKeyBytes)) | |
229 | + | then (currentPlayerBalance + (((payAmount * 19) / 10) / 2)) | |
230 | + | else if ((winner == playerInTheArena)) | |
231 | + | then (arenaPlayerBalance + (((payAmount * 19) / 10) / 2)) | |
232 | + | else throw("Código 010105. Contate o suporte!") | |
215 | 233 | [StringEntry("playerIntTheArena", winner), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9)) | |
216 | 234 | then StringEntry(((("status_" + class) + "_01_") + currentKeyBytes), "") | |
217 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
235 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
218 | 236 | then StringEntry(((("status_" + class) + "_02_") + currentKeyBytes), "") | |
219 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
237 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
220 | 238 | then StringEntry(((("status_" + class) + "_03_") + currentKeyBytes), "") | |
221 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
239 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
222 | 240 | then StringEntry(((("status_" + class) + "_04_") + currentKeyBytes), "") | |
223 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
241 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
224 | 242 | then StringEntry(((("status_" + class) + "_05_") + currentKeyBytes), "") | |
225 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
243 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
226 | 244 | then StringEntry(((("status_" + class) + "_06_") + currentKeyBytes), "") | |
227 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
245 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
228 | 246 | then StringEntry(((("status_" + class) + "_07_") + currentKeyBytes), "") | |
229 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
247 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
230 | 248 | then StringEntry(((("status_" + class) + "_08_") + currentKeyBytes), "") | |
231 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
249 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
232 | 250 | then StringEntry(((("status_" + class) + "_09_") + currentKeyBytes), "") | |
233 | - | else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9)) | |
251 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9)) | |
234 | 252 | then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "") | |
235 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), | |
253 | + | 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")] | |
236 | 254 | } | |
237 | 255 | } | |
238 | 256 | ||
239 | 257 |
github/deemru/w8io/026f985 79.00 ms ◑