2021-12-12 17:36:22 +01:00
|
|
|
import { tmrConstants, tmrColors, tmrTokenZIndex } from "../tmr-constants.js";
|
2021-02-11 02:48:27 +01:00
|
|
|
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' }
|
2022-11-07 00:04:43 +01:00
|
|
|
tooltip(rencontre) { return `${rencontre.name} de force ${rencontre.system.force}` }
|
2021-05-02 21:08:50 +02:00
|
|
|
img() { return 'systems/foundryvtt-reve-de-dragon/icons/heures/hd06.webp' }
|
2021-02-11 02:48:27 +01:00
|
|
|
|
2021-02-12 18:31:49 +01:00
|
|
|
createSprite(pixiTMR) {
|
2021-02-12 15:01:10 +01:00
|
|
|
return pixiTMR.sprite(this.code(), {
|
|
|
|
zIndex: tmrTokenZIndex.rencontre,
|
|
|
|
color: tmrColors.rencontre,
|
|
|
|
taille: tmrConstants.full,
|
|
|
|
decallage: { x: 2, y: 2 }
|
|
|
|
});
|
2021-02-11 02:48:27 +01:00
|
|
|
}
|
|
|
|
}
|