durability_description_value: Locale parameter request
Posted: Sun Feb 08, 2026 6:11 pm
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)
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)