summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godconduct.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-01-14 09:20:33 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-01-14 09:20:33 -0700
commit83766a38d9213124723d8d94dc14faa9add99ab7 (patch)
tree9893c8e13ddc74fc29bff1628a0f8287478e73ad /crawl-ref/source/godconduct.cc
parent9db5db5078c7d47dc4db81bef724508f26a35f02 (diff)
downloadcrawl-ref-83766a38d9213124723d8d94dc14faa9add99ab7.tar.gz
crawl-ref-83766a38d9213124723d8d94dc14faa9add99ab7.zip
Split tracking of "illuminating" and "fiery" conducts.
This should be a little more clear for players, besides which there's been some hesitation expressed about the latter.
Diffstat (limited to 'crawl-ref/source/godconduct.cc')
-rw-r--r--crawl-ref/source/godconduct.cc30
1 files changed, 29 insertions, 1 deletions
diff --git a/crawl-ref/source/godconduct.cc b/crawl-ref/source/godconduct.cc
index 0ca31fb958..c95628917f 100644
--- a/crawl-ref/source/godconduct.cc
+++ b/crawl-ref/source/godconduct.cc
@@ -996,7 +996,7 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
if (!known)
{
simple_god_message(" forgives your accidental act of "
- " illumination, just this once.");
+ "illumination, just this once.");
break;
}
simple_god_message(" does not appreciate your illumination!");
@@ -1019,6 +1019,34 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
}
break;
+ case DID_FIRE:
+ if (you_worship(GOD_DITHMENGOS))
+ {
+ if (!known)
+ {
+ simple_god_message(" forgives your accidental "
+ "fire-starting, just this once.");
+ break;
+ }
+ simple_god_message(" does not appreciate your starting fires!");
+ piety_change = -level;
+ if (level > 5)
+ penance = level - 5;
+ retval = true;
+ }
+ break;
+
+ case DID_KILL_FIERY:
+ if (you_worship(GOD_DITHMENGOS)
+ && !god_hates_attacking_friend(you.religion, victim))
+ {
+ simple_god_message(" appreciates your putting out a fire.");
+ retval = true;
+ piety_denom = level + 10;
+ piety_change = piety_denom - 6;
+ }
+ break;
+
case DID_NOTHING:
case NUM_CONDUCTS:
break;