Ooops... sorry! Have to retract! Last night shortly after rollover, my fn() was returning 50 as Jek item drop %. Now it returns the correct value of 45. Normally, I don't connect until long after rollover, which is why I've probably been seeing the correct values more often than not.
Again...
Looking back into this subject recently...
For starters: I have some debug code which runs every day at startup, simply printing out the results of that equation, and since my original post -- which, granted was at least 1 if not 2 mafia versions ago -- I have not caught it returning and...
Hey how about throwing me a couple to fund development of my own? ...which I will then not release. ;) The more Mr. As u want to contribute, the more awesome functionality I will make and keep private!
About that confusing/buggy functionality...
Given: my current familiar is wearing das boot.
I switch familiars from CLI or ASH, and mafia says: "das boot is better than (none). Switching items..."*
Then I run code like: if ( familiar_equipment( my_familiar() ) != $item[ little bitty...
Thanks for the replies. I will probably use the numeric_modifier() technique.
I was trying to plug moon_light() into the (15 + 5 * x) equation for the Jekyllin hide belts and some days it was giving a wrong answer.
I guess it does work, in the best of circumstances. At times it has failed for me, though. Not exactly sure why. If I find something reproducible I'll report.
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...
it seems mafia has a "blind spot" when it comes to managing familiar equipment on familiars in the terrarium.
true or false: if I try to "equip mayflower bouquet" either from CLI or ash equivalent, and the mayflower bouquet is in use by another familiar in the terrarium, assuming that is the...