2015-03-03 22:10:12 +00:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
|
2015-05-10 11:47:03 +00:00
|
|
|
import DistributedToonStatuaryAI
|
|
|
|
import DistributedStatuaryAI
|
2015-03-03 22:10:12 +00:00
|
|
|
|
|
|
|
class DistributedGardenPlotAI(DistributedLawnDecorAI):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenPlotAI")
|
|
|
|
|
2015-05-10 11:47:03 +00:00
|
|
|
def plantFlower(self, species, variety):
|
|
|
|
flower = DistributedFlowerAI.DistributedFlowerAI()
|
2015-03-03 22:10:12 +00:00
|
|
|
|
2015-05-10 11:47:03 +00:00
|
|
|
def plantGagTree(self, gagTrack, gagLevel):
|
|
|
|
tree = DistributedGagTreeAI.DistributedGagTreeAI()
|
2015-03-03 22:10:12 +00:00
|
|
|
|
2015-05-10 11:47:03 +00:00
|
|
|
def plantStatuary(self, species):
|
|
|
|
statue = DistributedStatuaryAI.DistributedStatuaryAI()
|
2015-03-03 22:10:12 +00:00
|
|
|
|
2015-05-10 11:47:03 +00:00
|
|
|
def plantToonStatuary(self, species, dnaCode):
|
|
|
|
statue = DistributedToonStatuaryAI.DistributedToonStatuaryAI()
|
2015-03-03 22:10:12 +00:00
|
|
|
|
2015-05-10 11:47:03 +00:00
|
|
|
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)
|