summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove some of my infamous debugging statements (I keep forgettingj-p-e-g2008-07-061-1/+1
| | | | | | | | | them!) and move the new pdf files around, renaming contact.pdf to README.pdf since it's the shorter version of readme.txt, also capitalized now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6435 c06c8d41-db1a-0410-9941-cceddc491573
* Add yet another spacing fix.dolorous2008-07-061-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6427 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow vampires from draining summoned creatures to be consistent withj-p-e-g2008-07-041-6/+6
| | | | | | | | | | | | | summoned creatures being incapable of bleeding on the floor. This makes things more difficult for Vampires; on the other hand there was a (more or less) recent change that lets them regain 1 hp *per turn* when draining corpses. We might also increase the duration of blood potions... Apart from that, various clean-ups. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6393 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2005590: Branded darts unbranded when thrown.j-p-e-g2008-07-031-3/+3
| | | | | | | | | Thrown darts of ice or flame will correctly be displayed as puffs of frost/flame, will do the appropriate damage both to player and monsters and will be identified when thrown by a monster. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6367 c06c8d41-db1a-0410-9941-cceddc491573
* Implement the first part of the overhauled starting equipment andj-p-e-g2008-07-011-3/+3
| | | | | | | | | | | | | skills (non-magic characters): Fighter, Gladiator, Berserker, Paladin, Priest, Chaos Knight (*), Death Knight, Healer, Thief, Assassin, Hunter *: Other than in the final layout (v4?) Trolls and Ghouls don't get "claws" as a weapon choice here because I had no idea what to do with the to-be-distributed enchantment points if they don't get a weapon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6293 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify.dolorous2008-06-301-10/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6243 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2004501: buggy ?identify; also finally properly id ?identify itselfj-p-e-g2008-06-281-3/+3
| | | | | | | | after a successful identification (if there are several). Fix 2004793: wandering mushroom flees - for real, this time (I hope). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6189 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the character selecting omitting letters for restricted classes (asj-p-e-g2008-06-261-4/+4
| | | | | | | | | | opposed to banned ones). Tweak the code to enforce wearable body armour and shield types for all species. I'm afraid the skills need to be adjusted as well, probably in more detail, but I'm rather clueless on that account. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6147 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-145/+145
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* For jewellery with pluses and wands, only make an ident note when thezelgadis2008-06-191-0/+1
| | | | | | | | | | | | first item of the type is identified, not when the charges/pluses of any item of the type is identified. Make sure that artefacts have nothing to do with the identification level of jewellery by making versions of set_ident_type() and get_ident_type() which accept a full item_def as a parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5973 c06c8d41-db1a-0410-9941-cceddc491573
* Don't change beam names for tracers. (Fixes 1994978.)j-p-e-g2008-06-161-5/+5
| | | | | | | | | | | Clean up the vampire ability screen a bit. Special case naga bardings of running (according to makeitem.cc they can exist) to be called "naga barding of speedy slithering" instead. Yes, it's a hack, and yes, the name is rather unwieldy, but it makes more sense this way. I hope. :p git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5880 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [1994684]: Weapon enchantments were always failing if only one of dolorous2008-06-161-30/+22
| | | | | | | the two stats was 9 or greater, instead of both. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5873 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-06-151-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5839 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1986252: double "Blech! You need xy!" messagej-p-e-g2008-06-061-2/+2
| | | | | | | | | | | | | | Fix 1966204: make non-amphibious undead capable of drowning or the equivalent thereof When you see a weapon with the returning ego return (to you or a monster) set the properties known along with the brand (because artefacts can't be id'd by throwing alone, anyway). This helps alleviate BR 1958616, but doesn't solve the problem with the curse status being unknown. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5499 c06c8d41-db1a-0410-9941-cceddc491573
* Fix a stupid bug I'd introduced when fixing another one.j-p-e-g2008-06-021-4/+10
| | | | | | | | | | | | | | | Fix 1939901: Weapon listing not updated right away after being cursed. Put the code to colour arbitrary substrings of a message according to the menu_colour settings into a function of its own, and use it for pick up and eating prompts (currently from floor only) as well as for the "Things that are here" listing. Could be overly spammy, thus needs testing. If all works well, we can remove the "msg =" settings in food_colouring.txt that currently don't do anything anyway, or reuse them for non-prompt messages like "You see here a green rat corpse." git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5436 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-301-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5351 c06c8d41-db1a-0410-9941-cceddc491573
* Apply beam tracer prompt to helpless/fleeing etc. creatures whenj-p-e-g2008-05-231-1/+2
| | | | | | | | | | | | | worshipping an appropriate god. I'm simply reusing dolorous unchivalric methods here. :) Also, don't prompt for harmless beams. Still TODO: Make the message differentiate between target and obstacles, and clean up the code a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5193 c06c8d41-db1a-0410-9941-cceddc491573
* Improve player beam tracer for firing through friendlies:j-p-e-g2008-05-221-81/+79
| | | | | | | | | | | | | | * name the monster you're firing through ("your goblin zombie") * use maximum possible range * make it work for spells and abilities, as well Still todo: * apply the same logic to firing missiles * don't prompt for monsters that wouldn't be harmed (e.g. living allies for Dispel Undead, etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5177 c06c8d41-db1a-0410-9941-cceddc491573
* Finally fix 1868761: Books in shops being noted as identified over andj-p-e-g2008-05-201-3/+4
| | | | | | | | | | | over again (when searching stashes). Also remove my recently added NOTE_FOUND_ORB_OR_RUNES in favour of the previously existing NOTE_GET_ITEM. Also I've noticed that this is probably already listed in the "milestones" - but what on earth are they? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5150 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow racial (orcish) ankuses again, since they're not really clubs, dolorous2008-05-161-1/+1
| | | | | | | | and orcs don't seem to fit the image of elephant drivers the way ogres do, due to the former's smaller size. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5087 c06c8d41-db1a-0410-9941-cceddc491573
* Fix BR 1959133 (Shiori): change Ancus to Ankus.dploog2008-05-161-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5085 c06c8d41-db1a-0410-9941-cceddc491573
* Rename the "blessed blade" the "blessed eudemon blade", so that the name dolorous2008-05-071-21/+21
| | | | | | | | of the Blessed Blade artefact is unique. Also, attempt to add shopping values for the new blessed blades (these probably need adjustment). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4909 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow monsters from picking up missiles for which they don't havej-p-e-g2008-05-071-6/+7
| | | | | | | | the necessary launcher, but allow upgrading of missiles for ones with higher pluses or branded ones. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4906 c06c8d41-db1a-0410-9941-cceddc491573
* First attempt at making vampire feeding interruptible. It doesn't workj-p-e-g2008-05-051-0/+10
| | | | | | | | | | | yet (I had "You stop feeding" followed by "You continue feeding" including full effects), but it's probably better to commit now anyway. Known potions of blood or porridge cannot be quaffed when engorged (alive). Also clean up blood potions check. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4871 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow dualwielders to wield 2-handed weapons, even if they currentlyj-p-e-g2008-04-291-1/+1
| | | | | | | | | | | | | | only have one weapon since this would mean they'd never replace it again with a 1-handed weapon to pair another weapon with. Remove orc warlords from Beogh reinforcement and increase chance for plain orcs. Change "Heel!" command to "Come here!" because "Heel!" looks completely out of place for intelligent followers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4764 c06c8d41-db1a-0410-9941-cceddc491573
* Change the displayed names of the various blessed blades to match their dolorous2008-04-281-16/+16
| | | | | | | types. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4712 c06c8d41-db1a-0410-9941-cceddc491573
* Add spacing fix.dolorous2008-04-281-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4711 c06c8d41-db1a-0410-9941-cceddc491573
* Allow monsters to pick up and exchange armour if they find somethingj-p-e-g2008-04-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | better. This will only happen if the armour will fit the monster (correct size) and if the new armour has a better AC, or both items have the same AC but the new armour has a higher value (uses shopping values). Matching racial type (orcish for orcs, elven for elves) doubles an item's value, so between two plain +0 ring mails, one orcish one not, an orc will always prefer the former. Friendly monsters now may pick up items dropped by other friendlies. This means that they can re-collect their own thrown missiles, and that they can upgrade from stuff dropped by their fallen comrades. Hey, that's monster AI in action! :) They still won't pick up stuff randomly lying around, and neutrals or enslaved monsters never will pick up anything. And of course, friendly jellies (should that be possible) won't ever devour items. Cleanup of mstuff2.cc, and reduce chances for Beogh orcs' chattiness (again). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4632 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up blessed blade handling a bit.dolorous2008-04-221-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4484 c06c8d41-db1a-0410-9941-cceddc491573
* Change mummy curses to only turn part of a stack of potions into decay.j-p-e-g2008-04-211-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | Instead, the amount is 2 + random2(quantity - 1), so ranging anywhere from 2 to the entire stack. Yes, I know this is probably highly controversial, but I've thought about it some, and I think that this will actually change little for most characters: You still won't take large stacks of valuable potions into the Tomb since even if only part of the stack is destroyed it's a huge loss. On the other hand, this is easier on newbies who had no idea this could happen, and makes it a bit more harder for Transmuters to turn their twenty-something potions of water into decay. I also added a message ("Your potions of xyz decay.") if you know the decay type. Otherwise the message is suppressed, so as to replicate the current situation of "Hey, what's this? When did I pick up those? (q)uaff..." For consistency, I also added a message when stuff is cursed, or rather I merged all those "Your foo glows black" messages into do_curse_stuff() that now takes a parameter "quiet" to control whether it's printed ot not. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4438 c06c8d41-db1a-0410-9941-cceddc491573
* Make lajatangs more common to compensate for the weaker quarterstaff.dshaligram2008-04-211-1/+1
| | | | | | | | | Also strengthened Agnes slightly, speeded her up a bit further, and gave her a lajatang. Lajatangs can now be generated with a brand. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4426 c06c8d41-db1a-0410-9941-cceddc491573
* Add a missing break statement to fix unID'd scroll of recharging enchanting j-p-e-g2008-04-201-2/+2
| | | | | | | armour instead... oops! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4395 c06c8d41-db1a-0410-9941-cceddc491573
* Rename functions to avoid confusion: is_blessable() -> is_convertible(), dolorous2008-04-181-4/+4
| | | | | | | normal2good() -> convert2good(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4323 c06c8d41-db1a-0410-9941-cceddc491573
* Revert quarterstaves' damage and accuracy to pre-4.1 values: 7, +6.dolorous2008-04-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4308 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up TSO's weapon blessing again.dolorous2008-04-171-25/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4306 c06c8d41-db1a-0410-9941-cceddc491573
* Add weapon blessing-related cleanups.dolorous2008-04-161-22/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4276 c06c8d41-db1a-0410-9941-cceddc491573
* Allow TSO to bless non-artefact blessed weapons, if the player ever dolorous2008-04-161-0/+3
| | | | | | | finds one. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4275 c06c8d41-db1a-0410-9941-cceddc491573
* Don't allow weapons converted by TSO to be racial anymore.dolorous2008-04-161-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4273 c06c8d41-db1a-0410-9941-cceddc491573
* Let TSO's weapon blessing for players work on weapons that have the holy dolorous2008-04-161-0/+24
| | | | | | | wrath brand, and which can be in a blessed form but aren't. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4253 c06c8d41-db1a-0410-9941-cceddc491573
* Let TSO's weapon blessing for the player create blessed variants of all dolorous2008-04-151-11/+88
| | | | | | | long blades, not just demon blades. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4250 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-04-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4249 c06c8d41-db1a-0410-9941-cceddc491573
* Add more weapon blessing cleanups for TSO.dolorous2008-04-151-5/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4248 c06c8d41-db1a-0410-9941-cceddc491573
* Let TSO's "holy attack power" blessing for followers turn demon blades dolorous2008-04-151-2/+2
| | | | | | | | into scimitars again. The corresponding blessing for players will still turn them into blessed blades. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4247 c06c8d41-db1a-0410-9941-cceddc491573
* Allow vampires to mutate when Satiated or higher, and make non-physicalj-p-e-g2008-04-151-106/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | mutations only apply at these hunger levels, too. Differentiated mutations into physical (affecting a character's appearance and stuff: scales, hooves, wings, ...) and internal (resistances etc.). I guess this is what people usually refer to as "cosmetic", which I think is an inaccurate description since it makes it sound like they were completely superficial and had no real effect. Here's a list of arbitrarily chosen "physical" mutations: * tough skin, all scales, and fur * strong/clever/agile, and weak/dopey/clumsy * deformed * strong but stiff, and flexible but weak * frail, and robust * claws, fangs, hooves, talons, and horns * stinger, wings * blue/green marks Mutations currently not applying are still listed on the 'A' screen, though in darkgrey and in (brackets). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4246 c06c8d41-db1a-0410-9941-cceddc491573
* Quiver work:pauldubois2008-04-141-2/+3
| | | | | | | | | | | | | | + bug: if wield sling and no quiver, then pick up stones: should quiver + implement: save and load (does not break saves) + remove: fire_quiver_best + remove: you.quiver + bug: identifying items doesn't update quiver properly + rename: you.quiver_change -> you.redraw_quiver + test no item because of =f git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4227 c06c8d41-db1a-0410-9941-cceddc491573
* Make TSO's blessing turn demon blades turn into blessed blades again, dolorous2008-04-141-2/+2
| | | | | | | for now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4225 c06c8d41-db1a-0410-9941-cceddc491573
* Let TSO's blessings properly convert demonic weapons into non-demonic dolorous2008-04-141-22/+48
| | | | | | | | weapons. Note that demon blades now become scimitars. This will be improved later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4224 c06c8d41-db1a-0410-9941-cceddc491573
* For TSO, make the rarest blessing that of branding a monster's weapon dolorous2008-03-281-4/+4
| | | | | | | | with holy wrath (where Beogh would promote an orc to an orc priest). This is not used yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3921 c06c8d41-db1a-0410-9941-cceddc491573
* Split potions of blood and potions of coagulated blood into twoj-p-e-g2008-03-261-0/+6
| | | | | | | | | | | | | | | | distinct potion types to make stacking easier. Coagulated blood is not created randomly, and aging potions of blood turn into potions of coagulated blood, so none of that changed. Well, except the name: congealed -> coagulated. This also means that they now have distinct descriptions, though seeing potions in your inventory coagulate will identify both of them. And I checked: potions in shops will coagulate as well and disappear. Coagulated blood is cheaper, but if you need it you won't want to wait around, right? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3884 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1923913: blood spattering into fountainsj-p-e-g2008-03-241-6/+2
| | | | | | | | | | | Fix 1923487: jewelled helmets getting the "jewelled" randart description Fix 1923471: Suppress the beholding message if only attacking. Also remove ARM_HELM since it's identical in every way with ARM_HELMET and only serves to confuse coders. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3858 c06c8d41-db1a-0410-9941-cceddc491573