Biter-Loot-Module deprecated


Alien units drop module. Sort added. Thanks jessefjxm for the code

6 years ago
0.16
7

b Mod biters may not loaded due to order

6 years ago

Notice that currently updating on loots are work on data.lua. If we rename it to data-updates.lua then all biters added in first round loading (data.lua) would be included. Otherwise some biters may be forgotten due to random loading order.

6 years ago

solved this problem through optional dependencies

6 years ago

data-updates.lua might be more adaptive so developers don't need to consider all newly added unit prototypes -- actually I find this problem when working with a mod I newly written ;)

6 years ago

I found that i made a mistake about loading mechanism. Prototype related luas that add contents should be put in data.lua, and those who modify contents should be in data-updates.lua, so they can work better with other mods that make thorough changes.

e.g. -- data.lua
require("prototypes.item.alien-module")
require("prototypes.item-group.item-groups-module")
require("prototypes.recipe.alien-module")

-- data-updates.lua
others

New response