Resistance fixé

This commit is contained in:
sladecraven 2021-03-06 13:38:42 +01:00
parent 816bdea0b9
commit 03c09bd0a4
3 changed files with 8 additions and 8 deletions

View File

@ -1433,7 +1433,7 @@
"effectApplication": "actor", "effectApplication": "actor",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(\"Compendium.wfrp4e-core.injuries.GlShFJF2TpsNh1FX\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })" "script": "fromUuid(\"Compendium.wfrp4e-core.injuries.GlShFJF2TpsNh1FX\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/injuries/tornarm.png", "icon": "modules/wfrp4e-core/icons/injuries/tornarm.png",
@ -2410,7 +2410,7 @@
"effectApplication": "actor", "effectApplication": "actor",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(\"Compendium.wfrp4e-core.injuries.7mCcI3q7hgWcmbBU\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"stunned\")\n })\n })" "script": "fromUuid(\"Compendium.wfrp4e-core.injuries.7mCcI3q7hgWcmbBU\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"stunned\")\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/injuries/tornleg.png", "icon": "modules/wfrp4e-core/icons/injuries/tornleg.png",
@ -2668,7 +2668,7 @@
"effectApplication": "actor", "effectApplication": "actor",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(\"Compendium.wfrp4e-core.injuries.zyocWSzEZEC826NS\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n { \n args.actor.addCondition(\"prone\")\n args.actor.addCondition(\"stunned\")\n }\n })\n })" "script": "fromUuid(\"Compendium.wfrp4e-core.injuries.zyocWSzEZEC826NS\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n { \n args.actor.addCondition(\"prone\")\n args.actor.addCondition(\"stunned\")\n }\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/injuries/tornarm.png", "icon": "modules/wfrp4e-core/icons/injuries/tornarm.png",
@ -3464,7 +3464,7 @@
"effectApplication": "actor", "effectApplication": "actor",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(\"Compendium.wfrp4e-core.injuries.3S4OYOZLauXctmev\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })" "script": "fromUuid(\"Compendium.wfrp4e-core.injuries.3S4OYOZLauXctmev\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/injuries/tornleg.png", "icon": "modules/wfrp4e-core/icons/injuries/tornleg.png",
@ -3554,7 +3554,7 @@
"effectApplication": "actor", "effectApplication": "actor",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(\"Compendium.wfrp4e-core.injuries.MnMZv7ZXoRqoH9dS\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })" "script": "fromUuid(\"Compendium.wfrp4e-core.injuries.MnMZv7ZXoRqoH9dS\").then(injury => {\n args.actor.createEmbeddedEntity(\"OwnedItem\", injury)\n})\n\n\nif (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {absolute: {difficulty: \"hard\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"failure\")\n args.actor.addCondition(\"unconscious\")\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/injuries/tornarm.png", "icon": "modules/wfrp4e-core/icons/injuries/tornarm.png",

View File

@ -6603,7 +6603,7 @@
"effectApplication": "apply", "effectApplication": "apply",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"preventDuplicateEffects": false, "preventDuplicateEffects": false,
"script": "fromUuid(this.effect.origin).then(caster => {\n if (caster)\n {\n let healed= caster.data.data.characteristics.wp.bonus + caster.data.data.characteristics.int.bonus\n let wounds = duplicate(args.actor.data.data.status.wounds)\n wounds.value+=healed\n \n if (wounds.value > wounds.max)\n wounds.value = wounds.max\n \n args.actor.update({\"data.status.wounds\" : wounds})\n ChatMessage.create({content: `${this.actor.data.token.name} regains ${healed} Wounds`, speaker : {alias : this.effect.label}})\n }\n})\n\nthis.actor.setupSkill(\"Endurance\", {absolute : {difficulty : \"vhard\"}, context : {success : \"1 Corruption point that was gained within the last hour is removed.\", failure: \"Nothing happens\"}}).then(setupData => {\n this.actor.basicTest(setupData)\n})" "script": "fromUuid(this.effect.origin).then(caster => {\n if (caster)\n {\n let healed= caster.data.data.characteristics.wp.bonus + caster.data.data.characteristics.int.bonus\n let wounds = duplicate(args.actor.data.data.status.wounds)\n wounds.value+=healed\n \n if (wounds.value > wounds.max)\n wounds.value = wounds.max\n \n args.actor.update({\"data.status.wounds\" : wounds})\n ChatMessage.create({content: `${this.actor.data.token.name} regains ${healed} Wounds`, speaker : {alias : this.effect.label}})\n }\n})\n\nthis.actor.setupSkill(\"Résistance\", {absolute : {difficulty : \"vhard\"}, context : {success : \"1 Corruption point that was gained within the last hour is removed.\", failure: \"Nothing happens\"}}).then(setupData => {\n this.actor.basicTest(setupData)\n})"
} }
}, },
"icon": "modules/wfrp4e-core/icons/spells/healing-light.png", "icon": "modules/wfrp4e-core/icons/spells/healing-light.png",
@ -9303,7 +9303,7 @@
"effectApplication": "apply", "effectApplication": "apply",
"effectTrigger": "oneTime", "effectTrigger": "oneTime",
"lore": true, "lore": true,
"script": "\n if (args.actor.owner)\n args.actor.setupSkill(\"Endurance\", {context : {failure: \"1 Corruption Point Gained\", success : \"1 Fortune Point Gained\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"success\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.fortune.value\" : args.actor.data.data.status.fortune.value + 1})\n }\n else if (test.result.result == \"failure\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.corruption.value\" : args.actor.data.data.status.corruption.value + 1})\n }\n })\n })" "script": "\n if (args.actor.owner)\n args.actor.setupSkill(\"Résistance\", {context : {failure: \"1 Corruption Point Gained\", success : \"1 Fortune Point Gained\"}}).then(setupData => {\n args.actor.basicTest(setupData).then(test => \n {\n if (test.result.result == \"success\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.fortune.value\" : args.actor.data.data.status.fortune.value + 1})\n }\n else if (test.result.result == \"failure\" && args.actor.data.type == \"character\")\n {\n args.actor.update({\"data.status.corruption.value\" : args.actor.data.data.status.corruption.value + 1})\n }\n })\n })"
} }
}, },
"icon": "modules/wfrp4e-core/icons/spells/tzeentch.png", "icon": "modules/wfrp4e-core/icons/spells/tzeentch.png",

View File

@ -3,7 +3,7 @@
"name": "WH4-fr-translation", "name": "WH4-fr-translation",
"title": "Traduction du module WH4 en Français.", "title": "Traduction du module WH4 en Français.",
"description": "La traduction du module WH4.", "description": "La traduction du module WH4.",
"version": "1.4.9", "version": "1.4.10",
"minimumCoreVersion" : "0.7.1", "minimumCoreVersion" : "0.7.1",
"compatibleCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.9",
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",