Exemple #1
0
 def on_pre_open(self):
     current_lvl_id = db.get_val_from_global('current_lvl_id')
     game_action.execute_action('location', self.current_location.loc_id, current_lvl_id)
     if self.is_treasure_hunting:
         self.locations = locations
     else:
         self.locations = locations_mine
     self.open_location()
Exemple #2
0
 def on_dismiss(self):
     game_action.execute_action('after', self.current_location.loc_id,
                                self.current_level.lvl_id)
Exemple #3
0
 def check_actions(self):
     current_loc_id = db.get_val_from_global('current_loc_id')
     current_lvl_id = db.get_val_from_global('current_lvl_id')
     game_action.execute_action('home', current_loc_id, current_lvl_id)
Exemple #4
0
 def on_open(self):
     game_action.execute_action('before', self.current_location.loc_id,
                                self.current_level.lvl_id)