Skip to content

Commit

Permalink
Fixing issues discovered by flake.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielBingham committed Jan 12, 2024
1 parent c614f26 commit 9b52fd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion game/library/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion game/store/models/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions game/store/models/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9b52fd6

Please sign in to comment.