From 1be101fd1fc43a252cdc4debf475edf0c6dba81b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sat, 27 Jun 2009 17:04:31 +0000 Subject: Apply patch by Adam Borowski, introducing new unique enchantress Kirke. This includes a new transformation TRAN_PIG that the player can not end at will but rather will have to time out. Pigs (or rather hogs) are fast but cannot use any equipment except amulets, or cast spells. If the transformation would cause death by stat loss (due to equipment loss) the player is paralysed instead. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10061 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index a16226327e..835b08cf6f 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1670,7 +1670,8 @@ void process_command( command_type cmd ) case CMD_CAST_SPELL: case CMD_FORCE_CAST_SPELL: - if (player_in_bat_form()) + if (player_in_bat_form() + || you.attribute[ATTR_TRANSFORMATION] == TRAN_PIG) { canned_msg(MSG_PRESENT_FORM); break; @@ -4077,7 +4078,7 @@ static void _compile_time_asserts() COMPILE_CHECK(SP_VAMPIRE == 31 , c3); COMPILE_CHECK(SPELL_DEBUGGING_RAY == 107 , c4); COMPILE_CHECK(SPELL_PETRIFY == 160 , c5); - COMPILE_CHECK(NUM_SPELLS == 198 , c6); + COMPILE_CHECK(NUM_SPELLS == 199 , c6); //jmf: NEW ASSERTS: we ought to do a *lot* of these COMPILE_CHECK(NUM_JOBS < JOB_UNKNOWN , c7); -- cgit v1.2.3-54-g00ecf