Fix poison active
This commit is contained in:
parent
195b0bb869
commit
3e14b646c5
@ -225,7 +225,7 @@ export class RdDCalendrier extends Application {
|
|||||||
checkMaladie( periode) {
|
checkMaladie( periode) {
|
||||||
for (let actor of game.actors) {
|
for (let actor of game.actors) {
|
||||||
if (actor.type == 'personnage') {
|
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) {
|
for (let maladie of maladies) {
|
||||||
if ( maladie.data.identifie) {
|
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 !` });
|
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",
|
"name": "foundryvtt-reve-de-dragon",
|
||||||
"title": "Rêve de Dragon",
|
"title": "Rêve de Dragon",
|
||||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||||
"version": "1.5.25",
|
"version": "1.5.26",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.0",
|
||||||
"minimumCoreVersion": "0.8.0",
|
"minimumCoreVersion": "0.8.0",
|
||||||
"compatibleCoreVersion": "0.8.9",
|
"compatibleCoreVersion": "0.8.9",
|
||||||
"templateVersion": 125,
|
"templateVersion": 126,
|
||||||
"author": "LeRatierBretonnien",
|
"author": "LeRatierBretonnien",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
@ -896,6 +896,7 @@
|
|||||||
"remedesconnus": false,
|
"remedesconnus": false,
|
||||||
"remedes": "",
|
"remedes": "",
|
||||||
"dommages":"",
|
"dommages":"",
|
||||||
|
"active": false,
|
||||||
"description": "",
|
"description": "",
|
||||||
"descriptionmj": ""
|
"descriptionmj": ""
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="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)}}
|
{{#if (or isGM data.identifie)}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="xp">Identifiée ? </label>
|
<label for="xp">Identifiée ? </label>
|
||||||
|
Loading…
Reference in New Issue
Block a user