summaryrefslogtreecommitdiff
path: root/player.py
diff options
context:
space:
mode:
Diffstat (limited to 'player.py')
-rw-r--r--player.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/player.py b/player.py
index a63218d..156030a 100644
--- a/player.py
+++ b/player.py
@@ -4,28 +4,28 @@ class Item:
class Player:
def __init__(self, name):
self.inventory = {}
- self.storage = []
- self.name = name
- self.id = 0
- self.sex = 0
- self.map = ""
- self.x = 0
- self.y = 0
+ self.storage = []
+ self.name = name
+ self.id = 0
+ self.sex = 0
+ self.map = ""
+ self.x = 0
+ self.y = 0
- self.EXP_NEEDED = 0
- self.EXP = 0
- self.MONEY = 0
- self.LEVEL = 0
- self.HP = 0
- self.MaxHP = 0
- self.MP = 0
- self.MaxMP = 0
- self.WEIGHT = 0
- self.MaxWEIGHT = 0
+ self.EXP_NEEDED = 0
+ self.EXP = 0
+ self.MONEY = 0
+ self.LEVEL = 0
+ self.HP = 0
+ self.MaxHP = 0
+ self.MP = 0
+ self.MaxMP = 0
+ self.WEIGHT = 0
+ self.MaxWEIGHT = 0
def find_inventory_index(self, item_id):
- for item in self.inventory:
- if item > 1:
- if self.inventory[item].itemId == item_id:
- return item
- return -10 # Not found - bug somewhere!
+ for item in self.inventory:
+ if item > 1:
+ if self.inventory[item].itemId == item_id:
+ return item
+ return -10 # Not found - bug somewhere!