spawn random items, and try to put on map, but i still need to investigate why items are not correctly rendered on map

This commit is contained in:
andrea
2025-11-14 23:15:14 +01:00
parent f408aee8f8
commit 054522eaf3
5 changed files with 46 additions and 25 deletions

View File

@@ -116,10 +116,10 @@ class BrSimArena():
self.players.append(player)
self.Map.add_player_to_map(player)
def add_item(self, itype):
weapon= _items.BrSimItem(itype)
self.items.append(weapon)
self.Map.add_item_to_map(item)
def add_item(self, item_id):
Item= _items.BrSimItem(item_id)
self.items.append(Item)
self.Map.add_item_to_map(Item)
def get_players(self):
return self.players