2021-02-12 15:01:10 +01:00
|
|
|
import { tmrColors, tmrConstants, tmrTokenZIndex } from "../tmr-utility.js";
|
2021-02-11 02:48:27 +01:00
|
|
|
import { Draconique } from "./draconique.js";
|
|
|
|
|
|
|
|
export class SortReserve extends Draconique {
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
type() { return '' }
|
|
|
|
match(item) { return false; }
|
|
|
|
manualMessage() { return false }
|
|
|
|
async onActorCreateOwned(actor, item) { }
|
|
|
|
|
|
|
|
code() { return 'sort' }
|
2021-02-12 12:50:17 +01:00
|
|
|
tooltip(sort) { return `${sort.name}, r${sort.data.ptreve_reel}` }
|
|
|
|
img() { return 'systems/foundryvtt-reve-de-dragon/icons/tmr/scroll.svg' }
|
2021-02-11 02:48:27 +01:00
|
|
|
|
|
|
|
_createSprite(pixiTMR) {
|
2021-02-12 15:01:10 +01:00
|
|
|
return pixiTMR.sprite(this.code(), {
|
|
|
|
zIndex: tmrTokenZIndex.sort,
|
|
|
|
alpha: 0.5,
|
|
|
|
decallage: tmrConstants.right
|
|
|
|
});
|
2021-02-11 02:48:27 +01:00
|
|
|
}
|
|
|
|
}
|