From 9a3546dd1876ad7ebd4f503fe74d6b502eb41c7f Mon Sep 17 00:00:00 2001 From: pauldubois Date: Sun, 9 Mar 2008 22:40:12 +0000 Subject: 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 --- crawl-ref/source/files.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/files.cc') 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( 0xDC55 ); -- cgit v1.2.3-54-g00ecf