Ignore:
Timestamp:
08/03/10 16:15:21 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Added messages to ignore to pylintrc
  • Fixed error when marking a quest as finished/failed
  • It is now possible to brew the beer required for a quest. For now this does not need any special requirements, like having the quest active or read the pamphlet, but to make the best quality beer you need an ingredient you can only get if you have the quest and read the pamphlet. Most ingredients can be found if you look around on the maps. This makes the "Beer" quest finishable!
File:
1 edited

Legend:

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

    r586 r618  
    182182           @return: False when it failes""" 
    183183        if quest_id in self.active_quests: 
    184             self.finished_quests[quest_id] = self.active_quests[quest_id] 
    185             del self.active_quests[quest_id] 
     184            self.finished_quests.append(quest_id) 
     185            self.active_quests.remove(quest_id) 
    186186            return True 
    187187        return False 
     
    201201           @return: False when it failes""" 
    202202        if quest_id in self.active_quests: 
    203             self.failed_quests[quest_id] = self.active_quests[quest_id] 
    204             del self.active_quests[quest_id] 
     203            self.failed_quests.append(quest_id) 
     204            self.active_quests.remove(quest_id) 
    205205            return True 
    206206        return False 
Note: See TracChangeset for help on using the changeset viewer.