|
|
|
@@ -255,6 +255,10 @@ math.createUnit("foodKilograms", { |
|
|
|
definition: "1909 kcal", |
|
|
|
prefixes: "long" |
|
|
|
}) |
|
|
|
math.createUnit("chickenNuggets", { |
|
|
|
definition: "42 kcal", |
|
|
|
prefixes: "long" |
|
|
|
}) |
|
|
|
math.createUnit("peopleEaten", { |
|
|
|
definition: "125000 kcal", |
|
|
|
prefixes: "long" |
|
|
|
@@ -484,6 +488,7 @@ const unitChoices = { |
|
|
|
"foodPounds" |
|
|
|
], |
|
|
|
"relative": [ |
|
|
|
"chickenNuggets", |
|
|
|
"peopleEaten", |
|
|
|
"villagesEaten", |
|
|
|
"townsEaten", |
|
|
|
@@ -1339,7 +1344,7 @@ function makeEntity(info, views, sizes, forms = {}) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (config.autoFoodIntake && view.attributes.weight !== undefined && view.attributes.energyNeed === undefined) { |
|
|
|
if (config.autoFoodIntake && view.attributes.weight !== undefined && view.attributes.energyIntake === undefined) { |
|
|
|
view.attributes.energyIntake = { |
|
|
|
name: "Food Intake", |
|
|
|
power: 3, |
|
|
|
|