From 03c09bd0a45cc10e2f57646d190375d6e7793b63 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Sat, 6 Mar 2021 13:38:42 +0100 Subject: [PATCH] =?UTF-8?q?Resistance=20fix=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compendium/wfrp4e-core.criticals.json | 10 +++++----- compendium/wfrp4e-core.spells.json | 4 ++-- module.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compendium/wfrp4e-core.criticals.json b/compendium/wfrp4e-core.criticals.json index 8eca7b9..b72978c 100644 --- a/compendium/wfrp4e-core.criticals.json +++ b/compendium/wfrp4e-core.criticals.json @@ -1433,7 +1433,7 @@ "effectApplication": "actor", "effectTrigger": "oneTime", "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", @@ -2410,7 +2410,7 @@ "effectApplication": "actor", "effectTrigger": "oneTime", "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", @@ -2668,7 +2668,7 @@ "effectApplication": "actor", "effectTrigger": "oneTime", "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", @@ -3464,7 +3464,7 @@ "effectApplication": "actor", "effectTrigger": "oneTime", "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", @@ -3554,7 +3554,7 @@ "effectApplication": "actor", "effectTrigger": "oneTime", "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", diff --git a/compendium/wfrp4e-core.spells.json b/compendium/wfrp4e-core.spells.json index ff0d896..9fe8b04 100644 --- a/compendium/wfrp4e-core.spells.json +++ b/compendium/wfrp4e-core.spells.json @@ -6603,7 +6603,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "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", @@ -9303,7 +9303,7 @@ "effectApplication": "apply", "effectTrigger": "oneTime", "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", diff --git a/module.json b/module.json index 43d61b9..72d0f57 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "WH4-fr-translation", "title": "Traduction du module WH4 en Français.", "description": "La traduction du module WH4.", - "version": "1.4.9", + "version": "1.4.10", "minimumCoreVersion" : "0.7.1", "compatibleCoreVersion": "0.7.9", "author": "LeRatierBretonnien",