wtf this fixed it cool

This commit is contained in:
Loudrob 2015-07-21 09:08:00 -04:00
parent 43b138e338
commit 41d8b63ec2
3 changed files with 11 additions and 8 deletions

View file

@ -674,6 +674,15 @@ class DistributedEstateAI(DistributedObjectAI):
self.b_setRentalTimeStamp(time.time() + duration * 60) self.b_setRentalTimeStamp(time.time() + duration * 60)
self.b_setRentalType(rentType) self.b_setRentalType(rentType)
def updateToons(self):
self.d_setSlot0ToonId(self.toons[0])
self.d_setSlot1ToonId(self.toons[1])
self.d_setSlot2ToonId(self.toons[2])
self.d_setSlot3ToonId(self.toons[3])
self.d_setSlot4ToonId(self.toons[4])
self.d_setSlot5ToonId(self.toons[5])
self.sendUpdate('setIdList', [self.toons])
def setSlot0ToonId(self, id): def setSlot0ToonId(self, id):
self.toons[0] = id self.toons[0] = id

View file

@ -232,12 +232,6 @@ def satanFlowerAll(species=49, variety=0):
i += 1 i += 1
def troll(task):
channel = invoker.GetPuppetConnectionChannel(invoker.doId)
av.air.sendSysMsg('OMG YOU SOLD YOUR SOUL NOOOOOOOOOOOOOOOOOOOO', channel)
return task.done
taskMgr.doMethodLater(6.66, troll, 'satan-troll')
return '%d disgusting flowers planted' % i return '%d disgusting flowers planted' % i
@magicWord(category=CATEGORY_PROGRAMMER) @magicWord(category=CATEGORY_PROGRAMMER)

View file

@ -239,7 +239,7 @@ class LoadEstateFSM(FSM):
estate.pets = [] estate.pets = []
self.estate.toons = self.toonIds self.estate.toons = self.toonIds
#self.estate.updateToons() self.estate.updateToons()
# Gotcha! Now we need to load houses: # Gotcha! Now we need to load houses:
self.demand('LoadHouses') self.demand('LoadHouses')