added ouchMultiplier
This commit is contained in:
parent
cbecb2d3ea
commit
842b8d6d4e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class LevelMgr(Entity):
|
|||
'lawbot':'l',
|
||||
'bossbot':'c'}}),
|
||||
('modelFilename', '', 'const'),
|
||||
('ouchMultiplier', 1, 'int', {'min':1}),
|
||||
)
|
||||
|
||||
class EditMgr(Entity):
|
||||
|
|
|
|||
Loading…
Reference in New Issue