mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 21:52:25 -06:00
35 lines
1.3 KiB
Python
35 lines
1.3 KiB
Python
from direct.directnotify import DirectNotifyGlobal
|
|
from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
|
|
import DistributedToonStatuaryAI
|
|
import DistributedStatuaryAI
|
|
|
|
class DistributedGardenPlotAI(DistributedLawnDecorAI):
|
|
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenPlotAI")
|
|
|
|
def __init__(self, air):
|
|
self.air = air
|
|
self.planted = None
|
|
|
|
def plantFlower(self, species, variety):
|
|
flower = DistributedFlowerAI.DistributedFlowerAI(self.air, species, variety)
|
|
self.planted = flower
|
|
|
|
def plantGagTree(self, gagTrack, gagLevel):
|
|
tree = DistributedGagTreeAI.DistributedGagTreeAI(self.air, gagTrack, gagLevel)
|
|
self.planted = tree
|
|
|
|
def plantStatuary(self, species):
|
|
statue = DistributedStatuaryAI.DistributedStatuaryAI(self.air, species)
|
|
self.planted = statue
|
|
|
|
def plantToonStatuary(self, species, dnaCode):
|
|
statue = DistributedToonStatuaryAI.DistributedToonStatuaryAI(self.air, species, dnaCode)
|
|
self.planted = statue
|
|
|
|
def plantNothing(self, burntBeans):
|
|
avId = self.air.getAvatarIdFromSender()
|
|
av = self.air.doId2do[avId]
|
|
money = av.getMoney()
|
|
av.setMoney(money - burntBeans)
|
|
av.d_setMoney(money - burntBeans)
|
|
self.planted = None
|