Ajout de la commande /voyage et grosse MAJK de la commande /auberge
This commit is contained in:
14
scripts/dxt3p07po06J9fO1.js
Normal file
14
scripts/dxt3p07po06J9fO1.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const metal = () => {
|
||||
for (const [key, loc] of Object.entries(this.actor.armour)) {
|
||||
if (!loc.layers) continue;
|
||||
|
||||
for (const layer of loc.layers) {
|
||||
if (layer.metal)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
args.fields.slBonus -= metal() ? 2 : 1;
|
||||
Reference in New Issue
Block a user