AmmoType to expose missing fields

Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

AmmoType to expose missing fields

Post 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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: AmmoType to expose missing fields

Post by Rseding91 »

Added.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”