Poodletooth-iLand/toontown/fishing/FishingTargetGlobals.py

192 lines
6.4 KiB
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
from toontown.toonbase import ToontownGlobals
OFF = 0
MOVING = 1
StepTime = 5.0
MinimumHunger = 1.0
NUM_TARGETS_INDEX = 0
POS_START_INDEX = 1
POS_END_INDEX = 4
RADIUS_INDEX = 4
WATER_LEVEL_INDEX = 5
__targetInfoDict = {ToontownGlobals.ToontownCentral: (2,
-81,
31,
-4.8,
14,
-1.4),
ToontownGlobals.SillyStreet: (2,
20,
-664,
-1.4,
14,
-1.4 - 0.438),
ToontownGlobals.LoopyLane: (2,
-234,
175,
-1.4,
14,
-1.4 - 0.462),
ToontownGlobals.PunchlinePlace: (2,
529,
-70,
-1.4,
13,
-1.4 - 0.486),
ToontownGlobals.DonaldsDock: (2,
-17,
130,
1.73,
15,
1.73 - 3.615),
ToontownGlobals.BarnacleBoulevard: (2,
381,
-350,
-2,
14,
-2 - 0.482),
ToontownGlobals.SeaweedStreet: (2,
-395,
-226,
-2,
14,
-2 - 0.482),
ToontownGlobals.LighthouseLane: (2,
350,
100,
-2,
14,
-2 - 0.482),
ToontownGlobals.DaisyGardens: (2,
50,
47,
-1.48,
13,
-1.48 - 0.345),
ToontownGlobals.ElmStreet: (2,
149,
44,
-1.43,
13,
-1.43 - 0.618),
ToontownGlobals.MapleStreet: (2,
176,
100,
-1.43,
13,
-1.43 - 0.618),
ToontownGlobals.OakStreet: (2,
134,
-70.5,
-1.5,
13,
-1.5 - 0.377),
ToontownGlobals.MinniesMelodyland: (2,
-0.2,
-20.2,
-14.65,
14,
-14.65 - -12),
ToontownGlobals.AltoAvenue: (2,
-580,
-90,
-0.87,
14,
-0.87 - 1.844),
ToontownGlobals.BaritoneBoulevard: (2,
-214,
250,
-0.87,
14,
-0.87 - 1.844),
ToontownGlobals.TenorTerrace: (2,
715,
-15,
-0.87,
14,
-0.87 - 1.844),
ToontownGlobals.TheBrrrgh: (2,
-58,
-26,
1.7,
10,
-0.8),
ToontownGlobals.WalrusWay: (2,
460,
29,
-2,
13,
-2 - 0.4),
ToontownGlobals.SleetStreet: (2,
340,
480,
-2,
13,
-2 - 0.4),
ToontownGlobals.PolarPlace: (2,
45.5,
90.86,
-2,
13,
-2 - 0.4),
ToontownGlobals.DonaldsDreamland: (2,
159,
0.2,
-17.1,
14,
-17.1 - -14.6),
ToontownGlobals.LullabyLane: (2,
118,
-185,
-2.1,
14,
-2.1 - 0.378),
ToontownGlobals.PajamaPlace: (2,
241,
-348,
-2.1,
14,
-2.1 - 0.378),
2015-05-11 16:23:04 +00:00
ToontownGlobals.MyEstate: (5,
2015-03-03 22:10:12 +00:00
30,
-126,
-0.3,
16,
-0.83),
ToontownGlobals.OutdoorZone: (3,
-130.8,
-15.5,
-0.025,
15,
-0.5)}
2015-03-03 22:10:12 +00:00
def getNumTargets(zone):
info = __targetInfoDict.get(zone)
if info:
return info[NUM_TARGETS_INDEX]
else:
return 2
def getTargetCenter(zone):
info = __targetInfoDict.get(zone)
if info:
return info[POS_START_INDEX:POS_END_INDEX]
else:
return (0, 0, 0)
def getTargetRadius(zone):
info = __targetInfoDict.get(zone)
if info:
return info[RADIUS_INDEX]
else:
return 10
def getWaterLevel(zone):
info = __targetInfoDict.get(zone)
if info:
return info[WATER_LEVEL_INDEX]
else:
return 0