This commit is contained in:
DenialMC 2015-04-08 14:59:32 +03:00
parent 4ef9b360bd
commit 88416e6ec1
4 changed files with 14 additions and 14 deletions

View file

@ -840,7 +840,7 @@ dclass DistributedToon : DistributedPlayer {
setMoney(int16 = 0) required ownrecv db;
setBankMoney(int32 = 0) required ownrecv;
setMaxMoney(int16 = 40) required broadcast ownrecv db;
setBankMaxMoney(int32 = 10000) required broadcast ownrecv db;
setMaxBankMoney(int32 = 10000) required broadcast ownrecv db;
setMaxHp(int16 = 15) required broadcast ownrecv db;
setHp(int16 = 15) required broadcast ownrecv db;
toonUp(uint16) broadcast ownrecv;

View file

@ -2,7 +2,7 @@
from pandac.PandaModules import *
hashVal = 348192052
hashVal = 348191280
from toontown.coghq import DistributedCashbotBossSafe, DistributedCashbotBossCrane, DistributedBattleFactory, DistributedCashbotBossTreasure, DistributedCogHQDoor, DistributedSellbotHQDoor, DistributedFactoryElevatorExt, DistributedMintElevatorExt, DistributedLawOfficeElevatorExt, DistributedLawOfficeElevatorInt, LobbyManager, DistributedMegaCorp, DistributedFactory, DistributedLawOffice, DistributedLawOfficeFloor, DistributedLift, DistributedDoorEntity, DistributedSwitch, DistributedButton, DistributedTrigger, DistributedCrushableEntity, DistributedCrusherEntity, DistributedStomper, DistributedStomperPair, DistributedLaserField, DistributedGolfGreenGame, DistributedSecurityCamera, DistributedMover, DistributedElevatorMarker, DistributedBarrelBase, DistributedGagBarrel, DistributedBeanBarrel, DistributedHealBarrel, DistributedGrid, ActiveCell, DirectionalCell, CrusherCell, DistributedCrate, DistributedSinkingPlatform, BattleBlocker, DistributedMint, DistributedMintRoom, DistributedMintBattle, DistributedStage, DistributedStageRoom, DistributedStageBattle, DistributedLawbotBossGavel, DistributedLawbotCannon, DistributedLawbotChair, DistributedCogKart, DistributedCountryClub, DistributedCountryClubRoom, DistributedMoleField, DistributedCountryClubBattle, DistributedMaze, DistributedFoodBelt, DistributedBanquetTable, DistributedGolfSpot

View file

@ -2372,21 +2372,21 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
def getMaxMoney(self):
return self.maxMoney
def b_setBankMaxMoney(self, bankMaxMoney):
self.d_setBankMaxMoney(bankMaxMoney)
self.setBankMaxMoney(bankMaxMoney)
def b_setMaxBankMoney(self, maxBankMoney):
self.d_setMaxBankMoney(maxBankMoney)
self.setMaxBankMoney(maxBankMoney)
if self.getBankMoney() > bankMaxMoney:
self.b_setBankMoney(bankMaxMoney)
if self.getBankMoney() > maxBankMoney:
self.b_setBankMoney(maxBankMoney)
def d_setBankMaxMoney(self, bankMaxMoney):
self.sendUpdate('setBankMaxMoney', [bankMaxMoney])
def d_setMaxBankMoney(self, maxBankMoney):
self.sendUpdate('setMaxBankMoney', [maxBankMoney])
def setBankMaxMoney(self, bankMaxMoney):
self.bankMaxMoney = bankMaxMoney
def setMaxBankMoney(self, maxBankMoney):
self.maxBankMoney = maxBankMoney
def getBankMaxMoney(self):
return self.bankMaxMoney
def getMaxBankMoney(self):
return self.maxBankMoney
def addMoney(self, deltaMoney):
money = deltaMoney + self.money

View file

@ -19,7 +19,7 @@ class DistributedToonUD(DistributedObjectUD):
def setMaxMoney(self, todo0):
pass
def setBankMaxMoney(self, todo0):
def setMaxBankMoney(self, todo0):
pass
def setMoney(self, todo0):