@@ -173,14 +173,32 @@ local function writeMods(outName, condFunc)
173173end
174174
175175writeMods (" ../Data/ModItem.lua" , function (mod )
176+ -- item or delve fossil
176177 return (mod .Domain == 1 or mod .Domain == 16 )
177- and (mod .GenerationType == 1 or mod .GenerationType == 2
178- or (mod .GenerationType == 3 and mod .Domain == 1 and mod .Id :match (" ^Synthesis" ))
178+ -- prefix or suffix
179+ and (mod .GenerationType == 1 or mod .GenerationType == 2
180+ -- delve unique
179181 or (mod .GenerationType == 3 and mod .Domain == 16 )
180- or mod .GenerationType == 5 or mod .GenerationType == 25 or mod .GenerationType == 24 or mod .GenerationType == 28 or mod .GenerationType == 29 )
181- and not mod .Id :match (" ^Hellscape[UpDown]+sideMap" ) -- Exclude Scourge map mods
182- and not mod .Id :match (" Royale" )
183- and # mod .AuraFlags == 0
182+ -- -- generic implicit
183+ -- or (mod.GenerationType == 3 and mod.Domain == 1)
184+ -- corrupted
185+ or mod .GenerationType == 5 )
186+ -- excl. separately exported
187+ and not mod .Id :match (" Royale" )
188+ and not mod .Id :match (" Necropolis" )
189+ and not mod .Id :match (" ^Synthesis" )
190+ and not (mod .GenerationType == 28 or mod .GenerationType == 29 )
191+ and # mod .AuraFlags == 0
192+ end )
193+ writeMods (" ../Data/ModSynthesis.lua" , function (mod )
194+ return mod .GenerationType == 3 and mod .Domain == 1 and mod .Id :match (" ^Synthesis" )
195+ end )
196+ writeMods (" ../Data/ModScourge.lua" , function (mod )
197+ return mod .Domain == 1 and (mod .GenerationType == 24 or mod .GenerationType == 25 ) and
198+ not mod .Id :match (" ^Hellscape[UpDown]+sideMap" ) -- Exclude Scourge map mods
199+ end )
200+ writeMods (" ../Data/ModEldritch.lua" , function (mod )
201+ return mod .Domain == 1 and (mod .GenerationType == 28 or mod .GenerationType == 29 )
184202end )
185203writeMods (" ../Data/ModFlask.lua" , function (mod )
186204 return mod .Domain == 2 and (mod .GenerationType == 1 or mod .GenerationType == 2 )
0 commit comments