summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-26 23:10:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-27 00:23:29 +0200
commita4cafc8eb2c70a0fbefde91bd49f8c65e4e3b292 (patch)
tree064b2ee3e8e3ff092f97e96d335fe0a1799c9494 /crawl-ref/source/mon-pick.h
parent82ae3fd9ebe156f2adc4ac9ad22e06361607cd4b (diff)
downloadcrawl-ref-a4cafc8eb2c70a0fbefde91bd49f8c65e4e3b292.tar.gz
crawl-ref-a4cafc8eb2c70a0fbefde91bd49f8c65e4e3b292.zip
Convert mon-pick data to a more readable scheme.
Instead of a base level and a rarity, which then use a ridiculously obscure algorithm to accept or reject monsters, the new data includes: * minimal depth the monster can be found on * maximal depth * rarity at the center of the range * distribution type (flat, a linear triangle, something halfway between the two) * the monster's enum The results should be the same, with very minor differences: * distributions within allowed range are approximated by one of three shapes (FLAT, SEMI, PEAK), this shouldn't produce noticeable differences * effective rarity has been shoehorned into a 0..1000 range (out of 0..10201), using div_rand_round(). There's a number of monsters with 35/10201 rarity which ends up as 3 or 4, and strings of monsters of the same rarity end up randomly perturbed. * the once-in-the-life-of-universe chance to generate a monster outside the -5..+5 range is gone, you can now set arbitrary ranges and they're absolute. There's no actual code to use this data yet, merely an emulation of the old functions. It looks like ZotDef applies some complex rules to the monster's depth, it may take some thinking about how to convert it.
Diffstat (limited to 'crawl-ref/source/mon-pick.h')
-rw-r--r--crawl-ref/source/mon-pick.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/crawl-ref/source/mon-pick.h b/crawl-ref/source/mon-pick.h
index 1bd5bcb283..d58c10d693 100644
--- a/crawl-ref/source/mon-pick.h
+++ b/crawl-ref/source/mon-pick.h
@@ -18,66 +18,4 @@ monster_type pick_monster_no_rarity(const level_id &place);
bool branch_has_monsters(branch_type branch);
void debug_monpick();
-
-int mons_null_level(monster_type mcls);
-int mons_null_rare(monster_type mcls);
-
-int mons_abyss_level(monster_type mcls);
-int mons_abyss_rare(monster_type mcls);
-int mons_pan_level(monster_type mcls);
-int mons_pan_rare(monster_type mcls);
-
-int mons_cocytus_level(monster_type mcls);
-int mons_cocytus_rare(monster_type mcls);
-int mons_crypt_level(monster_type mcls);
-int mons_crypt_rare(monster_type mcls);
-int mons_dis_level(monster_type mcls);
-int mons_dis_rare(monster_type mcls);
-int mons_gehenna_level(monster_type mcls);
-int mons_gehenna_rare(monster_type mcls);
-int mons_hallblade_level(monster_type mcls);
-int mons_hallblade_rare(monster_type mcls);
-int mons_hallelf_level(monster_type mcls);
-int mons_hallelf_rare(monster_type mcls);
-int mons_hallzot_level(monster_type mcls);
-int mons_hallzot_rare(monster_type mcls);
-int mons_lair_level(monster_type mcls);
-int mons_lair_rare(monster_type mcls);
-int mons_dwarf_level(monster_type mcls);
-int mons_dwarf_rare(monster_type mcls);
-int mons_mineorc_level(monster_type mcls);
-int mons_mineorc_rare(monster_type mcls);
-int mons_pitslime_level(monster_type mcls);
-int mons_pitslime_rare(monster_type mcls);
-int mons_pitsnake_level(monster_type mcls);
-int mons_pitsnake_rare(monster_type mcls);
-int mons_dungeon_level(monster_type mcls);
-int mons_dungeon_rare(monster_type mcls);
-int mons_swamp_level(monster_type mcls);
-int mons_swamp_rare(monster_type mcls);
-int mons_shoals_level(monster_type mcls);
-int mons_shoals_rare(monster_type mcls);
-int mons_spidernest_level(monster_type mcls);
-int mons_spidernest_rare(monster_type mcls);
-int mons_forest_level(monster_type mcls);
-int mons_forest_rare(monster_type mcls);
-int mons_tartarus_level(monster_type mcls);
-int mons_tartarus_rare(monster_type mcls);
-int mons_tomb_level(monster_type mcls);
-int mons_tomb_rare(monster_type mcls);
-int mons_vaults_level(monster_type mcls);
-int mons_vaults_rare(monster_type mcls);
-int mons_vestibule_level(monster_type mcls);
-int mons_vestibule_rare(monster_type mcls);
-int mons_sewer_level(monster_type mcls);
-int mons_sewer_rare(monster_type mcls);
-int mons_volcano_level(monster_type mcls);
-int mons_volcano_rare(monster_type mcls);
-int mons_icecave_level(monster_type mcls);
-int mons_icecave_rare(monster_type mcls);
-int mons_bailey_level(monster_type mcls);
-int mons_bailey_rare(monster_type mcls);
-int mons_ossuary_level(monster_type mcls);
-int mons_ossuary_rare(monster_type mcls);
-
#endif