Skip to content

Commit

Permalink
Edited as per MaFeLP's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
bubstance committed Jun 11, 2022
1 parent 7b45ea4 commit bfdf5a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pokete.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def add_poke(self, poke, idx=None):

def give_item(self, item, amount=1):
"""Gives an item to the player"""
assert amount > 0, "Amounts have to be positive."
assert amount > 0, "Amounts have to be positive!"
if item not in self.inv:
self.inv[item] = amount
else:
Expand All @@ -464,10 +464,10 @@ def remove_item(self, item, amount=1):
ARGS:
item: Generic item name
amount: Amount of items beeing removed"""
assert amount > 0, "Amounts have to be positive."
assert item in self.inv, f"Item {item} is not in the inventory."
assert amount > 0, "Amounts have to be positive!"
assert item in self.inv, f"Item {item} is not in the inventory!"
assert self.inv[item] - amount >= 0, f"There are not enought {item}s \
in the inventory."
in the inventory!"
self.inv[item] -= amount
logging.info("[Figure] %d %s(s) removed", amount, item)

Expand Down
2 changes: 1 addition & 1 deletion pokete_classes/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def check_walk_back(figure, self=None):
On the way there, ${amount} fell out of your pocket!""")
figure.remove()
figure.map = figure.last_center_map
logging.info("[Figure] lost all Poketes and ran away!")
logging.info("[Figure] You lost all Poketes and ran away!")
DoorToCenter().action(figure)


Expand Down
2 changes: 1 addition & 1 deletion pokete_data/attacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
"ap": 30,
},
"eye_pick": {
"name": "Eye Pick",
"name": "Eye Peck",
"factor": 2.5,
"action": "eye_pick",
"world_action": "",
Expand Down
2 changes: 1 addition & 1 deletion pokete_data/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
}, {
"poke": ("treenator", 1000),
"args": ("Aurelia", "She",
[" < You wont be ready for myTtreenator!"],
[" < You wont be ready for my Treenator!"],
[" < You're a loooser!"],
[" < Our best trainer will defeat you though!"], 28, 6)
},
Expand Down

0 comments on commit bfdf5a7

Please sign in to comment.