Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

77b596bfbe9b0e6213c69201500020f3c126f8b297ab0c3ed2d65a89b26f6f3d
Timestamp (utc)
2021-04-17 09:24:23
Fee Paid
0.00001646 BSV
(
0.00998395 BSV
-
0.00996749 BSV
)
Fee Rate
523.7 sat/KB
Version
1
Confirmations
310,621
Size Stats
3,143 B

3 Outputs

Total Output:
0.00996749 BSV
  • jrun cryptofightsMC {"in":0,"ref":["be29c3020280aab0d478543cc1c80d41b4d3913399b21eddcd4f974b3fc6d469_o1","1e7dc1b5184c61c27d91ab737e40191c8d4497ba2025751abce9fe8cb7eca58d_o1","b80281afbc3a80b726da0d10968da984f5fcbdb6584bdd12ec5e05809e590309_o1"],"out":["09848ab598a8b11e3579ad31ce45f2e69971c3ef55fd0d79cd825fd7e674ac84"],"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":"de15118361ab33b02cba5427470e18887d20809ad1397071a5507ccb29d686cd","isAttackAction":false,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/77b596bfbe9b0e6213c69201500020f3c126f8b297ab0c3ed2d65a89b26f6f3d