comparison behaviours/npc.py @ 181:ff4f9b387cac

Fixed npcs not actually wandering around.
author Beliar <KarstenBock@gmx.net>
date Thu, 15 Mar 2012 14:15:42 +0100
parents 04854cf6e1ac
children
comparison
equal deleted inserted replaced
180:0d0422243490 181:ff4f9b387cac
103 def wander(self, location): 103 def wander(self, location):
104 """Nice slow movement for random walking. 104 """Nice slow movement for random walking.
105 @type location: fife.Location 105 @type location: fife.Location
106 @param location: Where the NPC will walk to. 106 @param location: Where the NPC will walk to.
107 @return: None""" 107 @return: None"""
108 self.agent.move('walk', location, self.speed - 1) 108 self.agent.move('walk', location, self.speed)
109 coords = location.getMapCoordinates()