Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 072e2e894f |
@@ -230,9 +230,12 @@ export class MournbladeCYD2Actor extends Actor {
|
|||||||
if (val >= 4) hasRealArmor = true
|
if (val >= 4) hasRealArmor = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (sum === 0) return 4 // Aucune protection → base 4
|
// Les créatures n'ont pas de protection de base (rat = 0, etc.)
|
||||||
if (hasRealArmor) return sum // Au moins une vraie armure → somme directe
|
if (this.type === "creature") return sum
|
||||||
return 4 + sum // Que des boucliers/protections légères → base + bonus
|
// Personnages : base 4 si rien d'équipé (corps à nu)
|
||||||
|
if (sum === 0) return 4
|
||||||
|
if (hasRealArmor) return sum
|
||||||
|
return 4 + sum
|
||||||
}
|
}
|
||||||
getProtectionTotal() {
|
getProtectionTotal() {
|
||||||
return this.getProtection()
|
return this.getProtection()
|
||||||
|
|||||||
Reference in New Issue
Block a user