Encombrement avec décimales
This commit is contained in:
+5
-5
@@ -364,11 +364,11 @@ export class RdDItem extends Item {
|
||||
getEnc() {
|
||||
switch (this.type) {
|
||||
case ITEM_TYPES.service:
|
||||
return 0;
|
||||
return 0
|
||||
case ITEM_TYPES.herbe:
|
||||
return this.getEncHerbe();
|
||||
return this.getEncHerbe()
|
||||
}
|
||||
return Math.max(this.system.encombrement ?? 0, 0);
|
||||
return Math.max(this.system.encombrement ?? 0.0, 0.0);
|
||||
}
|
||||
|
||||
getEncContenu() {
|
||||
@@ -384,9 +384,9 @@ export class RdDItem extends Item {
|
||||
getEncHerbe() {
|
||||
switch (this.system.categorie) {
|
||||
case 'Repos': case 'Soin': case 'Alchimie':
|
||||
return encBrin;
|
||||
return encBrin
|
||||
}
|
||||
return this.system.encombrement;
|
||||
return this.system.encombrement
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user