Mercurial > parpg-core
diff src/parpg/behaviours/npc.py @ 190:a22e92090018
The approach method of MovingAgentBehaviour now accepts a locatior or another instance, and uses the follow method to move to the instance position.
author | KarstenBock@gmx.net |
---|---|
date | Sat, 12 Nov 2011 20:54:25 +0100 |
parents | 704145b96171 |
children |
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py Sat Nov 12 16:27:39 2011 +0100 +++ b/src/parpg/behaviours/npc.py Sat Nov 12 20:54:25 2011 +0100 @@ -40,7 +40,7 @@ # I increased the wander rate to 900 since the idle method # gets called way more often now. self.wanderCounter = 0 - self.wanderRate = 900 + self.wanderRate = 9 def getTargetLocation(self): """@rtype: fife.Location