hood: generate acorn acres
This commit is contained in:
parent
fbd8590498
commit
d4d26d5ad9
2 changed files with 13 additions and 6 deletions
|
@ -22,6 +22,7 @@ from toontown.hood.DLHoodDataAI import DLHoodDataAI
|
||||||
from toontown.hood.GSHoodDataAI import GSHoodDataAI
|
from toontown.hood.GSHoodDataAI import GSHoodDataAI
|
||||||
from toontown.hood.GZHoodDataAI import GZHoodDataAI
|
from toontown.hood.GZHoodDataAI import GZHoodDataAI
|
||||||
from toontown.hood.MMHoodDataAI import MMHoodDataAI
|
from toontown.hood.MMHoodDataAI import MMHoodDataAI
|
||||||
|
from toontown.hood.OZHoodDataAI import OZHoodDataAI
|
||||||
from toontown.hood.TTHoodDataAI import TTHoodDataAI
|
from toontown.hood.TTHoodDataAI import TTHoodDataAI
|
||||||
from toontown.pets.PetManagerAI import PetManagerAI
|
from toontown.pets.PetManagerAI import PetManagerAI
|
||||||
from toontown.quest.QuestManagerAI import QuestManagerAI
|
from toontown.quest.QuestManagerAI import QuestManagerAI
|
||||||
|
@ -219,6 +220,12 @@ class ToontownAIRepository(ToontownInternalRepository):
|
||||||
)
|
)
|
||||||
self.generateHood(DGHoodDataAI, ToontownGlobals.DaisyGardens)
|
self.generateHood(DGHoodDataAI, ToontownGlobals.DaisyGardens)
|
||||||
|
|
||||||
|
# Chip 'n Dale's Acorn Acres
|
||||||
|
self.zoneTable[ToontownGlobals.OutdoorZone] = (
|
||||||
|
(ToontownGlobals.OutdoorZone, 1, 0),
|
||||||
|
)
|
||||||
|
self.generateHood(OZHoodDataAI, ToontownGlobals.OutdoorZone)
|
||||||
|
|
||||||
# Goofy Speedway
|
# Goofy Speedway
|
||||||
self.zoneTable[ToontownGlobals.GoofySpeedway] = (
|
self.zoneTable[ToontownGlobals.GoofySpeedway] = (
|
||||||
(ToontownGlobals.GoofySpeedway, 1, 0),
|
(ToontownGlobals.GoofySpeedway, 1, 0),
|
||||||
|
|
|
@ -4,13 +4,13 @@ from toontown.toonbase import ToontownGlobals
|
||||||
from toontown.safezone import OZTreasurePlannerAI
|
from toontown.safezone import OZTreasurePlannerAI
|
||||||
from toontown.racing import DistributedStartingBlockAI
|
from toontown.racing import DistributedStartingBlockAI
|
||||||
from pandac.PandaModules import *
|
from pandac.PandaModules import *
|
||||||
|
from libtoontown import *
|
||||||
from toontown.racing.RaceGlobals import *
|
from toontown.racing.RaceGlobals import *
|
||||||
from toontown.classicchars import DistributedGoofySpeedwayAI
|
from toontown.classicchars import DistributedGoofySpeedwayAI
|
||||||
from toontown.safezone import DistributedPicnicBasketAI
|
from toontown.safezone import DistributedPicnicBasketAI
|
||||||
from toontown.classicchars import DistributedChipAI
|
from toontown.classicchars import DistributedChipAI
|
||||||
from toontown.classicchars import DistributedDaleAI
|
from toontown.classicchars import DistributedDaleAI
|
||||||
from toontown.distributed import DistributedTimerAI
|
from toontown.distributed import DistributedTimerAI
|
||||||
import string
|
|
||||||
from toontown.safezone import DistributedPicnicTableAI
|
from toontown.safezone import DistributedPicnicTableAI
|
||||||
from toontown.safezone import DistributedChineseCheckersAI
|
from toontown.safezone import DistributedChineseCheckersAI
|
||||||
from toontown.safezone import DistributedCheckersAI
|
from toontown.safezone import DistributedCheckersAI
|
||||||
|
@ -134,14 +134,14 @@ class OZHoodDataAI(HoodDataAI.HoodDataAI):
|
||||||
def findAndCreateGameTables(self, dnaGroup, zoneId, area, overrideDNAZone = 0, type = 'game_table'):
|
def findAndCreateGameTables(self, dnaGroup, zoneId, area, overrideDNAZone = 0, type = 'game_table'):
|
||||||
picnicTables = []
|
picnicTables = []
|
||||||
picnicTableGroups = []
|
picnicTableGroups = []
|
||||||
if isinstance(dnaGroup, DNAGroup) and string.find(dnaGroup.getName(), type) >= 0:
|
if isinstance(dnaGroup, DNAGroup) and dnaGroup.getName().find(type) >= 0:
|
||||||
if type == 'game_table':
|
if type == 'game_table':
|
||||||
nameInfo = dnaGroup.getName().split('_')
|
nameInfo = dnaGroup.getName().split('_')
|
||||||
pos = Point3(0, 0, 0)
|
pos = Point3(0, 0, 0)
|
||||||
hpr = Point3(0, 0, 0)
|
hpr = Point3(0, 0, 0)
|
||||||
for i in range(dnaGroup.getNumChildren()):
|
for i in range(dnaGroup.getNumChildren()):
|
||||||
childDnaGroup = dnaGroup.at(i)
|
childDnaGroup = dnaGroup.at(i)
|
||||||
if string.find(childDnaGroup.getName(), 'game_table') >= 0:
|
if childDnaGroup.getName().find('game_table') >= 0:
|
||||||
pos = childDnaGroup.getPos()
|
pos = childDnaGroup.getPos()
|
||||||
hpr = childDnaGroup.getHpr()
|
hpr = childDnaGroup.getHpr()
|
||||||
break
|
break
|
||||||
|
@ -160,14 +160,14 @@ class OZHoodDataAI(HoodDataAI.HoodDataAI):
|
||||||
def findAndCreatePicnicTables(self, dnaGroup, zoneId, area, overrideDNAZone = 0, type = 'picnic_table'):
|
def findAndCreatePicnicTables(self, dnaGroup, zoneId, area, overrideDNAZone = 0, type = 'picnic_table'):
|
||||||
picnicTables = []
|
picnicTables = []
|
||||||
picnicTableGroups = []
|
picnicTableGroups = []
|
||||||
if isinstance(dnaGroup, DNAGroup) and string.find(dnaGroup.getName(), type) >= 0:
|
if isinstance(dnaGroup, DNAGroup) and dnaGroup.getName().find(type) >= 0:
|
||||||
if type == 'picnic_table':
|
if type == 'picnic_table':
|
||||||
nameInfo = dnaGroup.getName().split('_')
|
nameInfo = dnaGroup.getName().split('_')
|
||||||
pos = Point3(0, 0, 0)
|
pos = Point3(0, 0, 0)
|
||||||
hpr = Point3(0, 0, 0)
|
hpr = Point3(0, 0, 0)
|
||||||
for i in range(dnaGroup.getNumChildren()):
|
for i in range(dnaGroup.getNumChildren()):
|
||||||
childDnaGroup = dnaGroup.at(i)
|
childDnaGroup = dnaGroup.at(i)
|
||||||
if string.find(childDnaGroup.getName(), 'picnic_table') >= 0:
|
if childDnaGroup.getName().find('picnic_table') >= 0:
|
||||||
pos = childDnaGroup.getPos()
|
pos = childDnaGroup.getPos()
|
||||||
hpr = childDnaGroup.getHpr()
|
hpr = childDnaGroup.getHpr()
|
||||||
break
|
break
|
||||||
|
@ -219,7 +219,7 @@ class OZHoodDataAI(HoodDataAI.HoodDataAI):
|
||||||
startingBlocks = []
|
startingBlocks = []
|
||||||
for i in range(dnaRacingPadGroup.getNumChildren()):
|
for i in range(dnaRacingPadGroup.getNumChildren()):
|
||||||
dnaGroup = dnaRacingPadGroup.at(i)
|
dnaGroup = dnaRacingPadGroup.at(i)
|
||||||
if string.find(dnaGroup.getName(), 'starting_block') >= 0:
|
if dnaGroup.getName().find('starting_block') >= 0:
|
||||||
padLocation = dnaGroup.getName().split('_')[2]
|
padLocation = dnaGroup.getName().split('_')[2]
|
||||||
pos = dnaGroup.getPos()
|
pos = dnaGroup.getPos()
|
||||||
hpr = dnaGroup.getHpr()
|
hpr = dnaGroup.getHpr()
|
||||||
|
|
Loading…
Reference in a new issue