[API Docs] Wrong description in AmmoTurretPrototype

Cubickman
Inserter
Inserter
Posts: 25
Joined: Sun Nov 10, 2024 9:08 am
Contact:

[API Docs] Wrong description in AmmoTurretPrototype

Post by Cubickman »

Hi

I think I found an error in the API docs.
For the AmmoTurretPrototype, the property automated_ammo_count does not give the correct description.
https://lua-api.factorio.com/latest/pro ... ammo_count

It says it "Shift of the "alt-mode icon" relative to the turret's position.", but in reality it's about the limit of items that an inserter can put in the turret.
Capture.JPG
Capture.JPG (69.73 KiB) Viewed 230 times

I searched for a while in the documentation to find out how to change this insertion limit without success, before finally trying this one despite the description.

And I tested it to check, and indeed it does not change the icon in alt mode.
With a value of 10
Test10.JPG
Test10.JPG (23.04 KiB) Viewed 230 times
With a value of 100
Test100.JPG
Test100.JPG (35.26 KiB) Viewed 230 times

Is that right, or am I missing something?
Bilka
Factorio Staff
Factorio Staff
Posts: 3697
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [API Docs] Wrong description in AmmoTurretPrototype

Post by Bilka »

The description belonged to a property that was removed from the prototype and indeed no longer applies. I've fixed the docs for the next release, thanks for the note.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”