In addition, monsters that are too difficult to be generated via the normal mechanism may be generated by this process (this is how minesflayers generate). Note that this process ignores some restrictions that are normally in place, such as monsters that normally would not generate outside of Gehennom. Finally, a random monster is selected from the bag.If k is greater than 0, k+1 copies of that monster are added to the bag, except that only k copies are added if the adjusted monster level is greater than twice the player's experience level. Let k be the monster's monster frequency.However, if the current monster's difficulty is the same as the previous monster's, or if there is no monster in the bag yet, we instead continue the process (thus, monsters of the same difficulty are always added to the bag together, and the bag is never empty if there are any eligible monsters). If the difficulty level of the current monster is more than twice the level difficulty, there is a 1⁄ 2 chance that we stop adding any more monsters to the bag the current monster is not added and we go directly to the final step of selecting a monster from the bag.For each eligible monster starting with the first defined monster of the class, monsters are added to the bag: Imagine a bag that is initially empty.Unique monsters, monsters with the G_NOGEN flag, extinct, and genocided monsters are not eligible.Quest guardians and player monsters are not eligible because they are defined separately from the rest of the If an alignment is specified, only monsters of that alignment are eligible. Monsters of the same class are assumed to be contiguously defined in the mons array, and in the order of their difficulty.Monster selection follows this procedure: Where a class of monster is specified, such as during the creation of certain levels (including the Gnomish Mines) or random generation in the Quest, a different monster generation algorithm is used, and monsters may be generated with probabilities different from the normal mechanism. The following items or spells that create monsters are subject to this rule: Otherwise, normal monster generation takes place with a 1⁄ 70 chance each turn.If the demigod flag is not set, but the player is in Gehennom, monster generation will occur with a 1⁄ 50 chance each turn.If the demigod flag is set - done by either killing the Wizard of Yendor at least once or performing the Invocation - there is a 1⁄ 25 chance of at least one monster being generated.This can be visualized as a hat full of labeled slips of paper, with each one bearing the name of a monster - each creature's monster frequency determines how many slips of paper in the hat have its name, and the game then selects a name out of the hat at random.Īt the end of each turn, or if an item that generates a monster is used, the possibility of creating a monster depends on the following: The trapper or lurker above monster class is explicitly excluded, as both monsters rely on matching the surroundings of the dungeon walls, floor and ceiling to hide.Įach monster remaining on this list that meets the above conditions, has a probability to be generated equal to its effective monster frequency divided by the sum of the monster frequencies of every eligible monster. If you are on the Plane of Air, only monsters that are capable of flying or floating, and are whirly, amorphous, or unsolid are eligible.If you are on the Plane of Fire, only monsters with fire resistance are eligible.If you are on the Plane of Water, only swimmers are eligible for random generation.If you are in Gehennom, lawful monsters and those marked with the flag G_NOHELL (e.g., winter wolf) are excluded conversely, monsters with the flag G_HELL) (e.g., hell hounds) are made eligible to be randomly generated only in Gehennom, and ineligible elsewhere.If you are on the Rogue level, then monsters represented by glyphs with lower-case letters (e.g., a, b, c) are excluded from eligibility.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |