1
0

define players and items coordinates to be used on the map

This commit is contained in:
andrea
2025-07-27 23:34:35 +02:00
parent a7fd66e9e4
commit 5e6816269b
4 changed files with 31 additions and 15 deletions

View File

@@ -19,9 +19,14 @@ class BrSimPlayer():
self.equipped_weapon= None
self.gender= _random.sample(['m', 'f', '-'], 1)[0] # for now get a random gender
self.reputation= 50 #Like RDR2 the player can be evil(0) or good(100). This should influence the sponsors and internal alliance
self.coord_x= 0
self.coord_y= 0
### control methods
def get_player_coordinates(self):
return self.coord_x. self.coord_y
def get_name_and_stats(self):
health= '♥️' * self.health or '☠️'
strength= '⚔️' * self.damage