Event modifs and README update
This commit is contained in:
@@ -100,7 +100,10 @@ class Game(Serializable):
|
||||
def add_event(self, new_event:Event):
|
||||
self.events.append(new_event)
|
||||
self.update_turn_order()
|
||||
self.turn_idx = 0
|
||||
self.turn_idx = 0
|
||||
|
||||
def add_entity_to_event(self, entity_id:str):
|
||||
self.get_current_event().add_entity(entity_id=entity_id)
|
||||
|
||||
def check_turn_ended(self):
|
||||
if self.turn_idx == len(self.turn_order)-1:
|
||||
|
||||
Reference in New Issue
Block a user