diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-09 22:40:12 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-09 22:40:12 +0000 |
commit | 9a3546dd1876ad7ebd4f503fe74d6b502eb41c7f (patch) | |
tree | e9bbb373c86d11c9cb3c330edc1087ca05c840ee /crawl-ref/source/files.cc | |
parent | 2f9171efc49235f06e2b49ecee51f0ca46867a19 (diff) | |
download | crawl-ref-9a3546dd1876ad7ebd4f503fe74d6b502eb41c7f.tar.gz crawl-ref-9a3546dd1876ad7ebd4f503fe74d6b502eb41c7f.zip |
Apply 1895318, with some cleanup.
This patch implements dploog's suggestion of hysteresis on piety.
gain/lose_piety() adjust you.piety_hysteresis first; you.piety is
modified with the leftovers (if any) once the hysteresis reaches its
limit.
Players start out at the upper end of the hysteresis region, meaning
there is no lag on piety increase, but a lag on piety decrease.
Hysteresis value set by "#define PIETY_HYSTERESIS_LIMIT 1"
Does not break old saves.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3562 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index c656e2f596..0c4d6d4aa0 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -106,7 +106,10 @@ void save_level(int level_saved, level_area_type lt, #define GHOST_MINOR_VERSION 1 #define LEVEL_MINOR_VERSION 1 -#define YOU_MINOR_VERSION 1 + +// 1: starting version +// 2: append piety_hysteresis to TAG_YOU +#define YOU_MINOR_VERSION 2 const short GHOST_SIGNATURE = static_cast<short>( 0xDC55 ); |