You need to sign in or sign up before continuing.
Localize and use tables instead of single table entries
Even if it is a tad slower in theory get rid of this ff. and localize the individual tables in a consistent way throughout all files
-- Localize Hunger NG
local c = hunger_ng.configuration
local e = hunger_ng.effects
local f = hunger_ng.functions
local s = hunger_ng.settings
local S = hunger_ng.configuration.translator
hunger_ng.costs
is not widely used and might need to be treated differently anyways due to be used on globalsteps (performance is everything!). S()
for translations is de-facto standard and should be used like this. Confusion with s
is unlikey because it's used completely different.