diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-03 16:18:02 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-03 16:18:02 +0000 |
commit | 2c2a0304ec8308f912860f05dc1099b86f71773c (patch) | |
tree | 26a30495b0700fcb595aeafb7b3149c9f73d18d6 /crawl-ref/source/newgame.cc | |
parent | 1127ccc6b5bd418aead10e6b968aeef4d6909551 (diff) | |
download | crawl-ref-2c2a0304ec8308f912860f05dc1099b86f71773c.tar.gz crawl-ref-2c2a0304ec8308f912860f05dc1099b86f71773c.zip |
* Fix centaur/naga tiles not being displayed correctly in the character
selection menu.
* Add dolls_data to player_save_info struct, to make it easier to read
in per-character doll information once we get around to that.
Including the tiledef files in externs.h is probably overkill, though,
so we might want to move player_save_info into another header file.
* Fix Xom's repel stair effect moving shops.
* Fix decks granting permanent summons at low power (and only at low
power).
* Make default settings of the brand options consistent between init.txt
and initfile.cc.
* Update FAQ.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10086 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r-- | crawl-ref/source/newgame.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 3f28c38fe2..0b73143e9d 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -2854,7 +2854,7 @@ static void _jobs_stat_init(job_type which_job) case JOB_WANDERER: s = 2; i = 2; d = 2; hp = 11; mp = 1; break; - case JOB_ARTIFICER: s = 2; i = 3; d = 4; hp = 13; mp = 0; break; + case JOB_ARTIFICER: s = 2; i = 3; d = 4; hp = 13; mp = 1; break; default: s = 0; i = 0; d = 0; hp = 10; mp = 0; break; } @@ -3259,6 +3259,22 @@ static void _enter_player_name(bool blankOK) desc = desc.substr(0, get_number_of_cols() - 1); #ifdef USE_TILE + dolls_data equip_doll; + for (unsigned int j = 0; j < TILEP_PART_MAX; ++j) + equip_doll.parts[j] = TILEP_SHOW_EQUIP; + + const int gender = TILEP_GENDER_MALE; + tilep_race_default(existing_chars[i].species, gender, + existing_chars[i].experience_level, + equip_doll.parts); + + int job = get_class_by_name(existing_chars[i].class_name.c_str()); + if (job == -1) + job = JOB_FIGHTER; + + tilep_job_default(job, gender, equip_doll.parts); + existing_chars[i].doll = equip_doll; + MenuEntry *me = new PlayerMenuEntry(desc); #else MenuEntry *me = new MenuEntry(desc); |