Mercurial > parpg-core
changeset 168:704145b96171
Fix to decrease the wander rate of the npcs.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 09 Oct 2011 14:29:02 +0200 |
parents | 097782ae9c77 |
children | 87073af1d2d2 |
files | src/parpg/behaviours/npc.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py Sun Oct 09 14:03:25 2011 +0200 +++ b/src/parpg/behaviours/npc.py Sun Oct 09 14:29:02 2011 +0200 @@ -36,8 +36,11 @@ # wander rate is the number of "IDLEs" before a wander step # this could be set for individual NPCs at load time # or thrown out altogether. + # HACK: 09.Oct.2011 Beliar + # I increased the wander rate to 900 since the idle method + # gets called way more often now. self.wanderCounter = 0 - self.wanderRate = 9 + self.wanderRate = 900 def getTargetLocation(self): """@rtype: fife.Location