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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user