projects
/
butaba-adventures.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented NPC movement (random)
[butaba-adventures.git]
/
gameobjects.py
diff --git
a/gameobjects.py
b/gameobjects.py
index
c9c945b
..
bc73fad
100644
(file)
--- a/
gameobjects.py
+++ b/
gameobjects.py
@@
-90,8
+90,8
@@
class HealthPotion (GameObject):
# using the potion
def use (self, butaba):
butaba.health += 25
# using the potion
def use (self, butaba):
butaba.health += 25
- if butaba.health >
butaba
.MAXHEALTH:
- butaba.health =
butaba
.MAXHEALTH
+ if butaba.health >
constants
.MAXHEALTH:
+ butaba.health =
constants
.MAXHEALTH
class Chest (GameObject):
def __init__ (self, row, col, text, image, key_id, locked = False, objects = []):
class Chest (GameObject):
def __init__ (self, row, col, text, image, key_id, locked = False, objects = []):