Difference between revisions of "Item generation"
Frozenwombat (talk | contribs) (Created page with "[ 6:06pm ] < Laanders > so item generation [ 6:06pm ] < Laanders > #guild item generation [ 6:06pm ] < Laanders > my $guild_percentage = 0.1 * sqrt($mage->getGuilds() / $mage->ge...") |
m |
||
Line 1: | Line 1: | ||
− | + | 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 | |
− | |||
− |
Revision as of 04:35, 18 August 2014
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