Page 1 of 1

AmmoType to expose missing fields

Posted: Fri Jul 29, 2022 2:28 pm
by Muppet9010
At present the runtime AmmoType object doesn't expose some fields, this makes calculating via scripting the true runtime values of for a specific ammo in a weapon impossible, i.e. max range of a atomic-bomb ammo in a rocket-launcher, as atomic-rocket has a range_modifier of 1.5

https://wiki.factorio.com/Types/AmmoType
vs
https://lua-api.factorio.com/latest/Con ... l#AmmoType

The fields I see missing look to be the modifier fields:
  • range_modifier
    cooldown_modifier
    consumption_modifier
AmmoType being obtained at runtime from its prototype via: https://lua-api.factorio.com/latest/Lua ... _ammo_type

Re: AmmoType to expose missing fields

Posted: Sat Jul 30, 2022 2:05 am
by Rseding91
Added.