28 lines
768 B
JavaScript
28 lines
768 B
JavaScript
import { tmrColors, tmrConstants, tmrTokenZIndex } from "../tmr-utility.js";
|
|
import { Draconique } from "./draconique.js";
|
|
|
|
export class Rencontre extends Draconique {
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
type() { return '' }
|
|
match(item) { return false; }
|
|
manualMessage() { return false }
|
|
async onActorCreateOwned(actor, item) { }
|
|
|
|
code() { return 'rencontre' }
|
|
tooltip(linkData) { return `${linkData.rencontre.name} de force ${linkData.rencontre.force}` }
|
|
img() { return 'systems/foundryvtt-reve-de-dragon/icons/heures/hd06.webp' }
|
|
|
|
createSprite(pixiTMR) {
|
|
return pixiTMR.sprite(this.code(), {
|
|
zIndex: tmrTokenZIndex.rencontre,
|
|
color: tmrColors.rencontre,
|
|
taille: tmrConstants.full,
|
|
decallage: { x: 2, y: 2 }
|
|
});
|
|
}
|
|
}
|