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