durability_description_value: Locale parameter request

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Nauviax
Inserter
Inserter
Posts: 34
Joined: Sun Jan 28, 2018 9:30 am
Contact:

durability_description_value: Locale parameter request

Post by Nauviax »

https://lua-api.factorio.com/latest/pro ... tion_value

Follow-up of viewtopic.php?p=688651 because it sounds like the current implementation is intended.

I'd like to request a fourth parameter be passed to durability_description_value in ToolPrototype, containing "remaining durability" as a percentage. This differs from the current third parameter because when viewed outside of Factoriopedia, the third parameter is adjusted to always be 100% at common quality.

For my mod I'm working on, common science packs have only 50% durability/capacity, and the third parameter __3__ used by default is both misleading and inconsistent between tooltip and Factoriopedia. Currently I am using __1__ as a workaround (remaining durability), though this is shown as a long decimal rather than a percentage.

(See linked forum page above for screenshots)
Post Reply

Return to “Modding interface requests”