Page 1 of 1

LuaSurface.darkness -> RW

Posted: Wed Jan 24, 2018 10:06 am
by Yehn
It would be neat if we could write to LuaSurface.darkness. Mostly for when we want things to be reeeeeally dark...

Re: LuaSurface.darkness -> RW

Posted: Wed Jan 24, 2018 10:22 am
by Yehn
Or, since there's already a few variables to customize the day-night cycle... maybe add one to change the "maximum darkness" to be above 86%?

Re: LuaSurface.darkness -> RW

Posted: Wed Jan 24, 2018 11:11 am
by Rseding91
Darkness is a calculated value based off the current daytime and the daytime length values.

Re: LuaSurface.darkness -> RW

Posted: Wed Jan 24, 2018 3:29 pm
by Yehn
Rseding91 wrote:Darkness is a calculated value based off the current daytime and the daytime length values.
No matter what I set them too -- even with dusk at 0.01, evening at 0.02, morning at 0.94, dawn at 0.95, with a day 750,000 ticks long -- I can't seem to get darkness to go above 85% ish (technically it's like 0.850000024).