2022-12-23 00:34:17 +01:00
|
|
|
import { RdDItem } from "./item.js";
|
|
|
|
|
|
|
|
export class RdDItemService extends RdDItem {
|
|
|
|
|
|
|
|
static get defaultIcon() {
|
2023-01-03 00:31:32 +01:00
|
|
|
return "systems/foundryvtt-reve-de-dragon/icons/services/lit.webp";
|
2022-12-23 00:34:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
isService() { return true; }
|
2023-01-03 00:31:32 +01:00
|
|
|
getProprietes() {
|
|
|
|
return [
|
|
|
|
RdDItem.propertyIfDefined('Qualité', this.system.qualite, this.system.qualite != 0),
|
|
|
|
RdDItem.propertyIfDefined('Moral', 'Situation heureuse', this.system.moral),
|
2023-01-03 01:37:50 +01:00
|
|
|
RdDItem.propertyIfDefined('Coût', `${this.calculerPrixCommercant()} sols`),
|
2023-01-03 00:31:32 +01:00
|
|
|
];
|
2022-12-23 00:34:17 +01:00
|
|
|
}
|
|
|
|
}
|