Page 1 of 1

Move get_item_localised_name from the quality mod to core utils

Posted: Tue Dec 03, 2024 8:59 pm
by LuziferSenpai
Hey,

the function get_item_localised_name from the quality mod is awesome, but it would be even better if it was a utils function.

Greetz,

Luzifer

Re: Move get_item_localised_name from the quality mod to core utils

Posted: Tue Dec 03, 2024 9:06 pm
by PennyJim
That would force the get_prototype function to be in util and that's honestly the one I feel needs to be in there more

But yeah I do think they are simple and useful enough functions to deserve to be canon utilities

Re: Move get_item_localised_name from the quality mod to core utils

Posted: Fri Dec 06, 2024 12:21 am
by protocol_1903
+1, i dont understand why it isn't there already

Re: Move get_item_localised_name from the quality mod to core utils

Posted: Sun Dec 29, 2024 12:17 pm
by IsaacOscar
Several of my otherwise simple mods have had to define my own get_prototypes function (which retuens an array so you can either loop over everything, or get a specific prototype), so I was very surprised it's not already in utils.

Re: Move get_item_localised_name from the quality mod to core utils

Posted: Thu Jan 09, 2025 4:30 am
by raiguard
I agree that this would be nice to have in lualib. In the meantime, I have added some similar things to flib for getting localised names and prototypes by base type.