get/set force and player modifiers + defines

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

get/set force and player modifiers + defines

Post by Honktown »

For discussion / observation:
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,
    ...
}
Ammo_damage, gun_speed, or turret_attack for force, are modifiers but not really the same as mining, running, etc modifiers. Could be included.
I have mods! I guess!
Link

Post Reply

Return to “Modding interface requests”