Fix poison active
This commit is contained in:
parent
195b0bb869
commit
3e14b646c5
@ -225,7 +225,7 @@ export class RdDCalendrier extends Application {
|
||||
checkMaladie( periode) {
|
||||
for (let actor of game.actors) {
|
||||
if (actor.type == 'personnage') {
|
||||
let maladies = actor.filterItems( item => (item.type == 'maladie' || item.type == 'poison') && item.data.periodicite.toLowerCase().includes(periode) );
|
||||
let maladies = actor.filterItems( item => (item.type == 'maladie' || (item.type == 'poison' && item.data.active) ) && item.data.periodicite.toLowerCase().includes(periode) );
|
||||
for (let maladie of maladies) {
|
||||
if ( maladie.data.identifie) {
|
||||
ChatMessage.create({ content: `${actor.name} souffre de ${maladie.name} (${maladie.type}): vérifiez que les effets ne se sont pas aggravés !` });
|
||||
|
@ -2,11 +2,11 @@
|
||||
"name": "foundryvtt-reve-de-dragon",
|
||||
"title": "Rêve de Dragon",
|
||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||
"version": "1.5.25",
|
||||
"version": "1.5.26",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
"minimumCoreVersion": "0.8.0",
|
||||
"compatibleCoreVersion": "0.8.9",
|
||||
"templateVersion": 125,
|
||||
"templateVersion": 126,
|
||||
"author": "LeRatierBretonnien",
|
||||
"authors": [
|
||||
{
|
||||
|
@ -896,6 +896,7 @@
|
||||
"remedesconnus": false,
|
||||
"remedes": "",
|
||||
"dommages":"",
|
||||
"active": false,
|
||||
"description": "",
|
||||
"descriptionmj": ""
|
||||
},
|
||||
|
@ -12,6 +12,10 @@
|
||||
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<div class="form-group">
|
||||
<label for="xp">Actif ? </label>
|
||||
<input class="attribute-value" type="checkbox" name="data.active" {{#if data.active}}checked{{/if}}/>
|
||||
</div>
|
||||
{{#if (or isGM data.identifie)}}
|
||||
<div class="form-group">
|
||||
<label for="xp">Identifiée ? </label>
|
||||
|
Loading…
Reference in New Issue
Block a user