Ignore:
Timestamp:
06/11/09 09:36:48 (10 years ago)
Author:
maximinus_parpg
Message:

A few minor edits.
Added windmill gfx and to the map, but FIFE can't load the PNG's.
Left PARPG in a playable state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/engine.py

    r121 r122  
    116116        """Given the objects ID, return the text strings and callbacks""" 
    117117        actions=[] 
     118        # note: ALWAYS check NPC's first! 
     119        # is it an NPC? 
     120        for i in self.npcs: 
     121            if(obj_id == i.id): 
     122                # keep it simple for now 
     123                actions.append(("Talk",None)) 
     124                actions.append(("Attack",None)) 
    118125        # is it in our objects? 
    119126        for i in self.objects: 
     
    127134                    actions.append(("Pick Up",None)) 
    128135                return actions 
    129         # is it an NPC? 
    130         for i in self.npcs: 
    131             if(obj_id == i.id): 
    132                 # keep it simple for now 
    133                 actions.append(("Talk",None)) 
    134                 actions.append(("Attack",None)) 
    135136        return actions 
    136137 
Note: See TracChangeset for help on using the changeset viewer.