Changeset 469


Ignore:
Timestamp:
01/31/10 22:21:09 (10 years ago)
Author:
zenbitz
Message:

change to so we have give/get

Location:
trunk/game/scripts
Files:
3 edited

Legend:

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

    r415 r469  
    245245                self.callbacks["get_stuff"](state, command.get("get_stuff")) 
    246246 
    247             elif command.get("take_stuff"): 
    248                 self.callbacks["take_stuff"](state, command.get("take_stuff")) 
     247            elif command.get("give_stuff"): 
     248                self.callbacks["give_stuff"](state, command.get("give_stuff")) 
    249249 
    250250            elif command.get("dialogue"): 
  • trunk/game/scripts/dialoguevalidator.py

    r370 r469  
    122122                            action + " node") 
    123123                    #TODO: verify quest 
    124                 elif action in ("get_stuff", "take_stuff"): 
     124                elif action in ("get_stuff", "give_stuff"): 
    125125                    if not isinstance(entry[action], types.StringType): 
    126126                        raise DialogueFormatException(\ 
  • trunk/game/scripts/gui/dialoguegui.py

    r424 r469  
    5959                print "You've now have the %s" % thing 
    6060 
    61         def take_stuff(state,thing): 
     61        def give_stuff(state,thing): 
    6262            if state['pc'].inventory.has(thing): 
    6363                state['pc'].inventory.takeItem(thing) 
     
    7878            'set_value'     : set_value, 
    7979            'start_quest'   : start_quest, 
    80             'take_stuff'    : take_stuff 
     80            'give_stuff'    : give_stuff 
    8181        } 
    8282 
Note: See TracChangeset for help on using the changeset viewer.