1
0

other player methods

This commit is contained in:
andrea
2025-07-23 21:22:34 +02:00
parent 3f340fcd2c
commit bb396ae8d3
2 changed files with 13 additions and 1 deletions

View File

@@ -18,3 +18,14 @@ class BrSimPlayer():
rnd= _random.randint(0, 100) rnd= _random.randint(0, 100)
if rnd > self.agility: return True if rnd > self.agility: return True
return False 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

View File

@@ -41,7 +41,8 @@ class BrSimArena():
def init_arena(): def init_arena():
players= [{'name': 'Crystal'}, {'name': 'Andrea'}] players= [{'name': 'Crystal'}, {'name': 'Andrea'}]
weapons= [{_wsyms.KNIFE['name']: 1}] w= _wsyms.KNIFE
weapons= [{_wsyms.WEAPONS[w]['name']: 1}]
return BrSimArena(players, weapons) return BrSimArena(players, weapons)