summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/trap_def.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-10-02 14:09:05 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-10-03 19:04:34 +0200
commitc044a101ff31a934656269262e191fc2b33a833b (patch)
tree47773251462060c7b4e1b7c0815514b28f657bcf /crawl-ref/source/trap_def.h
parentc3019c61ed81e313dbde617ec181209e48e3e728 (diff)
downloadcrawl-ref-c044a101ff31a934656269262e191fc2b33a833b.tar.gz
crawl-ref-c044a101ff31a934656269262e191fc2b33a833b.zip
Make searching for traps deterministic.
Spending more time doesn't help. The formula doesn't make sense, needs to be not merely adjusted but made from the ground up.
Diffstat (limited to 'crawl-ref/source/trap_def.h')
-rw-r--r--crawl-ref/source/trap_def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/trap_def.h b/crawl-ref/source/trap_def.h
index 92974ec6b3..4c210dbc08 100644
--- a/crawl-ref/source/trap_def.h
+++ b/crawl-ref/source/trap_def.h
@@ -5,7 +5,8 @@ struct trap_def
{
coord_def pos;
trap_type type;
- int ammo_qty;
+ short ammo_qty;
+ uint8_t skill_rnd;
dungeon_feature_type category() const;
string name(description_level_type desc = DESC_PLAIN) const;