Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

f640dfa657a52a841537b7079ef0eca5c45c4c9c433d76fa3b0d97225aa15302
Timestamp (utc)
2021-03-16 04:22:13
Fee Paid
0.00001596 BSV
(
0.00998926 BSV
-
0.00997330 BSV
)
Fee Rate
507.1 sat/KB
Version
1
Confirmations
318,029
Size Stats
3,147 B

3 Outputs

Total Output:
0.00997330 BSV
  • jrun cryptofightsMG {"in":0,"ref":["9de2defb91982526a2107c589be79f3a7dfe832baa4699dc96222d0fa7cdb2f1_o1","2221bd3b605ccb0ecb0cb2562b6f2e98ca8324cc0f0d08f1434fc16deab9f7e0_o1","3c82231bba261a39defdba25060edd1459edb19c8998f9a9256c58cebb8339b1_o1"],"out":["446abd8b8b7b5a00eae8126e1928fc54004fe1c8fd5a3722dd170426fadc9838"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Heal extends KronoClass {\n static run(battle, state, dice, ts) {\n const {Ability, SkillType} = Constants;\n var playerName = BattleUtils.getPrettifiedPlayerName(battle, state);\n let log = `${playerName} uses <sprite name=\"${BattleUtils.parseSkillName(SkillType.Heal)}\">${BattleUtils.parseSkillName(SkillType.Heal)}\\n`;\n\n state.actionLogs.push(this.apply(battle, state, dice, 1, 8, Ability.Intelligence, log));\n\n return BattleUtils.endTurn(battle, state, dice);\n }\n\n\n static apply(battle, state, dice, diceCount, diceFaces, ability, log) {\n const {Outcome, SkillType} = Constants;\n let rolls = [];\n let nativeRoll = dice.roll(diceCount, diceFaces);\n rolls.push({\n type: diceFaces,\n ability: ability,\n size: diceFaces,\n value: nativeRoll\n });\n\n const defenderState = state.fighterStates[state.playerToAct ? 0 : 1];\n const attackerState = state.fighterStates[state.playerToAct];\n\n let playerName = BattleUtils.getPrettifiedPlayerName(battle, state);\n\n let healAmount = nativeRoll + attackerState.modifiers[ability];\n\n if (attackerState.hp + healAmount > attackerState.maxHP) {\n healAmount = (attackerState.maxHP - attackerState.hp);\n }\n\n attackerState.hp += healAmount;\n\n log += `${playerName} heals : ${healAmount}\\n`;\n\n return {\n playerIndex: state.playerToAct,\n skillType: SkillType.Heal,\n results: [{\n rolls: rolls,\n outcome: Outcome.Success,\n damageOutput: [\n {\n damage: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n defenderHp: defenderState.hp,\n defenderReduction: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n }\n ],\n effectDurationsIncrement: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n hpIncrement: healAmount,\n attackerHp: attackerState.hp\n }],\n actionLogMessage: log\n };\n\n }\n}",{"affectsOpponent":false,"deps":{"BattleUtils":{"$jig":0},"Constants":{"$jig":1},"KronoClass":{"$jig":2}},"description":"Heal Action","displayName":"Heal","handle":"heal","hash":"ba55b11d41e2fcce983f01a6b7979f88468329f3dfb765c98686dfcf21c2f791","isAttackAction":false,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/f640dfa657a52a841537b7079ef0eca5c45c4c9c433d76fa3b0d97225aa15302