Update scripts

This commit is contained in:
2024-10-08 20:52:09 +02:00
parent 1f1d871e53
commit fc4fa1deb5
178 changed files with 12247 additions and 10701 deletions

View File

@ -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})
}