From cc9ba6c05755e235c14daa555bbd037813f91a6e Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 11 Dec 2008 11:31:22 +0000 Subject: * Nerf harpies a bit: they are now slower and have no bite attack (which didn't make sense anyway). * Also list player god in the saved game selection menu. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7808 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index ef3d1a5f66..5dbd7003eb 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5788,19 +5788,20 @@ void player::init() player_save_info player_save_info::operator=(const player& rhs) { - name = rhs.your_name; - experience = rhs.experience; + name = rhs.your_name; + experience = rhs.experience; experience_level = rhs.experience_level; - wizard = rhs.wizard; - species = rhs.species; - class_name = rhs.class_name; - return *this; + wizard = rhs.wizard; + species = rhs.species; + class_name = rhs.class_name; + religion = rhs.religion; + return (*this); } bool player_save_info::operator<(const player_save_info& rhs) const { - return experience < rhs.experience || - (experience == rhs.experience && name < rhs.name); + return experience < rhs.experience + || (experience == rhs.experience && name < rhs.name); } std::string player_save_info::short_desc() const @@ -5810,6 +5811,9 @@ std::string player_save_info::short_desc() const << species_name(species, experience_level) << ' ' << class_name; + if (religion != GOD_NO_GOD) + desc << " of " << god_name(religion); + #ifdef WIZARD if (wizard) desc << " (WIZ)"; -- cgit v1.2.3-54-g00ecf