Ignore:
Timestamp:
02/04/10 15:43:41 (10 years ago)
Author:
maximinus_parpg
Message:

Added inventory images to inventory.
Inventory now displays multiple images, not only the dagger.
Image data is stored in the object, not the inventory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/actors.py

    r479 r480  
    119119            self.inventory.placeItem(CarryableItem(ID=456, name="Dagger123")) 
    120120            self.inventory.placeItem(CarryableItem(ID=555, name="Beer")) 
    121             self.inventory.placeItem(CarryableItem(ID=616, name="Pamphlet")) 
     121            self.inventory.placeItem(CarryableItem(ID = 616, 
     122                                                   name = "Pamphlet", 
     123                                                   image = "/gui/inv_images/inv_pamphlet.png")) 
    122124        else: 
    123125            self.inventory = inventory 
     
    135137    def __setstate__(self, state): 
    136138        self.__dict__.update(state) 
    137      
     139 
    138140    def meet(self, npc): 
    139141        """Record that the PC has met a certain NPC 
Note: See TracChangeset for help on using the changeset viewer.