fvtt-pegasus-rpg/modules/pegasus-hindrance-die.js

26 lines
931 B
JavaScript
Raw Normal View History

2023-09-13 21:25:44 +02:00
export class PegasusHindranceDie extends Die {
constructor(termData ) {
termData.faces=6;
super(termData);
}
/* -------------------------------------------- */
/** @override */
static DENOMINATION = "h";
/* -------------------------------------------- */
/** @override */
getResultLabel(result) {
return {
"1": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice-empty.png" />',
"2": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice-empty.png" />',
"3": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice-empty.png" />',
"4": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice-empty.png" />',
"5": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice-empty.png" />',
"6": '<img src="systems/fvtt-pegasus-rpg/images/dice/hindrance-dice.png" />'
}[result.result];
}
}