From e73443245850c17be63996e97549416d6cba1759 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 7 Jul 2009 10:44:55 +0000 Subject: Tiles: Save per-character equipment setting and use it in the character selection menu. TODO: Use this instead of dolls.txt for initialising dolls, falling back on dolls.txt if name.tdl cannot be found and for new characters. I've tried displaying floor type but found it resulted in an information overload, and also distracts from the main information (species, equipment), esp. since it's mostly floor and most of the tile is covered anyway. I left it in (though commented out), so it's in the repository, but will remove it afterwards. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10122 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/menu.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/menu.cc') diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 9af8b1681c..f918a079a7 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -849,6 +849,10 @@ bool PlayerMenuEntry::get_tiles(std::vector& tileset) const const player_save_info &player = *static_cast( data ); dolls_data equip_doll = player.doll; +// int feat = player.floor_tile; +// if (feat > 0 && feat < TILE_MAIN_MAX) +// tileset.push_back(tile_def(feat, TEX_DUNGEON)); + // FIXME: A lot of code duplication from DungeonRegion::pack_doll(). int p_order[TILEP_PART_MAX] = { @@ -900,6 +904,9 @@ bool PlayerMenuEntry::get_tiles(std::vector& tileset) const tileset.push_back(tile_def(idx, TEX_PLAYER, ymax)); } + if (player.held_in_net) + tileset.push_back(tile_def(TILE_TRAP_NET, TEX_DEFAULT)); + return (true); } #endif -- cgit v1.2.3-54-g00ecf