3-9hg38hg0-2394jg-0239j4g
New member
w/r to determining moon phase/light:
I want to do various calculations of item power based on moons, but moon_light(), moon_phase() don't seem to be getting me anywhere.
reference: http://kol.coldfront.net/thekolwiki/index.php/Moons
moon_light() seems to return an out-of-whack value according to the rules on that page.
moon_phase() returns a value that I'm not sure of the validity of because I'm not sure what "phase system" that value is being returned in. according to reference above there are 176 days in the full moon cycle, so should I be expecting a number from 1-176, or just a 1-9 for an individual moon? if the latter, well, which moon? and how do I find out about hamburglar? if the former, well... what if I just want to know the phase of Grimace, for example?
I read a bit of the source to try and figure out how these functions arrive at their return values and saw the warnings about rollover time, time zones, etc. creating possible discrepancies, but all I really want is a scriptable equivalent of looking at the graphic and calculate the current light in KoL, period. no system clock integration should be required for that, right?
looking for some guidance as to #1 what are these functions supposed to be returning (aka are they currently working right?) #2 whether or not my functionality already exists in ash or should I home-roll.
I want to do various calculations of item power based on moons, but moon_light(), moon_phase() don't seem to be getting me anywhere.
reference: http://kol.coldfront.net/thekolwiki/index.php/Moons
moon_light() seems to return an out-of-whack value according to the rules on that page.
moon_phase() returns a value that I'm not sure of the validity of because I'm not sure what "phase system" that value is being returned in. according to reference above there are 176 days in the full moon cycle, so should I be expecting a number from 1-176, or just a 1-9 for an individual moon? if the latter, well, which moon? and how do I find out about hamburglar? if the former, well... what if I just want to know the phase of Grimace, for example?
I read a bit of the source to try and figure out how these functions arrive at their return values and saw the warnings about rollover time, time zones, etc. creating possible discrepancies, but all I really want is a scriptable equivalent of looking at the graphic and calculate the current light in KoL, period. no system clock integration should be required for that, right?
looking for some guidance as to #1 what are these functions supposed to be returning (aka are they currently working right?) #2 whether or not my functionality already exists in ash or should I home-roll.