Update scripts
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| const repaired_message = `<p>Finished repairing <em>${this.item.name}</em>.</p>`; | ||||
| const repaired_message = `<p>Réparation finie <em>${this.item.name}</em>.</p>`; | ||||
| const test = 'Trade (Tailor)'; | ||||
| const difficulty = 'difficult'; | ||||
| const target = 40; | ||||
| @@ -24,11 +24,10 @@ const extendedTestData = { | ||||
|   }, | ||||
|   effects: [ | ||||
|     { | ||||
|       name: `Repair the ${this.item.name}`, | ||||
|       icon: this.item.img, | ||||
|       flags: { | ||||
|         wfrp4e: { | ||||
|           applicationData: { | ||||
|       name: `Réparer ${this.item.name}`, | ||||
|       img: this.item.img, | ||||
|       system: { | ||||
|         transferData : { | ||||
|             type: "document", | ||||
|             documentType: "Item" | ||||
|           }, | ||||
| @@ -38,14 +37,14 @@ const extendedTestData = { | ||||
|               script: ` | ||||
|               let id = this.item.flags.wfrp4e.fromEffect; | ||||
|               let effect = this.actor.appliedEffects.find(e => e.id === id); | ||||
|               this.script.scriptMessage("${repaired_message}"); | ||||
|               this.script.message("${repaired_message}"); | ||||
|               await effect.item.delete(); | ||||
|             `, | ||||
|               trigger: "deleteEffect" | ||||
|             } | ||||
|           ] | ||||
|         } | ||||
|       } | ||||
|        | ||||
|       } | ||||
|   ] | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user