From e2f74e90f41b7324f8b4e2fa880a1b32df131e68 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 3 Jan 2008 23:07:39 +0000 Subject: 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 --- crawl-ref/source/tags.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/tags.cc') 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); -- cgit v1.2.3-54-g00ecf