Settings

Blockchain
Network
Unit
Language
Theme
Sound New Block

Transaction

72f88090ecfde3af067736a0cfcf9cd83a16fcb98304c0b5fb7a62ae538f1605
Timestamp (utc)
2021-02-17 03:23:58
Fee Paid
0.00001643 BSV
(
0.00597566 BSV
-
0.00595923 BSV
)
Fee Rate
522 sat/KB
Version
1
Confirmations
320,750
Size Stats
3,147 B

3 Outputs

Total Output:
0.00595923 BSV
  • jrun cryptofightsMG {"in":0,"ref":["a34d00702f70ed911602954d859feb8d66d40e5cf4b01eb30f375becb3d40af3_o1","6939b560abd6d2031fc50417abea833a30c09080b5bd0766a19ea1489430a852_o1","507b9cffbeb94c2386e054f3d63617f7b091e0bdb1619a99c3cd04e309be45f3_o1"],"out":["0e0ae35c16275fea2035053fcf295f9e03d6e8f3daa27bec5cb3691fed54e6e6"],"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":"a6f2004229d0b9d5b835d6fb98ef64b3db5b8c1d46f230fec2dcf526792f3f6d","isAttackAction":false,"requiredLevel":0,"skillType":7}]}]}
    https://whatsonchain.com/tx/72f88090ecfde3af067736a0cfcf9cd83a16fcb98304c0b5fb7a62ae538f1605