2023-01-05 00:55:04 +01:00
|
|
|
import { RdDItem } from "../item.js";
|
2023-01-07 23:28:30 +01:00
|
|
|
import { RdDItemMaladie } from "./maladie.js";
|
2023-01-05 00:55:04 +01:00
|
|
|
|
|
|
|
export class RdDItemPoison extends RdDItem {
|
|
|
|
|
|
|
|
static get defaultIcon() {
|
|
|
|
return "systems/foundryvtt-reve-de-dragon/icons/maladies_venins/venin.webp";
|
|
|
|
}
|
|
|
|
|
|
|
|
async calculerFinPeriodeTemporel(debut) {
|
|
|
|
return await debut.addPeriode(this.system.periode.nombre, this.system.periode.unite) ;
|
|
|
|
}
|
|
|
|
|
2023-01-07 23:28:30 +01:00
|
|
|
async onFinPeriode(oldTimestamp, newTimestamp) {
|
|
|
|
RdDItemMaladie.notifierMaladiePoison(this, oldTimestamp, newTimestamp)
|
2023-01-05 00:55:04 +01:00
|
|
|
}
|
|
|
|
}
|