Mercurial > parpg-source
diff behaviours/npc.py @ 158:04854cf6e1ac
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 | 90ad38b00f13 |
children | ff4f9b387cac |
line wrap: on
line diff
--- a/behaviours/npc.py Sat Nov 12 16:27:39 2011 +0100 +++ b/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