From 7da71d18a7403dcd95b2e57370dc26bf1274f436 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 25 Sep 2008 16:32:21 +0000 Subject: Add miscellaneous minor cleanups to prepare for the introduction of Yred's injury mirroring: move the routine to make a visible monster flash a particular color into its own function, add an integer-based square root function based on Newton's method to stuff.cc, and adjust prayer lengths for Zin (1 turn), Yred (20 turns), Ely (same as Yred), and all gods who ignore prayers (same as Zin). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6982 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stuff.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crawl-ref/source/stuff.h') diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 918665aaab..93c655383c 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -227,6 +227,8 @@ int choose_random_weighted(Iterator beg, const Iterator end) return result; } +int integer_sqrt(int value); + int random_rod_subtype(); #endif -- cgit v1.2.3-54-g00ecf