mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
cashbot boss treasure
This commit is contained in:
parent
b4afca2fce
commit
7139be634f
1 changed files with 13 additions and 6 deletions
|
@ -1,16 +1,23 @@
|
||||||
class DistributedCashbotBossTreasureAI:
|
from toontown.safezone import DistributedTreasureAI
|
||||||
pass
|
from toontown.safezone import TreasureGlobals
|
||||||
'''from toontown.safezone import DistributedSZTreasureAI
|
|
||||||
|
|
||||||
class DistributedCashbotBossTreasureAI(DistributedSZTreasureAI.DistributedSZTreasureAI):
|
class DistributedCashbotBossTreasureAI(DistributedTreasureAI.DistributedTreasureAI):
|
||||||
|
|
||||||
def __init__(self, air, boss, goon, style, fx, fy, fz):
|
def __init__(self, air, boss, goon, style, fx, fy, fz):
|
||||||
pos = goon.getPos()
|
pos = goon.getPos()
|
||||||
DistributedSZTreasureAI.DistributedSZTreasureAI.__init__(self, air, boss, pos[0], pos[1], 0)
|
type = TreasureGlobals.SafeZoneTreasureSpawns[style][0]
|
||||||
|
DistributedTreasureAI.DistributedTreasureAI.__init__(self, air, boss, type, pos[0], pos[1], 0)
|
||||||
self.goonId = goon.doId
|
self.goonId = goon.doId
|
||||||
self.style = style
|
self.style = style
|
||||||
self.finalPosition = (fx, fy, fz)
|
self.finalPosition = (fx, fy, fz)
|
||||||
|
|
||||||
|
def validAvatar(self, av):
|
||||||
|
if av.getHp() < av.getMaxHp() and av.getHp() > 0:
|
||||||
|
av.toonUp(self.healAmount)
|
||||||
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def getGoonId(self):
|
def getGoonId(self):
|
||||||
return self.goonId
|
return self.goonId
|
||||||
|
|
||||||
|
@ -48,4 +55,4 @@ class DistributedCashbotBossTreasureAI(DistributedSZTreasureAI.DistributedSZTrea
|
||||||
self.d_setFinalPosition(x, y, z)
|
self.d_setFinalPosition(x, y, z)
|
||||||
|
|
||||||
def d_setFinalPosition(self, x, y, z):
|
def d_setFinalPosition(self, x, y, z):
|
||||||
self.sendUpdate('setFinalPosition', [x, y, z])'''
|
self.sendUpdate('setFinalPosition', [x, y, z])
|
||||||
|
|
Loading…
Reference in a new issue