Add laff restock toons to each HQ

This commit is contained in:
DenialMC 2015-05-11 23:36:31 +03:00
parent c2920fae26
commit b253e3edda
3 changed files with 76 additions and 1 deletions

View file

@ -1,6 +1,7 @@
from toontown.chat.ChatGlobals import CFSpeech, CFTimeout from toontown.chat.ChatGlobals import CFSpeech, CFTimeout
from toontown.toonbase import TTLocalizer, ToontownGlobals from toontown.toonbase import TTLocalizer, ToontownGlobals
from toontown.toontowngui import TTDialog from toontown.toontowngui import TTDialog
from toontown.toon import NPCToons
from DistributedNPCToonBase import DistributedNPCToonBase from DistributedNPCToonBase import DistributedNPCToonBase
import LaffRestockGlobals import LaffRestockGlobals
@ -19,6 +20,13 @@ class DistributedNPCLaffRestock(DistributedNPCToonBase):
self.dialog.cleanup() self.dialog.cleanup()
del self.dialog del self.dialog
def initToonState(self):
self.setAnimState('neutral', 0.9, None, None)
if self.name in NPCToons.LaffRestockPositions:
pos = NPCToons.LaffRestockPositions[self.name]
self.setPos(*pos[0])
self.setH(pos[1])
def getCollSphereRadius(self): def getCollSphereRadius(self):
return 1.0 return 1.0

View file

@ -11572,6 +11572,26 @@ NPCToonDict = {20000: (-1,
'm', 'm',
0, 0,
NPC_REGULAR), NPC_REGULAR),
10001: (10000,
lnames[10001],
('fss',
'md',
'l',
'f',
11,
0,
11,
11,
0,
3,
0,
3,
4,
7,
0),
'f',
0,
NPC_LAFF_RESTOCK),
11001: (11000, 11001: (11000,
lnames[11001], lnames[11001],
('dll', ('dll',
@ -11592,6 +11612,46 @@ NPCToonDict = {20000: (-1,
'm', 'm',
0, 0,
NPC_LAFF_RESTOCK), NPC_LAFF_RESTOCK),
12001: (12000,
lnames[12001],
('mss',
'ls',
's',
'm',
8,
0,
8,
8,
5,
12,
5,
12,
7,
16,
0),
'm',
0,
NPC_LAFF_RESTOCK),
13001: (13000,
lnames[13001],
('dss',
'ld',
's',
'f',
17,
0,
17,
17,
1,
24,
1,
24,
0,
9,
0),
'f',
0,
NPC_LAFF_RESTOCK),
# Magic Cat SOS # Magic Cat SOS
# 5 Stars, Sound SOS, Bikehorn 255 damage. "The Bikehorn of Death". # 5 Stars, Sound SOS, Bikehorn 255 damage. "The Bikehorn of Death".
91917: (-1, 91917: (-1,
@ -11655,8 +11715,12 @@ else:
'm', 'm',
1, 1,
NPC_REGULAR) NPC_REGULAR)
del lnames
BlockerPositions = {TTLocalizer.Flippy: (Point3(207.4, 18.81, -0.475), 90.0)} BlockerPositions = {TTLocalizer.Flippy: (Point3(207.4, 18.81, -0.475), 90.0)}
LaffRestockPositions = {lnames[11001]: ((-36.7, -39.2, 10.096), 540.0),
lnames[12001]: ((141.3, -461.6, -23.5), 0.0),
lnames[13001]: ((145.7, -389.5, -68.4), 0.0),
lnames[10001]: ((38.6, 127.8, 0.025), -180.0)}
del lnames
zone2NpcDict = {} zone2NpcDict = {}
def generateZone2NpcDict(): def generateZone2NpcDict():

View file

@ -6217,7 +6217,10 @@ NPCToonNames = {20000: 'Tutorial Tom',
7009: 'Jimmy Thelock', 7009: 'Jimmy Thelock',
7010: 'Little Blinky', 7010: 'Little Blinky',
7011: 'Donald', 7011: 'Donald',
10001: 'Healer Sara',
11001: 'Healer Gabriel', 11001: 'Healer Gabriel',
12001: 'Healer Bill',
13001: 'Healer Clover',
91917: 'Magic Cat'} 91917: 'Magic Cat'}
zone2TitleDict = {2513: ('Toon Hall', ''), zone2TitleDict = {2513: ('Toon Hall', ''),
2514: ('Toontown Bank', ''), 2514: ('Toontown Bank', ''),