This commit is contained in:
Caroline Foy 2025-02-26 15:38:51 -06:00
parent 6e476dcf14
commit 0dfc20e470
4 changed files with 78 additions and 3 deletions

View file

@ -10,7 +10,7 @@ module.exports = {
calcLocation,
}
function eatfood() {
function eatFood() {
if (variables.food == 0) {
variables.health - 3*variables.travelSpeed
} else if (variables.isSick == true) {