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:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZXlCeXRlcwQA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AAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACXVzZWRDYXJkOgUAAAAIY2FyZE5hbWUCAAAACS8gd2lubmVyOgUAAAAGd2lubmVyAgAAAA4vIHdpbm5pbmdDYXJkOgUAAAALd2lubmluZ0NhcmQCAAAAHy8gcG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZDoJAAGkAAAAAQUAAAAccG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAB3N0YXR1c18FAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgIAAAAEVXNlZAUAAAADbmlsAAAAAH8ORZc=", "height": 1628742, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hr3oHtKEQJWGZcQ14R16ZqfRnK8YRKCebj3s79A3Wsye Next: 7B3NtcMxiYb3uJhDQ5uRLi3F9DQbbnbfFySV4jx22atE Diff:
OldNewDifferences
2727 case _ =>
2828 0
2929 }
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+ }
3037 let playerInTheArena = match getString(this, "playerInTheArena") {
3138 case t: String =>
3239 t
3340 case _ =>
3441 ""
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!")
3549 }
3650 let cardInTheArena = match getString(this, "cardInTheArena") {
3751 case t: String =>
129143 func foldFunc (acc,e) = (acc + e)
130144
131145 let resultVerifyStatusCards = {
132- let $list43804414 = statusCards
133- let $size43804414 = size($list43804414)
134- let $acc043804414 = 0
135- if (($size43804414 == 0))
136- then $acc043804414
146+ let $list48764910 = statusCards
147+ let $size48764910 = size($list48764910)
148+ let $acc048764910 = 0
149+ if (($size48764910 == 0))
150+ then $acc048764910
137151 else {
138- let $acc143804414 = foldFunc($acc043804414, $list43804414[0])
139- if (($size43804414 == 1))
140- then $acc143804414
152+ let $acc148764910 = foldFunc($acc048764910, $list48764910[0])
153+ if (($size48764910 == 1))
154+ then $acc148764910
141155 else {
142- let $acc243804414 = foldFunc($acc143804414, $list43804414[1])
143- if (($size43804414 == 2))
144- then $acc243804414
156+ let $acc248764910 = foldFunc($acc148764910, $list48764910[1])
157+ if (($size48764910 == 2))
158+ then $acc248764910
145159 else {
146- let $acc343804414 = foldFunc($acc243804414, $list43804414[2])
147- if (($size43804414 == 3))
148- then $acc343804414
160+ let $acc348764910 = foldFunc($acc248764910, $list48764910[2])
161+ if (($size48764910 == 3))
162+ then $acc348764910
149163 else {
150- let $acc443804414 = foldFunc($acc343804414, $list43804414[3])
151- if (($size43804414 == 4))
152- then $acc443804414
164+ let $acc448764910 = foldFunc($acc348764910, $list48764910[3])
165+ if (($size48764910 == 4))
166+ then $acc448764910
153167 else {
154- let $acc543804414 = foldFunc($acc443804414, $list43804414[4])
155- if (($size43804414 == 5))
156- then $acc543804414
168+ let $acc548764910 = foldFunc($acc448764910, $list48764910[4])
169+ if (($size48764910 == 5))
170+ then $acc548764910
157171 else {
158- let $acc643804414 = foldFunc($acc543804414, $list43804414[5])
159- if (($size43804414 == 6))
160- then $acc643804414
172+ let $acc648764910 = foldFunc($acc548764910, $list48764910[5])
173+ if (($size48764910 == 6))
174+ then $acc648764910
161175 else {
162- let $acc743804414 = foldFunc($acc643804414, $list43804414[6])
163- if (($size43804414 == 7))
164- then $acc743804414
176+ let $acc748764910 = foldFunc($acc648764910, $list48764910[6])
177+ if (($size48764910 == 7))
178+ then $acc748764910
165179 else {
166- let $acc843804414 = foldFunc($acc743804414, $list43804414[7])
167- if (($size43804414 == 8))
168- then $acc843804414
180+ let $acc848764910 = foldFunc($acc748764910, $list48764910[7])
181+ if (($size48764910 == 8))
182+ then $acc848764910
169183 else {
170- let $acc943804414 = foldFunc($acc843804414, $list43804414[8])
171- if (($size43804414 == 9))
172- then $acc943804414
184+ let $acc948764910 = foldFunc($acc848764910, $list48764910[8])
185+ if (($size48764910 == 9))
186+ then $acc948764910
173187 else {
174- let $acc1043804414 = foldFunc($acc943804414, $list43804414[9])
175- if (($size43804414 == 10))
176- then $acc1043804414
188+ let $acc1048764910 = foldFunc($acc948764910, $list48764910[9])
189+ if (($size48764910 == 10))
190+ then $acc1048764910
177191 else {
178- let $acc1143804414 = foldFunc($acc1043804414, $list43804414[10])
192+ let $acc1148764910 = foldFunc($acc1048764910, $list48764910[10])
179193 throw("List size exceed 10")
180194 }
181195 }
211225 let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
212226 then (currentCardScore - arenaCardScore)
213227 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!")
215233 [StringEntry("playerIntTheArena", winner), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
216234 then StringEntry(((("status_" + class) + "_01_") + currentKeyBytes), "")
217- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
235+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
218236 then StringEntry(((("status_" + class) + "_02_") + currentKeyBytes), "")
219- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
237+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
220238 then StringEntry(((("status_" + class) + "_03_") + currentKeyBytes), "")
221- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
239+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
222240 then StringEntry(((("status_" + class) + "_04_") + currentKeyBytes), "")
223- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
241+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
224242 then StringEntry(((("status_" + class) + "_05_") + currentKeyBytes), "")
225- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
243+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
226244 then StringEntry(((("status_" + class) + "_06_") + currentKeyBytes), "")
227- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
245+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
228246 then StringEntry(((("status_" + class) + "_07_") + currentKeyBytes), "")
229- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
247+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
230248 then StringEntry(((("status_" + class) + "_08_") + currentKeyBytes), "")
231- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
249+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
232250 then StringEntry(((("status_" + class) + "_09_") + currentKeyBytes), "")
233- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
251+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
234252 then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
235- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), 100), 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")]
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")]
236254 }
237255 }
238256
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(inv)
77 func play (card,class) = {
88 let transactionId = toBase58String(inv.transactionId)
99 let currentKey = inv.caller
1010 let payAmount = value(inv.payments[0].amount)
1111 let currentKeyBytes = toBase58String(inv.caller.bytes)
1212 let cardName = ((class + "_") + card)
1313 let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes)
1414 let undead = base58'3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk'
1515 let cardsGame = ["Undead_01", "Undead_02", "Undead_03", "Undead_04", "Undead_05", "Undead_07", "Undead_08", "Undead_09", "Undead_10"]
1616 let classGame = ["Undead"]
1717 let assetsGame = ["3btiz2mNkbcFhcAww6Zn6WaRtDY3mLHf2dbJHNNbdUFk"]
1818 let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) {
1919 case t: String =>
2020 t
2121 case _ =>
2222 ""
2323 }
2424 let currentCardScore = match getInteger(this, cardName) {
2525 case t: Int =>
2626 t
2727 case _ =>
2828 0
2929 }
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+ }
3037 let playerInTheArena = match getString(this, "playerInTheArena") {
3138 case t: String =>
3239 t
3340 case _ =>
3441 ""
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!")
3549 }
3650 let cardInTheArena = match getString(this, "cardInTheArena") {
3751 case t: String =>
3852 t
3953 case _ =>
4054 ""
4155 }
4256 let arenaCardScore = match getInteger(this, "arenaCardScore") {
4357 case t: Int =>
4458 t
4559 case _ =>
4660 0
4761 }
4862 let statusCard01 = if (( match getString(this, ((("status_" + class) + "_01_") + currentKeyBytes)) {
4963 case t: String =>
5064 t
5165 case _ =>
5266 ""
5367 } == "Used"))
5468 then 1
5569 else 0
5670 let statusCard02 = if (( match getString(this, ((("status_" + class) + "_02_") + currentKeyBytes)) {
5771 case t: String =>
5872 t
5973 case _ =>
6074 ""
6175 } == "Used"))
6276 then 1
6377 else 0
6478 let statusCard03 = if (( match getString(this, ((("status_" + class) + "_03_") + currentKeyBytes)) {
6579 case t: String =>
6680 t
6781 case _ =>
6882 ""
6983 } == "Used"))
7084 then 1
7185 else 0
7286 let statusCard04 = if (( match getString(this, ((("status_" + class) + "_04_") + currentKeyBytes)) {
7387 case t: String =>
7488 t
7589 case _ =>
7690 ""
7791 } == "Used"))
7892 then 1
7993 else 0
8094 let statusCard05 = if (( match getString(this, ((("status_" + class) + "_05_") + currentKeyBytes)) {
8195 case t: String =>
8296 t
8397 case _ =>
8498 ""
8599 } == "Used"))
86100 then 1
87101 else 0
88102 let statusCard06 = if (( match getString(this, ((("status_" + class) + "_06_") + currentKeyBytes)) {
89103 case t: String =>
90104 t
91105 case _ =>
92106 ""
93107 } == "Used"))
94108 then 1
95109 else 0
96110 let statusCard07 = if (( match getString(this, ((("status_" + class) + "_07_") + currentKeyBytes)) {
97111 case t: String =>
98112 t
99113 case _ =>
100114 ""
101115 } == "Used"))
102116 then 1
103117 else 0
104118 let statusCard08 = if (( match getString(this, ((("status_" + class) + "_08_") + currentKeyBytes)) {
105119 case t: String =>
106120 t
107121 case _ =>
108122 ""
109123 } == "Used"))
110124 then 1
111125 else 0
112126 let statusCard09 = if (( match getString(this, ((("status_" + class) + "_09_") + currentKeyBytes)) {
113127 case t: String =>
114128 t
115129 case _ =>
116130 ""
117131 } == "Used"))
118132 then 1
119133 else 0
120134 let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) {
121135 case t: String =>
122136 t
123137 case _ =>
124138 ""
125139 } == "Used"))
126140 then 1
127141 else 0
128142 let statusCards = [statusCard01, statusCard02, statusCard03, statusCard04, statusCard05, statusCard06, statusCard07, statusCard08, statusCard09, statusCard10]
129143 func foldFunc (acc,e) = (acc + e)
130144
131145 let resultVerifyStatusCards = {
132- let $list43804414 = statusCards
133- let $size43804414 = size($list43804414)
134- let $acc043804414 = 0
135- if (($size43804414 == 0))
136- then $acc043804414
146+ let $list48764910 = statusCards
147+ let $size48764910 = size($list48764910)
148+ let $acc048764910 = 0
149+ if (($size48764910 == 0))
150+ then $acc048764910
137151 else {
138- let $acc143804414 = foldFunc($acc043804414, $list43804414[0])
139- if (($size43804414 == 1))
140- then $acc143804414
152+ let $acc148764910 = foldFunc($acc048764910, $list48764910[0])
153+ if (($size48764910 == 1))
154+ then $acc148764910
141155 else {
142- let $acc243804414 = foldFunc($acc143804414, $list43804414[1])
143- if (($size43804414 == 2))
144- then $acc243804414
156+ let $acc248764910 = foldFunc($acc148764910, $list48764910[1])
157+ if (($size48764910 == 2))
158+ then $acc248764910
145159 else {
146- let $acc343804414 = foldFunc($acc243804414, $list43804414[2])
147- if (($size43804414 == 3))
148- then $acc343804414
160+ let $acc348764910 = foldFunc($acc248764910, $list48764910[2])
161+ if (($size48764910 == 3))
162+ then $acc348764910
149163 else {
150- let $acc443804414 = foldFunc($acc343804414, $list43804414[3])
151- if (($size43804414 == 4))
152- then $acc443804414
164+ let $acc448764910 = foldFunc($acc348764910, $list48764910[3])
165+ if (($size48764910 == 4))
166+ then $acc448764910
153167 else {
154- let $acc543804414 = foldFunc($acc443804414, $list43804414[4])
155- if (($size43804414 == 5))
156- then $acc543804414
168+ let $acc548764910 = foldFunc($acc448764910, $list48764910[4])
169+ if (($size48764910 == 5))
170+ then $acc548764910
157171 else {
158- let $acc643804414 = foldFunc($acc543804414, $list43804414[5])
159- if (($size43804414 == 6))
160- then $acc643804414
172+ let $acc648764910 = foldFunc($acc548764910, $list48764910[5])
173+ if (($size48764910 == 6))
174+ then $acc648764910
161175 else {
162- let $acc743804414 = foldFunc($acc643804414, $list43804414[6])
163- if (($size43804414 == 7))
164- then $acc743804414
176+ let $acc748764910 = foldFunc($acc648764910, $list48764910[6])
177+ if (($size48764910 == 7))
178+ then $acc748764910
165179 else {
166- let $acc843804414 = foldFunc($acc743804414, $list43804414[7])
167- if (($size43804414 == 8))
168- then $acc843804414
180+ let $acc848764910 = foldFunc($acc748764910, $list48764910[7])
181+ if (($size48764910 == 8))
182+ then $acc848764910
169183 else {
170- let $acc943804414 = foldFunc($acc843804414, $list43804414[8])
171- if (($size43804414 == 9))
172- then $acc943804414
184+ let $acc948764910 = foldFunc($acc848764910, $list48764910[8])
185+ if (($size48764910 == 9))
186+ then $acc948764910
173187 else {
174- let $acc1043804414 = foldFunc($acc943804414, $list43804414[9])
175- if (($size43804414 == 10))
176- then $acc1043804414
188+ let $acc1048764910 = foldFunc($acc948764910, $list48764910[9])
189+ if (($size48764910 == 10))
190+ then $acc1048764910
177191 else {
178- let $acc1143804414 = foldFunc($acc1043804414, $list43804414[10])
192+ let $acc1148764910 = foldFunc($acc1048764910, $list48764910[10])
179193 throw("List size exceed 10")
180194 }
181195 }
182196 }
183197 }
184198 }
185199 }
186200 }
187201 }
188202 }
189203 }
190204 }
191205 }
192206 if (if (!(containsElement(classGame, class)))
193207 then !(containsElement(cardsGame, card))
194208 else false)
195209 then throw("A classe enviada não existe no game! Por favor contate o suporte!")
196210 else if ((0 > assetBalance(currentKey, undead)))
197211 then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
198212 else if (if ((cardInTheArena == ""))
199213 then true
200214 else (playerInTheArena == ""))
201215 then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore)]
202216 else if ((currentCardStatus == "Used"))
203217 then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
204218 else {
205219 let winner = if ((currentCardScore > arenaCardScore))
206220 then currentKeyBytes
207221 else playerInTheArena
208222 let winningCard = if ((currentCardScore > arenaCardScore))
209223 then cardName
210224 else cardInTheArena
211225 let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
212226 then (currentCardScore - arenaCardScore)
213227 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!")
215233 [StringEntry("playerIntTheArena", winner), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
216234 then StringEntry(((("status_" + class) + "_01_") + currentKeyBytes), "")
217- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
235+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
218236 then StringEntry(((("status_" + class) + "_02_") + currentKeyBytes), "")
219- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
237+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
220238 then StringEntry(((("status_" + class) + "_03_") + currentKeyBytes), "")
221- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
239+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
222240 then StringEntry(((("status_" + class) + "_04_") + currentKeyBytes), "")
223- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
241+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
224242 then StringEntry(((("status_" + class) + "_05_") + currentKeyBytes), "")
225- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
243+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
226244 then StringEntry(((("status_" + class) + "_06_") + currentKeyBytes), "")
227- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
245+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
228246 then StringEntry(((("status_" + class) + "_07_") + currentKeyBytes), "")
229- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
247+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
230248 then StringEntry(((("status_" + class) + "_08_") + currentKeyBytes), "")
231- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
249+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
232250 then StringEntry(((("status_" + class) + "_09_") + currentKeyBytes), "")
233- else StringEntry("ElseObrigatorio", ""), if ((resultVerifyStatusCards == 9))
251+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
234252 then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
235- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), 100), 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")]
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")]
236254 }
237255 }
238256
239257

github/deemru/w8io/026f985 
79.00 ms