diff --git a/entities/player.py b/entities/player.py index fb46faa..9df3c2a 100644 --- a/entities/player.py +++ b/entities/player.py @@ -18,3 +18,14 @@ class BrSimPlayer(): rnd= _random.randint(0, 100) if rnd > self.agility: return True return False + + def steal(self): + #XXX can steal from death players or from sleeping players + pass + + def heal(self): + #XXX if you have a wound and you have a medikit item, you can heal your wound or sickness + pass + + def get_inventory(self): + return self.inventory diff --git a/main.py b/main.py index dd65c9a..161f73d 100644 --- a/main.py +++ b/main.py @@ -41,7 +41,8 @@ class BrSimArena(): def init_arena(): players= [{'name': 'Crystal'}, {'name': 'Andrea'}] - weapons= [{_wsyms.KNIFE['name']: 1}] + w= _wsyms.KNIFE + weapons= [{_wsyms.WEAPONS[w]['name']: 1}] return BrSimArena(players, weapons)