[SOLVED] Changing stack_size for a units inventory
Posted: Sun Sep 04, 2016 10:38 am
Hi
I'm new to modding but I really like factorio and thought I'd make an attempt at changing the combat balance a bit.
As a part of this i want to drastically reduce the amount of ammo a gun turret can store. This would make them dependent on a logistics supply.
I realize this can be done by can be done by reducing the stack_size for bullets, but I don't want to reduce the amount chests can hold.I have searched through the files, but the inventory and stack_sizes only seems to appear on entities, so I'm guessing the inventory and stack_size logic is coded in c++.
Is it possible to do this with the modding api? Or through some other workaround?
I'm new to modding but I really like factorio and thought I'd make an attempt at changing the combat balance a bit.
As a part of this i want to drastically reduce the amount of ammo a gun turret can store. This would make them dependent on a logistics supply.
I realize this can be done by can be done by reducing the stack_size for bullets, but I don't want to reduce the amount chests can hold.I have searched through the files, but the inventory and stack_sizes only seems to appear on entities, so I'm guessing the inventory and stack_size logic is coded in c++.
Is it possible to do this with the modding api? Or through some other workaround?