Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

cf5aa075ac7c2fc80ed387e566acd4c8f441dc5265a4445af1b5677ae6150e54
Timestamp (utc)
2021-02-16 16:26:03
Fee Paid
0.00001643 BSV
(
0.00955302 BSV
-
0.00953659 BSV
)
Fee Rate
522 sat/KB
Version
1
Confirmations
320,717
Size Stats
3,147 B

3 Outputs

Total Output:
0.00953659 BSV
  • jrun cryptofightsMG {"in":0,"ref":["44e0edde59f9773cf6b353d514f3dca560d727b049b9e6a008eb8ecb16c7f68d_o1","4fb2e7a36125091d4c830381a37bef34e6dc875b690ac6ef31abb1a932d6682d_o1","507b9cffbeb94c2386e054f3d63617f7b091e0bdb1619a99c3cd04e309be45f3_o1"],"out":["c00e81b64bc39b76494fba8241f7a27ff0f8565750f7aa6f52436043e0f5eb48"],"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":"eb310eb75a1b98f81bd881870f535a8d5d7e738d21e42db72e4a09aaa3f2974b","isAttackAction":false,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/cf5aa075ac7c2fc80ed387e566acd4c8f441dc5265a4445af1b5677ae6150e54