1. some other modifiers, such as turrets, have an interface get/set function
2. Force and Character bonuses/modifiers are scattered in the API with no list in the api (Concepts#Modifier is a collection, kind of)
Cons:
Breaking change if existing LuaForce / LuaPlayer RW values are removed
Pros:
common interface for all modifiers (in one or two defines tables)
all modifiers together
e.g.
Code: Select all
defines.force_modifiers = {
["manual_mining_speed_modifier"] = 1,
...
}