summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/trap_def.h
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-22 20:15:17 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-22 20:29:30 +0530
commitb4fa663e1c51bf6e459c572eae2ef6a3e8fecaa5 (patch)
tree8dc8c371327a6e66d8c0f3eab59feea0f1435c0f /crawl-ref/source/trap_def.h
parent4c8eeae0027eb82aed190ed87dc8a9c2c3b40f46 (diff)
downloadcrawl-ref-b4fa663e1c51bf6e459c572eae2ef6a3e8fecaa5.tar.gz
crawl-ref-b4fa663e1c51bf6e459c572eae2ef6a3e8fecaa5.zip
Increase item limits, decouple NON_foo from MAX_foo; save major version changed.
MAX_MONSTERS: 350 -> 700 MAX_ITEMS: 600 -> 1000 MAX_CLOUDS: 180 -> 600 MAX_TRAPS: 100 -> 400 MAX_SHOPS: 25 -> 100 Untied NON_MONSTER, NON_ITEM, EMPTY_CLOUD from the values of MAX_MONSTER, etc. so that MAX_MONSTER and friends can be changed without breaking save compatibility again.
Diffstat (limited to 'crawl-ref/source/trap_def.h')
-rw-r--r--crawl-ref/source/trap_def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/trap_def.h b/crawl-ref/source/trap_def.h
index 9ed3c6001f..fc23755d0d 100644
--- a/crawl-ref/source/trap_def.h
+++ b/crawl-ref/source/trap_def.h
@@ -18,6 +18,7 @@ struct trap_def
void prepare_ammo();
bool type_has_ammo() const;
bool active() const;
+ bool defined() const { return active(); }
int max_damage(const actor& act);
private: