summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
Commit message (Collapse)AuthorAgeFilesLines
* Amulet of stasis, first cut.Darshan Shaligram2010-01-111-2/+3
| | | | | | | | | | | | | | | Amulets of stasis blocks: - Teleport self - Blink in all forms - Slowing - Hasting - Paralysis - Petrify - Berserker rage The amulet auto-ids the first time it triggers. The amulet does not affect existing conditions (such as an existing Haste spell or an existing post-berserk Slow).
* Rename transfor.{cc,h} to transform.{cc,h}.Adam Borowski2010-01-071-1/+1
|
* Customisable clouds!Jude Brown2009-12-281-7/+10
| | | | | | | | | | | | | | | | | | | | | cloud_struct now has members for colour, name, and tile; colour will be used instead of the default colour of the cloud type, and will be used to recolour the tile of the cloud (if it exists). Name will be used to rebrand the cloud's description, and also alter the message generate while standing in a cloud. Finally, tile can be used to completely customise the tile used for the cloud. The value is stored as a string in order to maintain save compatibility across ASCII and tiles. A random tile (found using tile_main_count) from that set will also be used, however, no duration effects will be applied. Recoloured cloud tiles using just the colour code should be possible, though aren't yet fully tested. This commit bumps TAG_MAJOR_VERSION: changing marshalling of the FogMachine Lua code causes nasty crashes on reloading saved games. Otherwise, I don't think I broke anything else. :-)
* Replace long debug message calls with dprf(), except for cases where a dumb ↵Adam Borowski2009-12-201-7/+2
| | | | | | compiler could call unnecessary functions. For paranoia, I left even any uses of std::string.
* Make folks pacified via Evilyon neutral-hostile (dpeg).Adam Borowski2009-12-141-1/+1
|
* Remove further header-include. env.h now always directly included.Robert Vollmert2009-11-271-0/+1
|
* Delay adjustments for ring of fireCharles Otto2009-11-151-10/+14
| | | | | Update ring of fire's duration, also fix one use of DUR_REPEL I missed previously.
* Delay adjustment for death's doorCharles Otto2009-11-151-4/+4
| | | | Also update 1 use of DUR_PARALYSIS I missed previously.
* Adjust durations for divine vigour and divine staminaCharles Otto2009-11-151-4/+5
|
* Delay changes for corona, berserk, lev, and cflyCharles Otto2009-11-151-7/+2
|
* Update delay for exhaustion, confusing touch, and sure bladeCharles Otto2009-11-151-1/+1
|
* On second thought abstract increasing/setting durations a little.Charles Otto2009-11-151-41/+29
| | | | Add (and use) player methods for setting/increasing durations.
* Moidfy DUR_TRANSFORMATION to be delay based.Charles Otto2009-11-151-3/+3
|
* Modify temporary brand spells to be delay basedCharles Otto2009-11-151-2/+2
|
* Make _increase_durations set values proportional to delayCharles Otto2009-11-151-1/+3
| | | | | | | | | | _increase_durations is used by ozocubus armour, stonemail, rmissile dmissile, regen, swiftness, fly, insluation, rpoison, control teleport, ring of flames, confusing touch, and sure blade. I modified it to add numbers proportional to normal movement delay instead of using the number of turns an enchantment should last directly.
* Move trans_wall_blocking into player.Robert Vollmert2009-11-131-2/+2
|
* Replace observe_cell by you.see_cell.Robert Vollmert2009-11-131-2/+2
|
* More monster_iterator conversions.Robert Vollmert2009-11-121-23/+17
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-1/+1
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Make actor::heal return bool; move heal_monster to monsters::heal.Vsevolod Kozlov2009-11-101-1/+1
| | | | | | | | monsters::heal and heal_monster used to have slightly different logic for increasing maximum HP. Now the heal_monster logic is used everywhere. player::heal always returns true at the moment, but since its return value is never checked, that does not affect anything.
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* Remove option draw_it from viewwindow.Robert Vollmert2009-11-091-1/+1
| | | | | | The only use was just removed. Also move the draw check closer to where it's used.
* Add an is_holy() function to the actor interface.David Lawrence Ramsey2009-11-091-5/+5
| | | | | | | | | | | | This is consistent with similar functions in that it checks not only for MH_HOLY holiness, but whether the monster is a priest of a good god (currently, there are none) and whether it uses holy spells (currently, there are none after the changes described below). Minor and Major Healing are now enchantments rather than holy spells. The beam code treats them as such; wands of healing aren't holy items the way e.g. wands of draining are evil items; and unholy monsters (among others, Lom Lobon!) can cast these spells.
* Replace mons_wont_attack with monsters::wont_attack.Vsevolod Kozlov2009-11-091-2/+2
|
* Move see_cell_no_trans into player.Robert Vollmert2009-11-081-2/+2
| | | | Also collect actor/player LOS code in actor-los.cc.
* Remove mons_is_holy(), as it's redundant.David Lawrence Ramsey2009-11-071-1/+1
|
* Replace bounds_func with circle_def.Robert Vollmert2009-11-081-1/+2
| | | | | | | The various LOS objects and functions now accept a circle_def instead of a bounds_func. This is a little less generic, but should eventually help with iterating over coordinates in any los_def.
* Remove player.h dependency from coordit.h.Robert Vollmert2009-11-081-1/+1
| | | | | | | | | adjacent_iterator had a default center of you.pos(), which is now gone (also the uses of). I was running into circular header dependencies with actor.h including los_def.h including coordit.h including player.h including actor.h.
* Replace mons_is_summoned with monsters::is_summoned.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Charles Otto <ottochar@gmail.com>
* Replace mons_neutral with monsters::neutral.Vsevolod Kozlov2009-11-071-1/+1
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Rename purple smoke to clouds of translocational energyStefan O'Rear2009-11-061-2/+2
|
* Replace global see_cell by observe_cell and disambiguate old uses.Robert Vollmert2009-11-061-2/+2
| | | | | | | Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
* Collect attitude changing code.Robert Vollmert2009-11-061-1/+2
|
* Add actor::petrified, which replaces mons_is_petrified.Vsevolod Kozlov2009-11-061-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Unify mesmerisation code.Robert Vollmert2009-11-051-20/+5
| | | | | | | | There were several places that had copies of the same code, checking whether mesmerisation blocked movement to a given target. The various mesmerisation functions have become methods of player and were moved into behold.cc.
* Replace uses of player_in_water with you.in_water.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Replace uses of player_is_airborne with you.airborne.Vsevolod Kozlov2009-11-051-1/+1
| | | | Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Make Chain Lightning a monster spell, add an user of it (Nikola).Adam Borowski2009-11-031-6/+6
|
* spells1.cc: fix Chain LightningMatthew Cline2009-11-031-1/+1
|
* Greatly upgrade player hellfireStefan O'Rear2009-11-021-0/+43
| | | | It's now smite targetted with maximum 6d26 damage. Have fun.
* Move random_near_space into new teleport.cc.Robert Vollmert2009-11-021-0/+1
|
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-1/+1
| | | | convenience function.
* Combine mons_is_sleeping(monsters *m) into monsters::asleep()abrahamwl2009-10-301-1/+1
| | | | ...and replace all references to mons_is_sleeping with asleep.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+2
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* (MONS_PROGRAM_BUG || -1) --> MONS_NO_MONSTERMatthew Cline2009-10-271-1/+1
| | | | | | | | | Change MONS_PROGRAM_BUG to MONS_NO_MONSTER when "no monster" is what was meant. Now all instances of MONS_PROGRAM_BUG should indicated some sort of failure or error. Also, fixed some places which were still using -1 instead of MONS_NO_MONSTER.
* Move player_see_invis into player class.Robert Vollmert2009-10-221-1/+1
|
* Add missing Chronos conducts for hasting yourself, casting swiftness,Adam Borowski2009-10-211-0/+1
| | | | using weapons of speed and boots of running.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>