Feature - Implemented Rewriting KoL's seeded random functions in Java for mafia!

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
Occasionally people spade the underlying code for seeded random things in KoL. I recently did it for Voting Booth initiatives and it's previously been done for TCRS equipment enchantments. I'd like to add support for forecasting these sorts of things to mafia and ash!

I've written an equivalent of PHP 5.3's rand and srand which is attached. It was lots of fun! To make it useful though I need to also reimplement do mt_rand, which I will try to do now. It seems slaw had help from someone writing it in ASH which I will probably use as a base.
 

Attachments

  • PHPRandom.txt
    1.7 KB · Views: 12

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
And this has landed with voting booth initiative forecasting in 20383!
 
Top