My suggestion is at minimum make these local variables part of the exposed serverSapiens module, or potentially you could also think of defining a function like this:
function serverSapiens:getPregnancySpeed()
return (1.0 / (dayLength * sapienConstants.pregnancyDurationDays))
end
This is shadowable and can therefor be used for whatever we need.
In particular, I'm interested in values to adjust for my Vanilla Tweaks mod.
In
serverSapiens.lua
you define a number of constants:You later redefine these inside of
serverSapien:init
My suggestion is at minimum make these local variables part of the exposed
serverSapiens
module, or potentially you could also think of defining a function like this:This is shadowable and can therefor be used for whatever we need.