From 9b52fd66bd174babc5ab17d69936f7204e34ce9f Mon Sep 17 00:00:00 2001 From: Daniel Bingham Date: Fri, 12 Jan 2024 14:35:43 -0500 Subject: [PATCH] Fixing issues discovered by flake. --- game/library/character.py | 2 +- game/store/models/character.py | 2 +- game/store/models/item.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game/library/character.py b/game/library/character.py index 9483e90a..af6e988d 100644 --- a/game/library/character.py +++ b/game/library/character.py @@ -86,7 +86,7 @@ def adjustCalories(self, character, amount): self.kill(character) return True - def adjustThirst(character, amount): + def adjustThirst(self, character, amount): """ Adjust a character's thirst reserve and execute any follow on effects. diff --git a/game/store/models/character.py b/game/store/models/character.py index 70f5e7a3..50298149 100644 --- a/game/store/models/character.py +++ b/game/store/models/character.py @@ -237,7 +237,7 @@ class Wound(JsonSerializable): WOUND_THIRD_DEGREE_BURN = 'third-degree-burn' def __init__(self): - self.type = WOUND_SCRAPED + self.type = self.WOUND_SCRAPED # The amount of blood lost per game minute due to the wound. self.bleed = 0 diff --git a/game/store/models/item.py b/game/store/models/item.py index a44b67ef..1e5a28c2 100644 --- a/game/store/models/item.py +++ b/game/store/models/item.py @@ -341,8 +341,8 @@ def toPrototypeJson(self): return json def fromPrototypeJson(self, data): - self.volume = json['volume'] - self.weightLimit = json['weightLimit'] + self.volume = data['volume'] + self.weightLimit = data['weightLimit'] return self def toJson(self):