2023-11-15 22:14:00 +01:00
|
|
|
import { tmrTokenZIndex } from "../tmr-constants.js";
|
2021-02-11 02:48:27 +01:00
|
|
|
import { Draconique } from "./draconique.js";
|
|
|
|
|
|
|
|
export class Rencontre extends Draconique {
|
|
|
|
|
|
|
|
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}` }
|
2023-11-15 22:14:00 +01:00
|
|
|
img() { return 'systems/foundryvtt-reve-de-dragon/icons/tmr/rencontre.svg' }
|
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,
|
2023-11-15 22:14:00 +01:00
|
|
|
decallage: pixiTMR.sizes.decallage(0, 0),
|
|
|
|
taille: () => pixiTMR.sizes.twoThird,
|
|
|
|
})
|
2021-02-11 02:48:27 +01:00
|
|
|
}
|
|
|
|
}
|