Difference between revisions of "Item generation"
m |
(Added minor details) |
||
Line 1: | Line 1: | ||
+ | [[Items|Lesser Item]] [[Item generation|generation]] involves a complex formula and can be influenced (both boosted and hindered) by numerous factors. First off, [[Guilds]] (now known as [[Guilds|Libraries]]) are instrumental in the generation of [[Items|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 (Library) item generation | ||
* $guild_percentage = 0.1 * sqrt($mage->getGuilds() / $mage->getLand()); | * $guild_percentage = 0.1 * sqrt($mage->getGuilds() / $mage->getLand()); |
Revision as of 00:36, 10 October 2015
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