Ce dépôt a été archivé le 2020-03-15. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
-- We basically just want to clobber all our old route data, it's not worth storing - it's all good data, it's just that we don't want to preserve relics of the old location system.
chunk.traveled=nil
chunk.version=2
end
ifchunk.version==2then
-- Originally I split the zones based on locale. Later I just split everything based on locale. Discarding old data rather than doing the gymnastics needed to preserve it.
-- This is turning into a routine. :D
chunk.zone=nil
chunk.version=3
end
ifchunk.version==3then
-- Screwed up the item collection code in instances. Obliterate old data, try again.
ifchunk.itemthen
forid,datinpairs(chunk.item)do
dat.equip_no=nil
dat.equip_yes=nil
end
end
chunk.version=4
end
ifchunk.version==4then
-- Munged the shops rather badly. Whoopsydaisy.
ifchunk.monsterthen
localnv={}
forid,datinpairs(chunk.monster)do
iftype(dat)=="table"then
nv[id]=dat
end
end
chunk.monster=nv
end
chunk.version=5
end
ifchunk.version==5then
-- Horrible things involving objects. Let's preserve what we can.
-- Note that a few versions back (I'll have to check which) the standard bolus format changed. Since I can't actually *fix* it, I'm just ignoring it, but there's an implicit format change in there. I'll catch it and deal with it in the processing system.
chunk.warp=nil
chunk.routing_dump=nil-- and this shouldn't have been getting dumped anyway
chunk.version=7
end
ifchunk.version==7then
-- botched the achievement code, fixed the achievement code (maybe?)
chunk.achievement=nil
chunk.version=8
end
end
functionQH_Collector_UpgradeAll(Collector)
-- So, I screwed up the compression code, and there's no way to know what version was compressed . . . except that we thankfully didn't change the version number on that change. Any untagged compression will therefore be the version number that this was loaded with.
for_,vinpairs(Collector)do
--[[ QuestHelper:Assert(type(v) == "table") ]]
ifnotv.versionthen
QuestHelper:Assert(QuestHelper_Collector_Version)-- This is going to fail somehow. I just know it. Seriously, this right here will be proof that, today, the gods hate me.