summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix explosive bolt hostiles-in-range check (#8815)Neil Moore2014-07-301-2/+3
| | | | | While we're at it, also correct a few power calculations to to take into account the possibility of rod spells.
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Move redraw functions from stuff.cc -> output.ccNicholas Feinberg2014-07-281-0/+1
|
* Move letter <-> index from stuff.cc to prompt.cc (wheals)Nicholas Feinberg2014-07-281-0/+1
|
* Move canned_message() from stuff.cc to message.ccNicholas Feinberg2014-07-271-0/+1
|
* Ignore existing clouds in hostiles-in-range checks (#8784)Neil Moore2014-07-121-0/+3
| | | | | You still can't target the spots with clouds, but you might want to aim at a nearby spot that a clouded monster is about to move to.
* Don't crash on ?/inecronomicon.Neil Moore2014-07-121-2/+3
| | | | | | | Or any other book; 0.15-a0-2006-g1cf06be made spell_by_name return NUM_SPELLS rather than SPELL_NO_SPELL. Fixing up the return in spell_by_name rather than adding yet another parameter to find_earliest_match.
* Refactor god and spell search using templates.Neil Moore2014-07-111-26/+2
|
* Improve spell name lookup.Neil Moore2014-07-111-4/+10
| | | | | | | As with the god-name lookup in 0.15-a0-1995-g7e6aeab, prefer names where the substring occurs earlier. The only difference is that here we prefer exact matches to prefixes, so that the order of Blink and Blink Other does not matter when the user searches for "Blink".
* Always show spell letter assignment (#8707)Neil Moore2014-07-081-2/+1
| | | | | As suggested by MarvinPA in his comment to the bug report, use the existing spell_slot message so that there aren't duplicate messages.
* Improve some checks.Shmuale Mark2014-06-291-1/+1
|
* Whitespace fixes (doh)Neil Moore2014-06-061-1/+1
|
* Count friendlies for targets-in-range check of neutral spells.Neil Moore2014-06-061-1/+4
|
* Use the correct skill in variable-range rod spells (#8307)Neil Moore2014-05-311-2/+2
| | | | | For the purposes of the hostile-in-range check and darken_beyond_range, we were computing power using the spell schools rather than Evocations.
* Add the Majin-Bo, a new fixedart that offers power atNicholas Feinberg2014-05-251-4/+13
| | | | a terrible price. (It's not that terrible!)
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Melt away lava orcs.Steve Melenchuk2014-05-141-0/+4
| | | | | | | | | | | | | | | | When you strip away the fundamentally broken tension mechanic, you're left with a species that is essentially "Hill Orcs WITH FIRE". No effort has come forward with code to fix either aspect of them despite the length of time they've been around in trunk, and the code is littered with a very large number of special cases in their presence. Current lava orcs should be able to finish their games fine, but new starts are disallowed. There are a couple of bits I've left present but which will have no function for the moment, mostly related to interactions with lava (as there are a couple of species proposals floating around that benefit from having those interactions).
* Move the definition spl-data.h's table into the spl-data.h (|amethyst)reaverb2014-05-141-4/+1
|
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Fix Glaciate's range at 7; don't let Vehumet extend this.Steve Melenchuk2014-03-281-0/+1
| | | | | | | By popular dev demand. I'm leaving the code for handling varying ranges alone in the event that we need to revisit this.
* Fix false claim by Random Bolt that no susceptible monsters were in range.Shmuale Mark2014-02-251-0/+2
|
* Merge branch 'summon_spells'Chris Campbell2014-02-181-0/+1
|\
| * New spell: Summon Lightning Spire (L4 Summ/Air)Shayne Halvorson2014-02-101-0/+1
| | | | | | | | Replaces Summon Scorpions in the Book of Callings.
* | Remove the Dig spellChris Campbell2014-02-141-1/+0
|/ | | | | | | Allowing cheap, infinite digging out of combat is problematic, and with Felids now able to use wands it's possible for them to dig in places where they really need to for whatever reason, without needing the spell to still exist.
* Don't pretend to extend Static Discharge (#7974)Neil Moore2014-01-111-0/+1
|
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-3/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Limit cloud spells to caster's LOS.Adam Borowski2013-12-151-1/+1
|
* Fix spelling of "targeting" (#7837)Chris Campbell2013-12-101-4/+4
| | | | See Mantis for discussion.
* More formatting fixes for return (...);Neil Moore2013-11-151-3/+3
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-14/+14
|
* Don't allocate pointless iterators.Adam Borowski2013-11-151-1/+1
| | | | | map or set.count() can test the presence of a given key and return 0 or 1 outright.
* Remove moths of suppressionChris Campbell2013-11-111-1/+1
| | | | | | | | | | | Suppression is a hugely complicated and inconsistent mechanic. Its original purpose was to be a way of overriding rPois in Spider but there are now plenty of monsters that do this effectively (and much more simply). [1KB: I moved this to trunk, as it made an already extremely hard to review branch massively more so. There's nothing but a single enum to preserve, so compat break doesn't make this removal any easier or harder.]
* Get rid of the radius_iterator "legacy" constructor.Adam Borowski2013-11-051-3/+2
| | | | | | | | | | It was really weird: working on a square, but in almost all cases restricting it to your view (a circle). Note this is _your_ view rather than from the iterator's center -- which hasn't been used once in the obvious interesting way. As usual, this commit fixes a load of "act through glass" bugs, ando/or using los modes that don't make sense in the context.
* Get rid of all external uses of get_los().Adam Borowski2013-11-051-2/+2
| | | | | This also fixes a bunch of "act through glass" or "doesn't obey nightstalker/ lantern of shadows" bugs.
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-1/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Use enough_mp() in more cases.Adam Borowski2013-11-011-2/+1
| | | | This makes MP/EP more transparent, and allows "MP shutdown" effects.
* Fix all uses of apply_area_cloud(), if the origin is solid.Adam Borowski2013-10-181-1/+1
| | | | | | | Some cloud generators have the cloud flow from a wall or a statue. They use targetter_cloud which doesn't allow that, except they don't use the regular interface but read the targetter's internal data, which skips some validation.
* Reformat multi-line array literals.Adam Borowski2013-10-051-3/+1
|
* Drop some useless parentheses.Adam Borowski2013-09-081-1/+1
|
* Cancel an american speling.Adam Borowski2013-08-241-1/+1
| | | | | | Looks like, unlike "target[t]ing" where a single t is used by many brits and even some aussies, "cancel[l]ing" has double l even for a good deal of americans.
* Make Trog hate all spells but not spells in rodsChris Oelmueller2013-08-011-1/+1
| | | | | | This should display them as "forbidden" in the M screen, fixing 0001588. Still maintaining that a proper fix here would be to make Trog hate rod spells though.
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-2/+2
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Fix lots of typosChris Oelmueller2013-07-231-3/+3
|
* Make Dragon Form pure Tmut for all speciesChris Campbell2013-07-061-5/+1
| | | | | | | | | | | The massive difference in usefulness for the spell for Draconians and non-Draconians was pretty silly. Draconians even now still have the noticeable advantage of keeping their scale AC. Non-dracs still always turn into fire dragons, possibly this could be changed somehow but randomising it per-cast sounds annoying in situations where some resist is particularly desirable, and basing it on elemental skills seems fiddly.
* Mark Delayed Fireball as temp-useless when it's on.Adam Borowski2013-07-061-0/+3
|
* Remove a useless (and wrong) comment.Neil Moore2013-06-171-6/+0
|
* Mark Leda's as useless when it can't be cast (#7221).Steve Melenchuk2013-06-171-0/+10
| | | | | | The prerequisites are that the player's standing on solid ground and that the ground's not already liquefied, which are mirrored in the uselessness check.
* Remove misleading spell coloursChris Campbell2013-06-141-10/+6
| | | | | | Don't mark Vehumet-supported spells as "empowered" - their power isn't increased and the success boost is already indicated elsewhere. Duration spells aren't useless when you can extend the duration.
* Turn pairs of assertions with x > min, x <= max into ASSERT_RANGE.Adam Borowski2013-06-081-4/+2
| | | | | The perl regexp to do so is: s&ASSERT\(([^\n]+) >= ([^\n]+)\);\s*ASSERT\(\1 < ([^\n]+)\);&ASSERT_RANGE($1, $2, $3);&sg;
* Lava orc stoneskin fixes (#7130)Neil Moore2013-06-041-1/+1
| | | | | | | | | | | | | | | | Don't use a duration for it, since those time out, are dispellable, etc. This change does allow casting Ozocubu's armour at low temperatures; I'm not convinced it was intentionally prevented (it *is* intentionally prevented at higher temperatures). Furthermore, LO stoneskin now benefits only from XL, not from the higher of XL and Earth magic as before. This also applies to the statue form bonus, which now uses XL rather than Earth (again, for LO only). Arguably the statue form bonus should go away, since your stone skin is part of what is transformed. Finally, make the Helm card not grant additional stoneskin to LO: currently there is no message, but that could be changed.