Map & Entity Rarity

==Overview==
In Minus Elevation, maps and entities are randomly chosen every floor, and they all have a value of rarity to them. Although the rarity of entities are reflected by the rarity stat in their Bestiary entries—albeit vaguely—both maps and entities are chosen through a complex mathematical system. The resulting mathematical values determine how likely they are to appear under normal circumstances. Essentially, the higher an entity's value, the more likely it will spawn. These values can also be influenced by other factors.
==The Spawning System==
The system of how maps and entities are chosen is complex. To begin, all maps and entities are assigned what are called "weights". A weight is a mathematical value that helps determine if a map or an entity will spawn. The lower the weight of an entity, the rarer the entity is. After all maps and entities are given a unique weight, the total weight of each group will be calculated. For example, the total weight of all entities on floor 1 with just one player will be 1031.66. This weight takes into consideration that some entities cannot yet spawn, such as entities with floor requirements or sin entities, thus the weights thereof are not included in the total weight in this specific scenario. To determine if an entity will spawn, the game will pick a random integer between 1 and the total weight multiplied by 100, or 1 to 105666 in this scenario. After the integer is picked, the resulting value will be divided by 100. Multiplying and dividing by 100 accounts for weights with decimals. Now that the game has the final value, the entity with that value will spawn.
===Spawn Chances===
Given the existence of the Lifeform Scanner, it is important to note that the weight and spawn chance of a map or an entity are two completely different values with different purposes. The former is actively used to determine whether a map or an entity will spawn, while the latter simply informs the player of their chances of encountering a map or an entity. However, there is a relationship between the two: The lower the weight of a map or an entity, the lower the spawn chance of it is.
==Map Weights==
Below is a table of weights of all maps.
All maps with unconfirmed weights are marked with an asterisk (*).
Map 	Spawn Weight
Bevil's Cage*Only after floor 20; never reappears.	150
Facilities* 	50 for each map
Arcade* 	50 for each map
Aquarium* 	50 for each map
Red Theater* 	50 for each map
Autumn Grotto* 	50 for each map
Midnight Forest* 	50 for each map
Pico's Palace* 	50 for each map
Hanging City A* 	50 for each map
Mall* 	50 for each map
City* 	50 for each map
Deep Forest* 	50 for each map
Office Blurple* 	50 for each map
Bluerooms* 	50 for each map
Damp Basement* 	50 for each map
Office Spaces 	35 for each map
Scrap Store* 	15 for each map
Testing Zone 	15 for each map
Yellowrooms* 	15 for each map
Eye Observatory* 	5 for each map
Obby* 	5 for each map
Blue Obby* 	5 for each map
Kindergarten* 	1 for each map
Mysterious Room 	1 for each map
Sound Test Room* 	1 for each map
The Attraction 	1 for each map
White Abyss 	1 for each map
Death Pit 	0.01
==Entity Weights==
Below is a table of weights of all entities.
All entities with unconfirmed weights are marked with an asterisk (*).
Entity 	Spawn Weight
Bevil*Can only appears after released from Bevil's Cage. 	150
Bozo 	100 for each entity
Ghaster 	100 for each entity
Mire 	100 for each entity
Parasite 	100 for each entity
Sculpture 	100 for each entity
Seeker 	100 for each entity
Shade 	100 for each entity
Thorn 	100 for each entity
Wanderer 	100 for each entity
Ganderer 	100 for each entity
Eyemaster 	75
Eyemass 	50 for each entity
Golem 	50 for each entity
Skeleton 	50 for each entity
Manager* 	50 for each entity
Murk 	50 for each entity
Stalker* 	50 for each entity
As a sin entity, this entity can only spawn after the corresponding spawning requirement is met.	50 for each entity
 	50 for each entity
 	50 for each entity
 	50 for each entity
 	50 for each entity
 	50 for each entity
Discomaster 	1 for each entity
Shakes 	1 for each entity
Trevor Touchdown 	1 for each entity
 	1 for each entity
 	0.6
 	0.06
Mimic 	20 + (\text{total alive players} * 7)
===Remaining Entities===
Boss entities are exempt as they do not spawn under the weight system. Unlike most other entities, the rarity of all boss entities reflect the chances of the Boss Raid floor upgrade appearing, divided by four.
==Multipliers==
Multipliers are decimal numbers that directly affect the weight of all maps and entities. Essentially, multipliers act as both a "luck system" and "pity system" as it directly affects weight and increases the chance of a map or an entity spawning. The larger the multiplier, the better the chance of spawning. Once a map or an entity does spawn, however, its multiplier resets to x1.00.
Multipliers are applied by simply multiplying the weight of a map or an entity, which also directly changes the total weight of the respective group in the process. Do note that multipliers DO NOT multiply the spawn chance of a map or an entity, only the weight.
Multipliers can be affected by many factors:
*Multipliers increase for all maps and entities after every floor. The second floor increases all multipliers by x0.07, the third floor increases them by x0.08, the fourth floor increases them by x0.06, and all subsequent floors increase them by x0.07 
*Luck increases the multipliers of rare entities by x0.02 for every 0.5 luck. This stacks between players, with a cap of 10 luck per player.
*Plushies increase the multiplier of the respective entity that the plushie represents. One plushie increases the multiplier of the entity by x0.13, a second plushie increases it by x0.11, and all subsequent plushies increase it x0.12.
**For example, if four players equipped the same plushie in a game, the represented entity would have an increased multiplier of x0.48.
*Some entities have an increased multiplier on certain days of the year.
**Every 18th day of a month, the multiplier of increases by x5.66 (totaling x6.66); and on October 18th, it increases by x65.6 (totaling x66.6).
**Every 19th day of a month, the multiplier of increases by x6.66 (totaling x7.66); and on November 19th, it increases by x75.6 (totaling x76.6).
**Every Friday, the multiplier of Discomaster increases by x1.22 (totaling x2.22).
**On December 6th, the multiplier of Trevor Touchdown increases by x6 (totaling x7)
==Issues==
At the moment, there is an issue with the current weight system. When a map or an entity is "added to the map/entity pool", its weight is added to the total weight. For example, the total weight of all entities on floor 1 with one alive player is 1056.66. If the multipliers remained x1.00 and the weight of Golem is added, which is 100, the total weight increases to 1156.66. Unfortunately, this increase in the total weight causes the spawn chances of all other entities to decrease. This is especially problematic for rare maps and rare entities because they are already extraordinarily rare. Their weights are not justified to retain the same spawn chance prior to the addition of a map or an entity to the pool. However, the developers plan to resolve this issue in a future update.
==Trivia==
*The rarity of The Attraction used to represent the rarity of Bear 5 before the entity was removed as a guaranteed spawn on that map.
Category:Mechanics