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()
def on_dismiss(self): game_action.execute_action('after', self.current_location.loc_id, self.current_level.lvl_id)
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)
def on_open(self): game_action.execute_action('before', self.current_location.loc_id, self.current_level.lvl_id)