Compare commits
2 Commits
2f667d633b
...
6503a097ba
Author | SHA1 | Date | |
---|---|---|---|
6503a097ba | |||
984a82138b |
@ -19,10 +19,12 @@ export class RdDItemRace extends RdDItem {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const carac = RdDCarac.carac(code)
|
if (code == LIST_CARAC_PERSONNAGE.taille.code) {
|
||||||
if (race.isMax(actor, code, value - 1)) {
|
const carac = RdDCarac.carac(code)
|
||||||
ui.notifications.warn(`${value} est supérieure au maximum de ${carac.label}`)
|
if (race.isMax(actor, code, value - 1)) {
|
||||||
return false
|
ui.notifications.warn(`${value} est supérieure au maximum de ${carac.label}`)
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@ -59,7 +61,8 @@ export class RdDItemRace extends RdDItem {
|
|||||||
if (code == LIST_CARAC_PERSONNAGE.force.code) {
|
if (code == LIST_CARAC_PERSONNAGE.force.code) {
|
||||||
return value >= this.getForceMax(actor)
|
return value >= this.getForceMax(actor)
|
||||||
}
|
}
|
||||||
const max = foundry.utils.getProperty(this, path) ?? -1
|
const pathMax = path.replace(".value", ".max");
|
||||||
|
const max = foundry.utils.getProperty(this, pathMax) ?? -1
|
||||||
return (max > 0 && value >= max)
|
return (max > 0 && value >= max)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,8 +104,8 @@ export class SystemReveDeDragon {
|
|||||||
this.RdDHotbar = RdDHotbar
|
this.RdDHotbar = RdDHotbar
|
||||||
this.RdDStatBlockParser = RdDStatBlockParser
|
this.RdDStatBlockParser = RdDStatBlockParser
|
||||||
this.itemClasses = {
|
this.itemClasses = {
|
||||||
monnaie: items.RdDItemMonnaie,
|
monnaie: items.RdDModelMonnaie,
|
||||||
munition: items.RdDItemMunition,
|
munition: items.RdDModelMunition,
|
||||||
armure: RdDItemArmure,
|
armure: RdDItemArmure,
|
||||||
blessure: RdDItemBlessure,
|
blessure: RdDItemBlessure,
|
||||||
gemme: RdDItemGemme,
|
gemme: RdDItemGemme,
|
||||||
|
@ -742,9 +742,6 @@
|
|||||||
"objet": {
|
"objet": {
|
||||||
"templates": ["description", "equipement", "inventaire"]
|
"templates": ["description", "equipement", "inventaire"]
|
||||||
},
|
},
|
||||||
"monnaie": {
|
|
||||||
"templates": ["description", "inventaire"]
|
|
||||||
},
|
|
||||||
"gemme": {
|
"gemme": {
|
||||||
"templates": ["description", "enchantable", "inventaire", "temporel"],
|
"templates": ["description", "enchantable", "inventaire", "temporel"],
|
||||||
"type": "",
|
"type": "",
|
||||||
@ -753,9 +750,6 @@
|
|||||||
"inertie": 0,
|
"inertie": 0,
|
||||||
"enchantabilite": 0
|
"enchantabilite": 0
|
||||||
},
|
},
|
||||||
"munition": {
|
|
||||||
"templates": ["description", "inventaire"]
|
|
||||||
},
|
|
||||||
"nourritureboisson": {
|
"nourritureboisson": {
|
||||||
"templates": ["description", "inventaire", "comestible"],
|
"templates": ["description", "inventaire", "comestible"],
|
||||||
"cuisinier": "",
|
"cuisinier": "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user