Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

62fdd69c4cbff8a562467466e4cefc5c0ce85d6c54aae00f96cbbea3bb5766cf
Timestamp (utc)
2021-04-23 17:38:59
Fee Paid
0.00001720 BSV
(
0.00999095 BSV
-
0.00997375 BSV
)
Fee Rate
547.2 sat/KB
Version
1
Confirmations
303,683
Size Stats
3,143 B

3 Outputs

Total Output:
0.00997375 BSV
  • jrun cryptofightsMC {"in":0,"ref":["aa790338170676a03c6ad8a65a57f8cf503b60283ed45bd31d0e12c4bb73dec0_o1","1e7dc1b5184c61c27d91ab737e40191c8d4497ba2025751abce9fe8cb7eca58d_o1","db9c442bcba25902be4cc0aed845c809a30a32936cd20fc9f53b9c8062b29b93_o1"],"out":["724034c80a591650ce22bd94d8b69f94dc5777b48b8361b33e2b4f564e82d887"],"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":"154125f62442bae3cca290e99e7bba563d763d824f9d4c90ec3ce9dacc2b3740","isAttackAction":false,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/62fdd69c4cbff8a562467466e4cefc5c0ce85d6c54aae00f96cbbea3bb5766cf