diff options
author | Neil Moore <neil@s-z.org> | 2011-12-06 23:32:25 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2011-12-07 00:20:47 -0500 |
commit | 3aeb6b1357e647e9680358289fbf70f81e42da63 (patch) | |
tree | 27b01f005acf04870abbccebbd097962bf3c9b48 /crawl-ref/source/place-info.cc | |
parent | 5c5db5098fe76b1d523a8ed313b27d60e2a580e2 (diff) | |
download | crawl-ref-3aeb6b1357e647e9680358289fbf70f81e42da63.tar.gz crawl-ref-3aeb6b1357e647e9680358289fbf70f81e42da63.zip |
Remove "skill exp" from PlaceInfo and char dumps.
It had not been useful since the 0.9 skill system overhaul, and often
had negative values because training happened before calculating the
gain. This removes the field entirely, as well as the associated
column "F" of the kills_by_place table. The old column "G" is now
calculated based on level XP only.
Diffstat (limited to 'crawl-ref/source/place-info.cc')
-rw-r--r-- | crawl-ref/source/place-info.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/crawl-ref/source/place-info.cc b/crawl-ref/source/place-info.cc index ec14cffd84..1ab6eb7fbf 100644 --- a/crawl-ref/source/place-info.cc +++ b/crawl-ref/source/place-info.cc @@ -7,11 +7,11 @@ PlaceInfo::PlaceInfo() : level_type(-2), branch(-2), num_visits(0), - levels_seen(0), mon_kill_exp(0), mon_kill_exp_avail(0), - turns_total(0), turns_explore(0), turns_travel(0), turns_interlevel(0), - turns_resting(0), turns_other(0), elapsed_total(0), - elapsed_explore(0), elapsed_travel(0), elapsed_interlevel(0), - elapsed_resting(0), elapsed_other(0) + levels_seen(0), mon_kill_exp(0), turns_total(0), turns_explore(0), + turns_travel(0), turns_interlevel(0), turns_resting(0), + turns_other(0), elapsed_total(0), elapsed_explore(0), + elapsed_travel(0), elapsed_interlevel(0), elapsed_resting(0), + elapsed_other(0) { for (int i = 0; i < KC_NCATEGORIES; i++) mon_kill_num[i] = 0; @@ -94,7 +94,6 @@ const PlaceInfo &PlaceInfo::operator += (const PlaceInfo &other) levels_seen += other.levels_seen; mon_kill_exp += other.mon_kill_exp; - mon_kill_exp_avail += other.mon_kill_exp_avail; for (int i = 0; i < KC_NCATEGORIES; i++) mon_kill_num[i] += other.mon_kill_num[i]; @@ -122,7 +121,6 @@ const PlaceInfo &PlaceInfo::operator -= (const PlaceInfo &other) levels_seen -= other.levels_seen; mon_kill_exp -= other.mon_kill_exp; - mon_kill_exp_avail -= other.mon_kill_exp_avail; for (int i = 0; i < KC_NCATEGORIES; i++) mon_kill_num[i] -= other.mon_kill_num[i]; |