summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-summoning.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-03-21 05:23:36 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-03-21 05:45:35 +0100
commit34b3b447c5096fe864dc8a9500c1f44706977b3e (patch)
tree2bf8408602a033370e419826d93ada02702a3a90 /crawl-ref/source/spl-summoning.h
parentaf4a235e5fc769a5c81a40885c68354630f01905 (diff)
parent6a66c87f159d4a26f1d6d09557ffc61334ca907f (diff)
downloadcrawl-ref-34b3b447c5096fe864dc8a9500c1f44706977b3e.tar.gz
crawl-ref-34b3b447c5096fe864dc8a9500c1f44706977b3e.zip
Merge branch 'mon-pick'
The behaviour should be preserved exactly or almost exactly, only the code changes from totally, utterly unreadable to merely hard to read. Actual differences: * strong OODs in shallow branches would degenerate into picking a monster randomly from the whole branch, now they pick from the bottom level (or so-called OOD cap of Elf:7, Tomb:5, D:31 and Vaults:15). * Zot no longer replaces requests for Zot:5 by Zot:4, and proper hells, $(HELL):4-7 by $(HELL):3. * this means hell monster sets need fixing! * zombie size doesn't affect their spawning * zombie selection obeys the depth passed * which makes zombie sets pretty limited -- needs review/redesign? The new format is: { 9, 19, 826, SEMI, MONS_YAK }, which means: yaks can spawn on D:9-19, with _linear_ rarity 826 in the middle of the range. A "SEMI" distribution means that at the edges, D:9 and D:19, the effective rarity is half that, 413. Distributions: FLAT 100% 100% 100% SEMI 50% 100% 50% PEAK 0% 100% 0% UP 0% 50% 100% DOWN 100% 50% 0% That "0%" doesn't mean the monster won't spawn on the top/bottom level (D:9 and D:19 for yaks), the range is fudged so D:8 receives 0% chance, D:9 16.6%, linearly up to 100% on D:14. Yes, this sounds and is complex, but at least the complexity is not strewn around obscure code anymore, and a number of limitations have been lifted. ZotDef still uses the old code via an emulation layer.
Diffstat (limited to 'crawl-ref/source/spl-summoning.h')
-rw-r--r--crawl-ref/source/spl-summoning.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-summoning.h b/crawl-ref/source/spl-summoning.h
index cdef364a5c..819b02bab7 100644
--- a/crawl-ref/source/spl-summoning.h
+++ b/crawl-ref/source/spl-summoning.h
@@ -35,9 +35,7 @@ spret_type cast_summon_hydra(actor *caster, int pow, god_type god = GOD_NO_GOD,
bool fail = false);
bool summon_berserker(int pow, actor *caster,
monster_type override_mons = MONS_PROGRAM_BUG);
-bool summon_holy_warrior(int pow, god_type god = GOD_NO_GOD, int spell = 0,
- bool force_hostile = false, bool permanent = false,
- bool quiet = false);
+bool summon_holy_warrior(int pow, bool punish);
spret_type cast_tukimas_dance(int pow, god_type god = GOD_NO_GOD,
bool force_hostile = false, bool fail = false);