forked from public/foundryvtt-wh4-lang-fr-fr
Update scripts
This commit is contained in:
@ -8,7 +8,7 @@ if (type == "cold")
|
||||
|
||||
if (type == "corrosion")
|
||||
{
|
||||
let damageItems = await Dialog.confirm({title : this.item.name, content : `<p>Endommager tout les objets portés?</p>`})
|
||||
let damageItems = await Dialog.confirm({title : this.item.name, content : `<p>Damage all Items carried?</p>`})
|
||||
if (damageItems)
|
||||
{
|
||||
let msg = ``
|
||||
@ -25,21 +25,21 @@ if (type == "corrosion")
|
||||
{
|
||||
await item.system.damageItem(1);
|
||||
}
|
||||
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
|
||||
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
|
||||
}
|
||||
for(let item of armour)
|
||||
{
|
||||
await item.system.damageItem(1);
|
||||
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
|
||||
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
|
||||
}
|
||||
for(let item of trappings)
|
||||
{
|
||||
await item.system.damageItem(1);
|
||||
msg += `<p><strong>${item.name}</strong> endommagé de 1</p>`
|
||||
msg += `<p><strong>${item.name}</strong> damage by 1</p>`
|
||||
}
|
||||
if (msg)
|
||||
{
|
||||
this.script.scriptMessage(msg, {speaker : {alias : args.actor.name}});
|
||||
this.script.message(msg, {speaker : {alias : args.actor.name}});
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -59,3 +59,8 @@ if (type == "poison")
|
||||
await args.actor.addCondition("poisoned");
|
||||
}
|
||||
|
||||
if (type == "warpfire")
|
||||
{
|
||||
await this.actor.corruptionDialog("moderate")
|
||||
this.actor.applyEffect({effectUuids : this.item.effects.getName("Warpfire").uuid})
|
||||
}
|
Reference in New Issue
Block a user