mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Remove velvet rope
This commit is contained in:
parent
d7279b7778
commit
fa1c3d0c0b
7 changed files with 8 additions and 33 deletions
|
@ -1605,8 +1605,6 @@ class OTPClientRepository(ClientRepositoryBase):
|
||||||
return 0
|
return 0
|
||||||
elif paidStatus == 'FULL':
|
elif paidStatus == 'FULL':
|
||||||
return OTPGlobals.AccessFull
|
return OTPGlobals.AccessFull
|
||||||
elif paidStatus == 'VELVET':
|
|
||||||
return OTPGlobals.AccessVelvetRope
|
|
||||||
else:
|
else:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,6 @@ ChatFeedback_PassedBlacklist = 32
|
||||||
ChatFeedback_Whitelist = 64
|
ChatFeedback_Whitelist = 64
|
||||||
ChatFeedback_OpenChat = 128
|
ChatFeedback_OpenChat = 128
|
||||||
AccessUnknown = 0
|
AccessUnknown = 0
|
||||||
AccessVelvetRope = 1
|
|
||||||
AccessFull = 2
|
AccessFull = 2
|
||||||
AccessInvalid = 3
|
AccessInvalid = 3
|
||||||
AvatarPendingCreate = -1
|
AvatarPendingCreate = -1
|
||||||
|
|
|
@ -5,7 +5,6 @@ from DistributedNPCToonBaseAI import *
|
||||||
from toontown.estate import BankGlobals
|
from toontown.estate import BankGlobals
|
||||||
|
|
||||||
class DistributedNPCBankerAI(DistributedNPCToonBaseAI):
|
class DistributedNPCBankerAI(DistributedNPCToonBaseAI):
|
||||||
FourthGagVelvetRopeBan = config.GetBool('want-ban-fourth-gag-velvet-rope', 0)
|
|
||||||
|
|
||||||
def __init__(self, air, npcId, questCallback = None, hq = 0):
|
def __init__(self, air, npcId, questCallback = None, hq = 0):
|
||||||
DistributedNPCToonBaseAI.__init__(self, air, npcId, questCallback)
|
DistributedNPCToonBaseAI.__init__(self, air, npcId, questCallback)
|
||||||
|
|
|
@ -5,7 +5,6 @@ from DistributedNPCToonBaseAI import *
|
||||||
from toontown.quest import Quests
|
from toontown.quest import Quests
|
||||||
|
|
||||||
class DistributedNPCToonAI(DistributedNPCToonBaseAI):
|
class DistributedNPCToonAI(DistributedNPCToonBaseAI):
|
||||||
FourthGagVelvetRopeBan = config.GetBool('want-ban-fourth-gag-velvet-rope', 0)
|
|
||||||
|
|
||||||
def __init__(self, air, npcId, questCallback = None, hq = 0):
|
def __init__(self, air, npcId, questCallback = None, hq = 0):
|
||||||
DistributedNPCToonBaseAI.__init__(self, air, npcId, questCallback)
|
DistributedNPCToonBaseAI.__init__(self, air, npcId, questCallback)
|
||||||
|
|
|
@ -474,7 +474,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
if oldTracks == 0 and oldLevels == 0:
|
if oldTracks == 0 and oldLevels == 0:
|
||||||
self.notify.warning('reseting invalid inventory to MAX on toon: %s' % self.doId)
|
self.notify.warning('reseting invalid inventory to MAX on toon: %s' % self.doId)
|
||||||
self.inventory.zeroInv()
|
self.inventory.zeroInv()
|
||||||
self.inventory.maxOutInv(1, 1)
|
self.inventory.maxOutInv(1)
|
||||||
else:
|
else:
|
||||||
newInventory = InventoryBase.InventoryBase(self)
|
newInventory = InventoryBase.InventoryBase(self)
|
||||||
oldList = emptyInv.makeFromNetStringForceSize(inventoryNetString, oldTracks, oldLevels)
|
oldList = emptyInv.makeFromNetStringForceSize(inventoryNetString, oldTracks, oldLevels)
|
||||||
|
@ -488,9 +488,9 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
def getInventory(self):
|
def getInventory(self):
|
||||||
return self.inventory.makeNetString()
|
return self.inventory.makeNetString()
|
||||||
|
|
||||||
def doRestock(self, noUber = 1, noPaid = 1):
|
def doRestock(self, noUber = 1):
|
||||||
self.inventory.zeroInv()
|
self.inventory.zeroInv()
|
||||||
self.inventory.maxOutInv(noUber, noPaid)
|
self.inventory.maxOutInv(noUber)
|
||||||
self.d_setInventory(self.inventory.makeNetString())
|
self.d_setInventory(self.inventory.makeNetString())
|
||||||
|
|
||||||
def setDefaultShard(self, shard):
|
def setDefaultShard(self, shard):
|
||||||
|
@ -3703,11 +3703,7 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
if paidStatus == 'unpaid':
|
if paidStatus == 'unpaid':
|
||||||
access = 1
|
access = 1
|
||||||
if access == OTPGlobals.AccessInvalid:
|
if access == OTPGlobals.AccessInvalid:
|
||||||
if not __dev__:
|
access = OTPGlobals.AccessFull
|
||||||
self.air.writeServerEvent('Setting Access', self.doId, 'setAccess not being sent by the OTP Server, changing access to unpaid')
|
|
||||||
access = OTPGlobals.AccessVelvetRope
|
|
||||||
elif __dev__:
|
|
||||||
access = OTPGlobals.AccessFull
|
|
||||||
self.setGameAccess(access)
|
self.setGameAccess(access)
|
||||||
|
|
||||||
def setGameAccess(self, access):
|
def setGameAccess(self, access):
|
||||||
|
|
|
@ -241,14 +241,13 @@ class InventoryBase(DirectObject.DirectObject):
|
||||||
self.updateInventory(newInventory)
|
self.updateInventory(newInventory)
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
def maxOutInv(self, filterUberGags = 0, filterPaidGags = 0):
|
def maxOutInv(self, filterUberGags = 0):
|
||||||
unpaid = self.toon.getGameAccess() != ToontownGlobals.AccessFull
|
unpaid = self.toon.getGameAccess() != ToontownGlobals.AccessFull
|
||||||
for track in xrange(len(Tracks)):
|
for track in xrange(len(Tracks)):
|
||||||
if self.toon.hasTrackAccess(track):
|
if self.toon.hasTrackAccess(track):
|
||||||
for level in xrange(len(Levels[track])):
|
for level in xrange(len(Levels[track])):
|
||||||
if level <= LAST_REGULAR_GAG_LEVEL or not filterUberGags:
|
if level <= LAST_REGULAR_GAG_LEVEL or not filterUberGags:
|
||||||
if not filterPaidGags or not (unpaid and gagIsPaidOnly(track, level)):
|
self.addItem(track, level)
|
||||||
self.addItem(track, level)
|
|
||||||
|
|
||||||
addedAnything = 1
|
addedAnything = 1
|
||||||
while addedAnything:
|
while addedAnything:
|
||||||
|
@ -259,12 +258,10 @@ class InventoryBase(DirectObject.DirectObject):
|
||||||
level = len(Levels[track]) - 1
|
level = len(Levels[track]) - 1
|
||||||
if level > LAST_REGULAR_GAG_LEVEL and filterUberGags:
|
if level > LAST_REGULAR_GAG_LEVEL and filterUberGags:
|
||||||
level = LAST_REGULAR_GAG_LEVEL
|
level = LAST_REGULAR_GAG_LEVEL
|
||||||
if not filterPaidGags or not (unpaid and gagIsPaidOnly(track, level)):
|
result = self.addItem(track, level)
|
||||||
result = self.addItem(track, level)
|
|
||||||
level -= 1
|
level -= 1
|
||||||
while result <= 0 and level >= 0:
|
while result <= 0 and level >= 0:
|
||||||
if not filterPaidGags or not (unpaid and gagIsPaidOnly(track, level)):
|
result = self.addItem(track, level)
|
||||||
result = self.addItem(track, level)
|
|
||||||
level -= 1
|
level -= 1
|
||||||
|
|
||||||
if result > 0:
|
if result > 0:
|
||||||
|
|
|
@ -102,19 +102,6 @@ UnpaidMaxSkills = [Levels[0][1] - 1,
|
||||||
Levels[6][1] - 1]
|
Levels[6][1] - 1]
|
||||||
ExperienceCap = 300
|
ExperienceCap = 300
|
||||||
|
|
||||||
def gagIsPaidOnly(track, level):
|
|
||||||
return Levels[track][level] > UnpaidMaxSkills[track]
|
|
||||||
|
|
||||||
|
|
||||||
def gagIsVelvetRoped(track, level):
|
|
||||||
if level > 0:
|
|
||||||
if track in [4, 5]:
|
|
||||||
if level > 3:
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
MaxToonAcc = 95
|
MaxToonAcc = 95
|
||||||
StartingLevel = 0
|
StartingLevel = 0
|
||||||
|
|
Loading…
Reference in a new issue