Merge pull request #62 from RegDogg/patch-1

toon: Fix NPC positions including Flippy Toon Hall
This commit is contained in:
Open Toontown 2022-09-19 17:43:23 -04:00 committed by GitHub
commit 0c15708eb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,7 +155,7 @@ def createNPC(air, npcId, desc, zoneId, posIndex = 0, questCallback = None):
def createNpcsInZone(air, zoneId): def createNpcsInZone(air, zoneId):
npcs = [] npcs = []
canonicalZoneId = ZoneUtil.getCanonicalZoneId(zoneId) canonicalZoneId = ZoneUtil.getCanonicalZoneId(zoneId)
npcIdList = zone2NpcDict.get(canonicalZoneId, []) npcIdList = sorted(zone2NpcDict.get(canonicalZoneId, []))
for i in range(len(npcIdList)): for i in range(len(npcIdList)):
npcId = npcIdList[i] npcId = npcIdList[i]
npcDesc = NPCToonDict.get(npcId) npcDesc = NPCToonDict.get(npcId)