Item generation

From TheReincarnation
Revision as of 00:36, 10 October 2015 by Zero275 (talk | contribs) (Added minor details)
Jump to: navigation, search

Lesser Item generation involves a complex formula and can be influenced (both boosted and hindered) by numerous factors. First off, Guilds (now known as Libraries) are instrumental in the generation of Lesser Items in that the percentage of a mage's land consumed by Guilds is a major factor in the computation of Item generation.


guild (Library) item generation

  • $guild_percentage = 0.1 * sqrt($mage->getGuilds() / $mage->getLand());

bonus item generation

  • $bonus_percentage = $mage->{mage_generatebonus};

random roll

  • if ($rand < $guild_percentage) {
  •  %item_hash = item::GenerateLesserItems(1,1);
  • } elsif ($rand < $guild_percentage + $bonus_percentage) {
  •  %item_hash = item::GenerateLesserItems(1);
  • }

if the roll just succeeded because of bonuses, you can only get normal items and not MI or compass