added ouchMultiplier

This commit is contained in:
Darren Ranalli 2003-12-13 01:07:02 +00:00
parent cbecb2d3ea
commit 842b8d6d4e
2 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class DistributedLevelAI(DistributedObjectAI.DistributedObjectAI,
self.notify.debug("setOuch %s" % penalty)
# make sure penalty is > 0
if av and (penalty > 0):
av.takeDamage(penalty)
av.takeDamage(penalty * self.levelMgrEntity.ouchMultiplier)
if __dev__:
# level editors should call this func to tweak attributes of level

View File

@ -27,6 +27,7 @@ class LevelMgr(Entity):
'lawbot':'l',
'bossbot':'c'}}),
('modelFilename', '', 'const'),
('ouchMultiplier', 1, 'int', {'min':1}),
)
class EditMgr(Entity):