Ignore:
Timestamp:
07/08/10 18:00:37 (9 years ago)
Author:
beliar
Message:

Patch by Beliar:

  • Quest states are now saved and restored too
  • People met are now restored from saves too (there where saved before but not restored)

Note that old savegames are not working anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gamemodel.py

    r571 r574  
    2727from common.utils import parseBool 
    2828from inventory import Inventory 
    29 from scripts.quest_engine import QuestEngine 
    3029 
    3130try: 
     
    5554        self.load_saver = False 
    5655        self.savegame = None 
    57         self.game_state = GameState() 
    58         self.game_state.quest_engine = QuestEngine(\ 
    59                                             settings.get("PARPG", 
    60                                                          "QuestsDirectory")) 
    61         self.game_state.quest_engine.readQuests() 
     56        self.game_state = GameState(QuestsDir = settings.get("PARPG", 
     57                                                             "QuestsDirectory")) 
     58        #self.game_state.quest_engine =  
     59        #self.game_state.quest_engine.readQuests() 
    6260        self.pc_run = 1 
    6361        self.target_position = None 
     
    497495        self.active_map.addPC() 
    498496        self.game_state.PlayerCharacter.start() 
     497        if agent.has_key("PeopleKnown"): 
     498            self.game_state.PlayerCharacter.peopleIknow = agent["PeopleKnown"] 
    499499                       
    500500    def changeMap(self, map_name, target_position = None): 
     
    513513            # issue the map change 
    514514            self.map_change = True 
    515         else: 
    516             #set the player position on the current map 
    517             self.teleport(target_position) 
    518515 
    519516    def deleteMaps(self): 
Note: See TracChangeset for help on using the changeset viewer.