summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/trap_def.h
Commit message (Collapse)AuthorAgeFilesLines
* Split the "magical" trap category, to allow recolouring.Adam Borowski2013-09-251-0/+1
|
* Make searching for traps deterministic.Adam Borowski2012-10-031-1/+2
| | | | | | | Spending more time doesn't help. The formula doesn't make sense, needs to be not merely adjusted but made from the ground up.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Unscale trap to-hit and disarm chance.Adam Borowski2012-06-211-0/+1
| | | | | | | | Nothing after level generation is supposed to depend on depth. A foo trap is a foo trap, no matter where you find it. This and previous changes make Sprint in particular more deadly: before, all traps did almost no damage, having depth of D:1.
* Don't display destroyed traps on the map if they're out of LOSChris Campbell2012-03-181-1/+1
|
* Allow specifying number of trap charges when placing a trapChris Campbell2012-03-181-1/+1
|
* Simplify.Adam Borowski2011-11-211-1/+0
| | | | | | There's no point in message_trap_entry() if it's used only for a single trap type. The message can be given in the switch, like every single other trap does.
* Clear traps from stash tracking and map knowledge when they are destroyed.Raphael Langella2011-08-241-1/+1
| | | | | Only if the player is aware of the destruction, but it's the case most of the time. Fixes #4429.
* Add an is_safe() method to trap_def.Raphael Langella2011-05-141-0/+1
| | | | | This fix #3966. The method should be usable by monsters too, but it isn't currently.
* Increase item limits, decouple NON_foo from MAX_foo; save major version changed.Darshan Shaligram2010-06-221-0/+1
| | | | | | | | | | | | 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.
* Fix newlines at end of file.Adam Borowski2010-01-211-1/+0
|
* Untie disarm confirmations from autotravel settings (Mantis 254).Adam Borowski2009-12-271-0/+1
| | | | | | | | Since it is done only on an explicit request, copious safety margins are not needed. I didn't provide an alternate way to disable the confirmation, but since the danger is now always real, I don't think that's needed.
* Move trap_def from externs.h to trap_def.h.Robert Vollmert2009-11-271-0/+30