foundryvtt-reve-de-dragon/module/tmr/rencontre.js

23 lines
688 B
JavaScript
Raw Normal View History

2023-11-15 22:14:00 +01:00
import { tmrTokenZIndex } from "../tmr-constants.js";
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' }
createSprite(pixiTMR) {
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.full,
2023-11-15 22:14:00 +01:00
})
}
}