summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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 get_ch() from stuff.cc to macro.ccNicholas Feinberg2014-07-271-0/+1
|
* Make Ozocubu's Armour use spellpower instead of IceNicholas Feinberg2014-07-241-7/+5
|
* Make Death's Door check spellpower instead of NecromancyNicholas Feinberg2014-07-241-1/+1
|
* Revert "make tree-form immune to Leda's"Nicholas Feinberg2014-07-161-7/+0
| | | | | | 783a5bfccb75 and a737d34e685053e3. Very special-case-y, not not really necessary. (Plus, we never prevented turning into a tree *after* casting Leda's...)
* Prevent casting Leda's in tree form.Neil Moore2014-07-141-0/+7
|
* Improve some checks.Shmuale Mark2014-06-291-1/+1
|
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-1/+1
|
* Increase the base maxHP loss from Borgnjor's RevivificationChris Campbell2014-06-071-1/+1
|
* Chance function(void) to function()reaverb2014-05-241-1/+1
|
* Reword Infusion's messaging.Steve Melenchuk2014-05-121-2/+2
| | | | | The wording has always struck me as a bit awkward; this makes it sound more active and threatening (which it is).
* Change Death's Door flavour message.Sage2014-04-221-1/+1
|
* Fix Swiftness being uncastable in liquidsChris Campbell2014-03-151-7/+0
| | | | Broken by c60660aeeb46ff.
* Remove `auto_list` optionChris Oelmueller2014-03-111-3/+1
| | | | | | | | | | | | | It has been defaulting to `true` for a while now. That setting provides a nicer interface overall and there is little reason to support alter- nate input methods. Some prompts asking for a letter have not been adjusted, for example evoking a rod with multiple spells. Those are hopefully gone soon anyways. [Committer's note: The option had no known uses except by bots, and those could work without it. And, of course, multi-spell rods are gone.]
* Fix a couple of hiccups with amnesia.Steve Melenchuk2014-03-101-0/+1
| | | | | Don't burn Sif piety when cancelling out (#8257); print a prompt if exiting from the menu but not cancelling altogether.
* Disable casting of Repel Missiles while wearing the Amulet of the Air.Brandon Kime2014-02-261-1/+3
| | | | | | | This fixes #8181. Casting Rmsl while wearing the amulet does nothing but waste a turn. [Committer's note: cleaned up the code slightly.]
* Don't allow both repel and deflect missiles to be active at onceChris Campbell2014-02-171-2/+7
| | | | DMsl replaces RMsl, RMsl can't be cast if DMsl is active.
* Base RMsl/DMsl expiry on current power rather than power at cast timeChris Campbell2014-02-111-4/+12
| | | | | Also expire them immediately when they fail, rather than still having a short duration afterwards.
* Slight adjustments to power, timeouts and messages for RMsl/DMslChris Campbell2014-02-081-4/+4
| | | | | | Use the same formula for chance of expiry for RMsl/DMsl (the power cap and chance to actually succeed differentiates them), slightly randomise the timeout when expiring (possibly they should just expire immediately?).
* Give Repel/Deflect missiles a chance to expire per deflection instead of a ↵argonaut2014-02-081-4/+6
| | | | | | | | duration They are kept as (short) durations but don't decrement while the corresponding attribute is set. Each deflection has a chance to clear the attibute - starting the duration countdown.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-6/+5
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Swiftness changes.elliptic2013-11-271-6/+9
| | | | | | | | | | | | | | | | | | | | | A L2 buff that could easily be kept up permanently and gave a very powerful effect for the entire game was problematic for a few reasons. The stealth and trapfinding penalties were supposed to help with this, but they didn't really succeed, so let's try something else. Now Swiftness has two stages, of equal duration. In the first stage it decreases movement delay by 25% and in the second stage it increases movement delay by 50%. This has the effect that the spell is speed-neutral over the two stages combined if you are moving the entire time, so you cannot simply use the spell to kite monsters forever. It still provides a powerful short-term boost to movement speed and the balance between the two stages can be broken in a few ways, including simply taking more non-movement actions during the second stage. Of course, the spell cannot be recast while either stage is in effect. The penalties to stealth and trapfinding have been removed and the spell is now castable by Formicids.
* Improve Ozo's failure message for too-heavy armourChris Campbell2013-11-231-1/+1
|
* Give Trog's Hand its own duration.pubby2013-11-101-17/+1
| | | | | | | | | | | | Trog's hand was using DUR_REGENERAITON, and setting ATTR_DIVINE_REGENERATION to true to specify it was the god ability and not the spell. This was silly, so this commit gives trog's hand its own duration: DUR_TROGS_HAND. This also fixes a very minor bug: previously if you had trog's hand active and you tried to cast regen, you got penance but the spell was immediately canceled. Other duration spells were not canceled.
* Revert "Negate swiftness with stasis."Chris Campbell2013-11-061-3/+3
| | | | | | | Formicids shouldn't change how stasis works for all other species. If this is to be changed for everyone it shouldn't be hidden as part of the merge. This reverts commit c1a2e1451a6ea5a45cc18280012de944af2e1284.
* Merge branch 'dwants'. Bring some Raid.Adam Borowski2013-11-061-0/+7
|\
| * Merge branch 'master' into dwantsAdam Borowski2013-11-011-11/+1
| |\
| * \ Merge branch 'master' into dwantspubby2013-10-011-24/+12
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/source/dat/des/variable/mini_monsters.des crawl-ref/source/enum.h crawl-ref/source/itemprop.cc crawl-ref/source/main.cc crawl-ref/source/mutation-data.h crawl-ref/source/mutation.cc crawl-ref/source/newgame.cc crawl-ref/source/ng-restr.cc crawl-ref/source/rltiles/dc-player.txt crawl-ref/source/spl-selfench.cc crawl-ref/source/throw.cc crawl-ref/source/tilepick-p.cc crawl-ref/source/wiz-you.cc
| * \ \ Merge branch 'master' into dwantspubby2013-08-311-17/+69
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: crawl-ref/docs/crawl_manual.reST crawl-ref/source/abl-show.cc crawl-ref/source/dat/descript/ability.txt crawl-ref/source/delay.cc crawl-ref/source/enum.h crawl-ref/source/main.cc crawl-ref/source/mon-cast.cc crawl-ref/source/mon-gear.cc crawl-ref/source/mon-spll.h crawl-ref/source/mutation-data.h crawl-ref/source/mutation.cc crawl-ref/source/ng-restr.cc crawl-ref/source/ng-setup.cc crawl-ref/source/output.cc crawl-ref/source/player-act.cc crawl-ref/source/player.cc crawl-ref/source/species.cc crawl-ref/source/spl-data.h crawl-ref/source/wiz-you.cc
| * | | | Negate swiftness with stasis.pubby2013-08-311-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Negating swiftness is an important design choice of Formicids. Unfortunately, the stasis amulet will suffer slightly, although it is a very uncommon effect.
* | | | | Axe a buttload of useless #includes.Adam Borowski2013-11-031-2/+0
| |_|_|/ |/| | | | | | | | | | | | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* | | | Remove Song of ShieldingChris Campbell2013-10-221-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Just mimicking guardian spirit, even if it works a bit differently, isn't very interesting, and it appears to not be useful anyway. It's also inconsistent in terms of not behaving as a "song" in the same way as Song of Slaying (and making the two songs exclusive would make it even worse).
* | | | Adjust Song of SlayingChris Campbell2013-10-221-3/+1
| |_|/ |/| | | | | | | | | | | | | | Randomise (and increase on average) the duration, reduce the power cap to 100, and slightly loosen the requirements for monster difficulty (each monster difficulty tier can provide 1 more slaying than before).
* | | Generalise some flight checks, fix inconsistenciesChris Campbell2013-10-011-16/+1
| | | | | | | | | | | | | | | | | | | | | | | | Flight from innate ability, potion, evokable item or spell is now consistently prevented by tree form, liquefaction and grasping roots. Most cases also correctly abort without costing a turn, potions are still wasted at the moment though.
* | | Grammatify.Neil Moore2013-09-151-1/+1
| | |
* | | Don't prevent casting swiftness in liquids.Neil Moore2013-09-071-9/+11
| | | | | | | | | | | | | | | | | | It still doesn't make you faster, and continues to give the "water foams" message, as well as a replacement for "You feel quick.", to convey that to the player.
* | | Make lava block swiftness as water does.Neil Moore2013-09-071-1/+2
| |/ |/|
* | Give treants a 'grasping roots' abilityDracoOmega2013-08-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this ability, the treant causes the network of gnarled roots running beneath the whole of the earth to rise and shift and otherwise impede the footing of any hostile creatures near it, turning it into a shifting and unstable undergrowth. In practical terms, this applies a 5 aut movement speed penalty and halves the EV of any hostile creature standing on solid ground within sight of the treant, while the effect is active. Creatures above lava and water (even shallow) are unaffected. Flying creatures are also unimpeded, but the roots have a high chance of rising up and pulling them back to the ground (though this can be evaded). The aim of this is to provide an alternate mechanism (following the reduction in ally production) to prevent them being trivially kitable, while themselves remaining slow, and also to offer a support mechanism to other nearby creatures. The flavor messages could probably use more variety.
* | Change title of some spell list screens.Neil Moore2013-08-111-2/+4
| | | | | | | | | | | | | | When adjusting or forgetting spells, remind the user in the title why they're there. This is especially important now that Amnesia brings up the spell list by default: the player won't see the amnesia prompt first, so won't know why they're looking at a spell menu.
* | Let auto_list = false work with amnesia.Neil Moore2013-08-101-1/+2
| |
* | Fix whitespace.Neil Moore2013-08-101-1/+1
| |
* | Make scrolls of amnesia display the spell list immediately instead of just a ↵BlackSheep2013-08-101-3/+9
| | | | | | | | message prompt.
* | Make the initial noise of Song of Slaying the same as the per-turn noiseChris Campbell2013-08-031-1/+1
| |
* | Refactor 'you.religion' checks.Brendan Hickey2013-07-281-1/+2
| | | | | | | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* | Don't restore MP when forgetting spells via amnesia scroll/abilityChris Campbell2013-07-071-8/+0
| | | | | | | | | | Forgetting via book doesn't use it, and it was a weird hidden feature (even if very occasionally useful in highly complicated emergencies!).
* | Rename the Spirit Shield spell to Song of ShieldingChris Campbell2013-06-251-2/+2
| | | | | | | | | | | | Since it has a different mechanic to the already-existing spirit shield (fully absorbing damage instead of splitting it between health and magic), it needs a different name! Also add a description.
* | Post-merge Skald cleanupPete Hurst2013-06-241-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Numerous tweaks and code review: * Fix errors and save compat issues introduced by the merge * Formatting fixes * Some text and capitalisation tweaks * Clean up some leftover comments / code * Change some debugging messages to dprf * Move some bits of code to match enum positions
* | Merge branch 'newskalds' of git://gitorious.org/~lainiw/crawl/lain-crawl ↵Pete Hurst2013-06-241-0/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | into newskald Conflicts: crawl-ref/source/mon-stuff.cc crawl-ref/source/ouch.cc crawl-ref/source/spl-book.cc
| * | Spacing fixes.Ed Gonzalez2013-06-111-1/+1
| | |