Add hindrance dice
This commit is contained in:
25
modules/pegasus-hindrance-die.js
Normal file
25
modules/pegasus-hindrance-die.js
Normal file
@ -0,0 +1,25 @@
|
||||
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];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user