summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tileweb.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2013-08-16 23:12:28 +0200
committerRaphael Langella <raphael.langella@gmail.com>2013-08-16 23:19:42 +0200
commitc56f7848c24e60f938bec429afc467bfb06599a6 (patch)
treebb5ac33403f5c584554b7f0dcf61d792e3970fc1 /crawl-ref/source/tileweb.cc
parentbdd80194b71b95e59c46d35c8bc371a5d616d8c0 (diff)
downloadcrawl-ref-c56f7848c24e60f938bec429afc467bfb06599a6.tar.gz
crawl-ref-c56f7848c24e60f938bec429afc467bfb06599a6.zip
Use a finer scale for magic contamination.
It's now updated every turn instead of every 20 turns and it's almost deterministic (only the time scaling use randomized rounding). The bad effects still happen every 20 turns though (just like hell effects and other stuff). It has been scaled by 1000. I tried with 100, but I still had some significant rounding issues, especially with scaling to time_taken. It shouldn't be possible anymore to gain yellow glow from a single cast of invisibility even at max power. Although, in theory, it has a slight chance of putting you just 1 point short of yellow (4999).
Diffstat (limited to 'crawl-ref/source/tileweb.cc')
-rw-r--r--crawl-ref/source/tileweb.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/tileweb.cc b/crawl-ref/source/tileweb.cc
index 204daebf31..43de639c1f 100644
--- a/crawl-ref/source/tileweb.cc
+++ b/crawl-ref/source/tileweb.cc
@@ -655,10 +655,10 @@ void TilesFramework::_send_player(bool force_full)
// Don't send more information than can be seen from the console HUD.
// Compare _print_stats_contam and get_contamination_level
int contam = you.magic_contamination;
- if (contam >= 26)
- contam = 26;
- else if (contam >= 16)
- contam = 16;
+ if (contam >= 26000)
+ contam = 26000;
+ else if (contam >= 16000)
+ contam = 16000;
_update_int(force_full, c.contam, contam, "contam");
}