summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Fix hardcoding of "hands" in the wielding message for weapons of speed.David Lawrence Ramsey2009-11-031-1/+2
|
* Make slaying apply to missile launchers as well.Adam Borowski2009-11-031-1/+1
|
* Bracers of archery: 5,3 slaying for ranged combat, -1,-1 for melee.Adam Borowski2009-11-031-2/+2
|
* Remove mstuff2.h and mstuff2 referencesMatthew Cline2009-11-031-1/+1
|
* Remove +Tele as a randart propertyStefan O'Rear2009-11-031-15/+5
|
* Wizard inscription 'range:' for wandsMatthew Cline2009-11-021-0/+11
| | | | | While in wizard mode, inscribing a wand with 'range:number' will change that wand's range to 'number' when zapped by the player.
* Add minor cosmetic fixes.David Lawrence Ramsey2009-11-021-5/+1
|
* Give +Invis the same treatment as +LevStefan O'Rear2009-11-021-0/+7
|
* Handle branded armour for unthinking actsStefan O'Rear2009-11-021-0/+25
|
* Removing +Lev items cancels levitationStefan O'Rear2009-11-021-1/+67
| | | | | Complete with removal-over-water blocking! Logic is very fiddly, don't trust it to not kill you.
* Move random_near_space into new teleport.cc.Robert Vollmert2009-11-021-0/+1
|
* Move checks for a player or monster's being chaotic into anotherDavid Lawrence Ramsey2009-11-011-12/+2
| | | | convenience function in the actor interface.
* Simplify.David Lawrence Ramsey2009-11-011-4/+4
|
* Make silver ammo apply extra hurt to chaotic beings as well. The additional ↵Eino Keskitalo2009-11-011-4/+4
| | | | | | creatures affected are ugly things, giant orange brains, shining eyes, pulsating lumps and most notably orbs of fire. Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Split up monstuff.ccMatthew Cline2009-11-011-1/+1
| | | | | | | A lot of monstuff.cc was moved into mon-abil.cc (monster abilities), mon-act.cc (the main monster loop), mon-behv.cc (monster behaviour) and mon-cast.cc (monster spells). mstuff2.cc was completely merged into other files.
* Merge mons_holiness() into monster::holiness(), and add an is_unholy()David Lawrence Ramsey2009-10-311-4/+2
| | | | convenience function.
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* When using items that can directly turn monsters to zombies (weapons ofDavid Lawrence Ramsey2009-10-291-4/+6
| | | | | | shadows or chaos) as a good god worshipper, ensure that the "turns into a zombie" message always comes before the "enraged by your holy aura" message.
* Rename shadows brand into reaping for unique name.Eino Keskitalo2009-10-301-10/+10
| | | | Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
* Extract newgame character restrictions from newgame.cc.Robert Vollmert2009-10-241-8/+8
| | | | | | | | | | | | | | | | | The functions in the new ng-restr.cc are "pure": They don't access global state; data is passed in via the new and incomplete newgame_def. Eventually, new_game should be split into something like newgame_def choose_game(); that doesn't access "you", and void setup_game(newgame_def); that sets up the player. Also get rid of player_size in favour of player::body_size. Rename player_size_type to size_part_type since it's not really player-specific (used in actor::body_size). Move parts of player_genus, player::has_claws, body_size out into species.cc.
* Don't use invisibility items when pointlessMatthew Cline2009-10-241-5/+38
| | | | | | | | | | | | | | | Since the game won't let you waste (known) scrolls or wand charges of teleportation if it's known that you can't teleport (you're wearing an identified artefact which prevents teleportation) do something similar for invisiblity: if you're haloed because of worshipping TSO then refuse to use known wands or potions of invisibility, and if you're glowing from magical contamination then prompt before usage (since the glow *might* wear off before the invisibility). Also: 1) add some informational messages about the interaction of invisibility and being backlit, 2) if you use-identify invisibility while haloed then just print a message, but don't actually get the invisibility duration.
* Slightly reduce religion.cc by yanking item-handling stuff to goditem.ccAdam Borowski2009-10-211-0/+1
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Make default LOS configurable.Robert Vollmert2009-10-171-1/+2
| | | | | | Setting LOS_RADIUS in defines.h now works. Fixed a couple of things to allow this, including an apparent off-by-one error in crawl_view -- not quite sure this doesn't break anything.
* Naming consistency.Robert Vollmert2009-10-171-2/+2
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Remove a lot of unneccessary includes.Robert Vollmert2009-10-091-1/+0
| | | | | | | The console version still compiles on Linux; both console and tiles version compile in OS X. I haven't been able to test the DOS and Windows compiles -- please fix or tell me about any errors that show up.
* Enable monsters to drink potions of might.Robert Vollmert2009-10-071-0/+1
| | | | | This adds new beam and enchantment types, so probably breaks save compatibility.
* Add spacing fix.David Lawrence Ramsey2009-10-061-1/+1
|
* Implement FR 2872334 'don't auto-target neutrals' by replacing most uses of ↵Charles Otto2009-10-061-4/+4
| | | | TARG_ENEMY with TARG_HOSTILE.
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Amulet of guardian spirit, it comes as an amulet or a cap.Adam Borowski2009-10-051-0/+17
| | | | | | | | When worn, all non-poison damage will drain mana instead, hurting hp only after mana is depleted. The cap brand is intended only for a fixedart, but per dpeg's request, it will be generated on ordinary caps for now, as a test.
* Add more spelling fixes.David Lawrence Ramsey2009-09-241-5/+5
|
* Add spelling fixes.David Lawrence Ramsey2009-09-231-2/+2
|
* * Also allow Maurice to steal the occasional spellbook or piece ofj-p-e-g2009-09-241-0/+8
| | | | | | | | | | | | | jewellery. * As per FR 1937144, leave a purple cloud if the player or a monster blinks or teleports away. For some reason this doesn't yet work correctly with scrolls of blinking, even though wizard blink (which uses the same function) does work. -- (from svn) Signed-off-by: Darshan Shaligram <dshaligram@users.sourceforge.net>
* Add minor cosmetic fixes.dolorous2009-09-231-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10777 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2860301: armour acquirement failing when transformed.j-p-e-g2009-09-171-3/+7
| | | | | | | | | | | | * Fix 2829495: certain missiles and large weapons not being marked as useless. * Post-berserk exhaustion cancels Haste even wearing an amulet of RS. If you've got a lot of speed piled up it will last 2-3 more turns, but that's it. * Make tiles spell clicking use Z rather than z behaviour. (Assuming that mindless mouseclicks are more difficult to do than mindless keyboard bashing. That, and macros don't take into account mouseclicks.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10690 c06c8d41-db1a-0410-9941-cceddc491573
* Commit several patches:j-p-e-g2009-09-131-2/+4
| | | | | | | | | | | | * patch 2849505 by weyrava: make submerged monsters use the correct colour * patch 2857771 by caotto: another Feawn update * patch 2838771 by camedo: add potions of brilliance/agility * BR 2841651 by bookofjude: allow Merfolk to control-tele into deep water Now we need tiles for the new potions! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10669 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2810959: If a player reads a spellbook which is in inventory, then looks atzelgadis2009-08-181-1/+5
| | | | | | | | | | | a spell's description, pressing 'M' will try to memorise that spell from that particular book. FR 2815575: Instead of moving "spell levels left" to the top of the spell memorisation menu, make it light-green in color. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10558 c06c8d41-db1a-0410-9941-cceddc491573
* Apply Jude's scrolls of silence patch.j-p-e-g2009-08-131-0/+5
| | | | | | | | | The scrolls cast the spell with a power of 25 which means it has a duration of about 24, and is the same as casting the spell with 5 levels in each of Spc, Ench, Air, as well as 21 Int. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10540 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2819565: Abort when trying to read a known ?blinking or ?teleportation j-p-e-g2009-08-131-3/+20
| | | | | | | | | | | | | | or when zapping a known /teleportation at yourself if you know you have a -TELE artefact equipped. In the same situation, prompt when trying to evoke Blink or cast one of the teleportation spells, in case the player insists on training Evoc/Spellcasting/Translocations that way. Also, automatically update the autoinscriptions when tweaking artefact properties in wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10532 c06c8d41-db1a-0410-9941-cceddc491573
* * Add support for packaging save files with tar. (Patch by Trent W. Buck.)j-p-e-g2009-07-251-5/+8
| | | | | | | | * Fix random blink placing the player in dangerous clouds. * Fix message when trying to place Conjure Flame in a wax wall. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10397 c06c8d41-db1a-0410-9941-cceddc491573
* Allow unrandart launchers to modify the beam of the missile they fire.zelgadis2009-07-211-3/+30
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10363 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2822832: temporary brands not being removed when thrown with LRET_FUMBLEDj-p-e-g2009-07-201-5/+9
| | | | | | | | | | | | | | plus: thrown weapon permabrand being removed when DUR_WEAPON_BRAND is active plus: double messaging of "You are now empty-handed." Fix 2810517: Added a pre-ability requirements check that handles Lugonu's enter/exit abyss, berserking, recite, breath attacks and some more. If the requirements aren't met, the check fails before the success check, thus no turn is wasted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10360 c06c8d41-db1a-0410-9941-cceddc491573
* Use MOUSE_MODE_MORE during the ring swap prompt, so mouse clicks arej-p-e-g2009-07-051-0/+4
| | | | | | | ignored instead of taking zero turn actions or crashing the game. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10102 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2815574: Venom card not waking monsters.j-p-e-g2009-07-041-2/+18
| | | | | | | | | | | | | Fix 2815185: Not updating wield display for rotting chunks. Fix 2812496: Wrong message when attempting to chop with unwieldable weapons. (Small patch by rafalmaj.) Fix 2811476: Turn autopickup back on when gaining see invisible (mutation, ring, artefact, spell). Fix 2806314: Remove coinflip() for Sandblast range. Wielding rocks now guarantees range of 2. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10096 c06c8d41-db1a-0410-9941-cceddc491573
* Remove invalid wield warning.zelgadis2009-06-271-5/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10057 c06c8d41-db1a-0410-9941-cceddc491573
* * Moved most hard-coded non-standard unrandart behaviour to art-func.h,zelgadis2009-06-271-124/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specifically code for equipping, unequpping, an equipped unrandart doing something every time world_reacts() is called (special wield effects), melee hit effects, and evoking. Left hardcoded outside of art-func.h: * Sword of Cerebov temproarily downgrading the defender's fire resistance. * Staff of Olgreb boosting poison spells, as if it were a staff of poison. * Vampire's Tooth always getting maximal vampiric drain. * Mace of Variablity's initial pluses being chosen at creation time. * Since what used to be special wield effects is now handled very differently, noisy weapons and the lantern of shadows effects are handled with player attributes rather than SPWLD_NOISES and SPWLD_SHADOW. * Unrandarts can now have an elemental colour for their colour (currently only used for the Mace of Variability). * Unrandarts' value modification, being special, and being evil are now handled in art-data.txt rather than being hardcoded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10055 c06c8d41-db1a-0410-9941-cceddc491573
* Fix special wield effects for former fixed arts.zelgadis2009-06-261-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10047 c06c8d41-db1a-0410-9941-cceddc491573
* Replace "is_random_artefact()" with "is_artefact()" in a few places wherezelgadis2009-06-251-7/+10
| | | | | | | | this was missed, and add checks for unrandart and special unrandarts where applicable. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10044 c06c8d41-db1a-0410-9941-cceddc491573