summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/luadgn.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-02 06:52:08 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-02 06:52:08 +0000
commitb153e8bfc653f4ac0e28cfe7901d3f32006b06e9 (patch)
treee3bb56c2235eef2d93f5a3d714007b953130d5bb /crawl-ref/source/luadgn.cc
parent3d2b0998bdf89936687648f81c1ce68fc35080ef (diff)
downloadcrawl-ref-b153e8bfc653f4ac0e28cfe7901d3f32006b06e9.tar.gz
crawl-ref-b153e8bfc653f4ac0e28cfe7901d3f32006b06e9.zip
Added floor_special and floor_reserved to dngn_feature_names[], to make
the array match up with the enums. Don't describe the weapon with which an unseen monster is attacking. Added methods can_see() and visible_to() to the actor, player and monster classes, which take care of calling mons_player_visible(), player_monster_visible(), mons_monster_visible() and mons_near(). Re-arranged the first 12 dungeon_feature_type enumerations so that similar features are contiguous (i.e., closed door and secret door are next to each other), and added DNGN_MAXOPAQUE (one less than DNGN_MINSEE), DNGN_MINWALL and DNGN_MAXWALL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2293 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/luadgn.cc')
-rw-r--r--crawl-ref/source/luadgn.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/luadgn.cc b/crawl-ref/source/luadgn.cc
index 4a73aa9e36..f3252ff4fd 100644
--- a/crawl-ref/source/luadgn.cc
+++ b/crawl-ref/source/luadgn.cc
@@ -926,17 +926,17 @@ static int dgn_load_des_file(lua_State *ls)
const char *dngn_feature_names[] =
{
- "unseen", "rock_wall", "stone_wall", "closed_door", "metal_wall",
- "secret_door", "green_crystal_wall", "orcish_idol", "wax_wall",
- "permarock_wall", "clear_rock_wall", "clear_stone_wall",
- "clear_permarock_wall", "", "", "", "", "", "", "", "",
+ "unseen", "closed_door", "secret_door", "rock_wall", "stone_wall",
+ "metal_wall", "green_crystal_wall", "wax_wall", "permarock_wall",
+ "clear_rock_wall", "clear_stone_wall", "clear_permarock_wall",
+ "orcish_idol", "", "", "", "", "", "", "", "",
"silver_statue", "granite_statue", "orange_crystal_statue",
"statue_reserved_1", "statue_reserved_2", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "lava",
"deep_water", "", "", "shallow_water", "water_stuck", "floor",
- "exit_hell", "enter_hell", "open_door", "", "", "", "",
- "trap_mechanical", "trap_magical", "trap_iii",
+ "floor_special", "floor_reserved", "exit_hell", "enter_hell",
+ "open_door", "", "", "trap_mechanical", "trap_magical", "trap_iii",
"undiscovered_trap", "", "enter_shop", "enter_labyrinth",
"stone_stairs_down_i", "stone_stairs_down_ii",
"stone_stairs_down_iii", "rock_stairs_down", "stone_stairs_up_i",