diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-15 17:02:02 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-15 17:02:02 +0000 |
commit | 5ec81a1f6695b9253b85ada7fa8a4eb7a51f7209 (patch) | |
tree | 149223ecd8469ed3a69e97383268747587d879df /crawl-ref/source/spells4.cc | |
parent | b0e7dda3593b5e6022799727f3eb177fae3a5987 (diff) | |
download | crawl-ref-5ec81a1f6695b9253b85ada7fa8a4eb7a51f7209.tar.gz crawl-ref-5ec81a1f6695b9253b85ada7fa8a4eb7a51f7209.zip |
Per jpeg's suggestion, add a "desecrate orcish remains" conduct for
Beogh. This will cause a small piety hit, but no penance, for
butchering orc corpses, or for using non-area necromantic spells on
orcish remains which can (a) destroy them without creating zombified
orcs, or (b) turn them non-orcish (Fulsome Distillation, Sublimation of
Blood, Bone Shards, and Twisted Resurrection).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9498 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r-- | crawl-ref/source/spells4.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 0121d43739..8b9a271d50 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -1324,6 +1324,8 @@ void cast_fulsome_distillation(int pow) } } + const bool was_orc = (mons_species(mitm[corpse].plus) == MONS_ORC); + // We borrow the corpse's object to make our potion. mitm[corpse].base_type = OBJ_POTIONS; mitm[corpse].sub_type = pot_type; @@ -1340,6 +1342,9 @@ void cast_fulsome_distillation(int pow) // Try to move the potion to the player (for convenience). if (move_item_to_player(corpse, 1) != 1) mpr("Unfortunately, you can't carry it right now!"); + + if (was_orc) + did_god_conduct(DID_DESECRATE_ORCISH_REMAINS, 2); } bool cast_fragmentation(int pow, const dist& spd) |