Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

a664fe34db772d3021c9e56960111ceee3f0b8ac5c163554011f3cc128ba3196
Timestamp (utc)
2021-04-27 19:30:00
Fee Paid
0.00001657 BSV
(
0.00997949 BSV
-
0.00996292 BSV
)
Fee Rate
523.7 sat/KB
Version
1
Confirmations
309,463
Size Stats
3,164 B

3 Outputs

Total Output:
0.00996292 BSV
  • jrun cryptofightsMX {"in":0,"ref":["ffd0408f9577a2f53933fd5718fe543476ec3e297fc190b15b914983523de716_o1","9f135a2102aac308cac473286a1600fa80a88505cbe5caa65b9d59980b70298e_o1","db9c442bcba25902be4cc0aed845c809a30a32936cd20fc9f53b9c8062b29b93_o1"],"out":["98e38de8f10674314ade268dc8571e60a2ebbaa557feba4b6454acd938e3e657"],"del":[],"cre":["n2Bd4cWhEQK1aVjb1R7EBGV9mrw3etvSdC"],"exec":[{"op":"DEPLOY","data":["class Heal extends FyxClass {\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},"FyxClass":{"$jig":2}},"description":"Heal Action","displayName":"Heal","handle":"heal","hash":"15bf2f0e4748ad59d6edd59b4b4597302779a0b85bb2885ed5313648922da6cb","isAttackAction":false,"isSpellAction":true,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/a664fe34db772d3021c9e56960111ceee3f0b8ac5c163554011f3cc128ba3196