Mercurial > parpg-core
diff src/parpg/behaviours/npc.py @ 59:2915dbb60940
Fixed error in setting the initial state of the NPC behaviour
author | KarstenBock@gmx.net |
---|---|
date | Mon, 05 Sep 2011 14:14:42 +0200 |
parents | d5491eb9e3e4 |
children | 58661f5b2f6b |
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py Mon Sep 05 14:09:04 2011 +0200 +++ b/src/parpg/behaviours/npc.py Mon Sep 05 14:14:42 2011 +0200 @@ -15,7 +15,8 @@ from random import randrange -from base import * +import base +from base import BaseBehaviour class NPCBehaviour(BaseBehaviour): """This is a basic NPC behaviour""" @@ -23,7 +24,7 @@ super(NPCBehaviour, self).__init__(layer) self.parent = parent - self.state = _AGENT_STATE_NONE + self.state = base._AGENT_STATE_NONE self.pc = None self.target_loc = None self.nextAction = None