Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

808c385504d55090790fce8a23d0fa95b79c8e3f3899c3cb07a5127c1d8d74eb
Timestamp (utc)
2021-03-11 21:46:47
Fee Paid
0.00001596 BSV
(
0.00997775 BSV
-
0.00996179 BSV
)
Fee Rate
506.9 sat/KB
Version
1
Confirmations
317,505
Size Stats
3,148 B

3 Outputs

Total Output:
0.00996179 BSV
  • jrun cryptofightsMG {"in":0,"ref":["15f16e300e33a88ce58315e96d1f19de0c9b7ab6330984a6f57ab4f62b10a45c_o1","132a85a9738d18d06d68b9ab0dfb3b036144ddb37d31b121fafba367c9b70753_o1","80545531c120d4ad8839ffadc509cac8c9af04fe4096949f045b1e37a1d20468_o1"],"out":["22034c0bd762ce1fa81dd36fc44e3e7561a4675393771ebc0f83622cd5bd4ea2"],"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/808c385504d55090790fce8a23d0fa95b79c8e3f3899c3cb07a5127c1d8d74eb