diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-03 23:07:39 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-03 23:07:39 +0000 |
commit | e2f74e90f41b7324f8b4e2fa880a1b32df131e68 (patch) | |
tree | ebb134a1b3a81e8c8c80b895f326a5050a75bf00 /crawl-ref/source/tags.cc | |
parent | 5c0a7e21f8aed760fde406bba577b696ad7f8e8a (diff) | |
download | crawl-ref-e2f74e90f41b7324f8b4e2fa880a1b32df131e68.tar.gz crawl-ref-e2f74e90f41b7324f8b4e2fa880a1b32df131e68.zip |
More tweaks of Zin:
1. Let sanctuaries shrink during the last few turns
rather than suddently disappear when it times out.
2. Introduce donations (and remove item sacrifice)
I suppose abilities will now have to become more
expensive pietywise. I raised the piety cost of
the sanctuary from 10 to 15, but that probably
won't be enough.
For the piety gain I introduced a new duration,
DUR_PIETY_POOL that is filled with
gold/200 * log(gold) upon donation and then
leaks with 5% chance per turn one piety point
into the actual piety.
All numbers are open for discussion and change.
Breaks saves.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3181 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 656b2a640f..944ac5604e 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1609,8 +1609,7 @@ static void tag_construct_level(tagHeader &th) marshallByte(th, env.shop[i].level); } - marshallByte(th, env.sanctuary_x); - marshallByte(th, env.sanctuary_y); + marshallCoord(th, env.sanctuary_pos); marshallByte(th, env.sanctuary_time); env.markers.write(th); @@ -1850,8 +1849,7 @@ static void tag_read_level( tagHeader &th, char minorVersion ) env.shop[i].level = unmarshallByte(th); } - env.sanctuary_x = unmarshallByte(th); - env.sanctuary_y = unmarshallByte(th); + unmarshallCoord(th, env.sanctuary_pos); env.sanctuary_time = unmarshallByte(th); env.markers.read(th); |