summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
Commit message (Collapse)AuthorAgeFilesLines
* Apply recent commits to 0.4, including Matthew's evil zoo fix.j-p-e-g2008-07-091-3/+3
| | | | | | | Now how do I change the properties to native again? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6465 c06c8d41-db1a-0410-9941-cceddc491573
* Another clean up, and add some new weapon speech.j-p-e-g2008-07-071-1/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6439 c06c8d41-db1a-0410-9941-cceddc491573
* Remove some of my infamous debugging statements (I keep forgettingj-p-e-g2008-07-061-3/+5
| | | | | | | | | 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 a function x_chance_in_y(x,y) to replace the variousj-p-e-g2008-07-061-7/+7
| | | | | | | | random2(y) < x checks, e.g. x_chance_in_y(weight, totalweight). This should make things a bit more readable. Apply it to a number of files. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6428 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-14/+14
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* Modify quiver to only quiver ammunition explicitly chosen by the playerj-p-e-g2008-06-241-3/+3
| | | | | | | | | | | | (via (,) or i, or by the new quivering command). Ammo that just happens to come next in the fire order is not quivered anymore even if you continue firing. Add a new quiver command on Q, and while I was at it, restrict the items offered when firing (fi) or quivering to actual throwables. (This was a long outstanding FR.) I think that's it... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6112 c06c8d41-db1a-0410-9941-cceddc491573
* Add another minor cosmetic fix.dolorous2008-06-171-3/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5922 c06c8d41-db1a-0410-9941-cceddc491573
* Fix randart jewellery always named "of Bugginess".j-p-e-g2008-06-161-14/+19
| | | | | | | | Fix pickup.lua trying to find a butcher tool if the wielded edged weapon happens to be cursed. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5889 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up skill percentage calculation. Should fix 1929156.haranp2008-06-151-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5842 c06c8d41-db1a-0410-9941-cceddc491573
* While for the appearance of randart weapons and armour you can justzelgadis2008-06-121-5/+8
| | | | | | | | | | | | stick an adjective in front of the object type name ("bloodstained dagger"), unidentified non-artefact jewellry is described with both an adjective and material ("runed wooden ring"), making a description like "runed ring" a bit weird. So give randart jewellery an adjective that no non-artefact jewellery would have, plus a material that a non-artefact might or might not have. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5741 c06c8d41-db1a-0410-9941-cceddc491573
* The wizard "tweak item" command can now alter randart properties.zelgadis2008-06-021-0/+32
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5429 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2008-05-281-6/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5310 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1914059: randart jewellery inconsistently described as {tried} byj-p-e-g2008-05-251-1/+1
| | | | | | | | | | adding yet another entry to props. FR 1949504: Move version information into the help scroller, yay! It also looks much nicer now (if I may say so). Go, take a look! :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5234 c06c8d41-db1a-0410-9941-cceddc491573
* Add a tutorial hint for encountering an invisible monster and offer a j-p-e-g2008-05-151-0/+4
| | | | | | | | | | | different healing message if you recently met an invisible monster, as suggested in FR 1964267. Killing an invisible monster does not yet reset the counter, though I guess it should. Also, disallow randart weapons to be named after Sif Muna. (Vehumet, too, maybe?) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5052 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-05-121-5/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5014 c06c8d41-db1a-0410-9941-cceddc491573
* Disallow randart slings of venom, since they can produce poisoned stones dolorous2008-05-121-0/+7
| | | | | | | or sling bullets. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5013 c06c8d41-db1a-0410-9941-cceddc491573
* Rename the "blessed blade" the "blessed eudemon blade", so that the name dolorous2008-05-071-5/+1
| | | | | | | | 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
* * Fix god gift randarts being named after *other* gods.j-p-e-g2008-05-061-8/+6
| | | | | | | | | | * Reallow monster placement of bands (at least for Beogh's retribution; it might be similarly buggy for normal generation). * Extend documentation on orc naming, and sometimes name the band leader of a band sent after you for retribution. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4894 c06c8d41-db1a-0410-9941-cceddc491573
* Remove unnecessary parentheses.dolorous2008-04-301-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4781 c06c8d41-db1a-0410-9941-cceddc491573
* Fix _god_fits_artefact() to properly check for good gods' not gifting dolorous2008-04-301-2/+2
| | | | | | | cursed artefacts, as opposed to all gods' not gifting them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4780 c06c8d41-db1a-0410-9941-cceddc491573
* Fix off-by-one error when choosing a random god to gift an artefact.dolorous2008-04-301-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4779 c06c8d41-db1a-0410-9941-cceddc491573
* Remove the single level of negative energy resistance on blessed blade dolorous2008-04-281-1/+0
| | | | | | | artefacts, as TSO's power already provides enough resistance to it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4717 c06c8d41-db1a-0410-9941-cceddc491573
* All artefact blessed blades are now named Blessed Blades (note the dolorous2008-04-281-1/+1
| | | | | | | capitalization). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4714 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1949311: autoinscription for randart =Strength not respecting its j-p-e-g2008-04-251-6/+7
| | | | | | | enchantment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4620 c06c8d41-db1a-0410-9941-cceddc491573
* Fix props vector not being initialized for unrandarts (BR 1951367 j-p-e-g2008-04-251-9/+26
| | | | | | | | | and others). I'm really sorry about that! Modify pickup.lua to allow Vampires to pick up !berserk rage etc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4619 c06c8d41-db1a-0410-9941-cceddc491573
* FR 1951252: Modify shafts to usually (50%) drop you two levels, andj-p-e-g2008-04-251-2/+4
| | | | | | | | | | | sometimes (25% each) one or three. FR 1951309: Disallow SeeInv + rPois properties for randart naga bardings since naga already have those two as innate mutations, and there's no one else capable of wearing them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4615 c06c8d41-db1a-0410-9941-cceddc491573
* * Add a wizard function apply_monster_blessing to allow for easy testingj-p-e-g2008-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | of dolorous' fabulous blessing routines. * Allow the possibility of naming monsters: A monster's random name seed is stored in its number property, and the actual name gets picked from randname.txt. (Once this leaves the experimental stage I'll move them into a file of their own.) This means that monster types that already use number for something else (hydras for #heads, manticores for #spikes, or zombies for monster type) cannot be named. Use the new functions for naming orcs blessed by Beogh. Only non-generic orcs may get named, e.g. orcs promoted to priesthood or orc warriors that get their weapon enchanted. I tried to come up with a number of thematic orcish names, and if anyone would like to contribute, they're welcome to do so. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4586 c06c8d41-db1a-0410-9941-cceddc491573
* * Remove "Really eat rotten meat?" prompt, and print a generic refusalj-p-e-g2008-04-221-3/+1
| | | | | | | | | | | message instead. Also, don't offer rotten meat on floor if you won't be able to eat it (FR 1939905). * Give full xp when an enslaved monster is killed, as it's to be assumed it wouldn't have died without your interference (FR 1937178). * Re-allow enforcing saprovorous mutation in wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4488 c06c8d41-db1a-0410-9941-cceddc491573
* Make sure blessed blades don't get treated as unrandarts, either.dolorous2008-04-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4487 c06c8d41-db1a-0410-9941-cceddc491573
* Fix assertion failure when creating a blessed blade.dolorous2008-04-221-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4486 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up blessed blade handling a bit.dolorous2008-04-221-7/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4484 c06c8d41-db1a-0410-9941-cceddc491573
* Go all the way and also store a randart's name and description inj-p-e-g2008-04-221-39/+87
| | | | | | | | | | | the props table. No more re-rolling every time we need the name, yay! :D Should be save file compatible, and I also modified my previous change to be save file compatible, after all. Not entirely sure this works, though, as I didn't have any old saved games to test this with. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4479 c06c8d41-db1a-0410-9941-cceddc491573
* Allow Vampire Enchanters and Transmuters.j-p-e-g2008-04-221-36/+36
| | | | | | | | Tidy up a bit in randart.cc, and remove some of the longer Xom randart names. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4473 c06c8d41-db1a-0410-9941-cceddc491573
* Modify randart code to store randart properties in the props table,j-p-e-g2008-04-221-41/+109
| | | | | | | | | | | | | | | | and use it to force TSO's blessed blades to be randart items with the holy wrath brand and (for flavour) life protection. This change breaks saves, unfortunately, but allows for much cleaner finetuning. I also replaced all those randart names "of The Shining One's @esteem@" etc. with plain "of The Shining One", as they're just too long otherwise. I'm sorry, dolorous! If it helps, I also culled some of the other overly long names. Randart names are now generally restricted to a maximum length of 25. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4472 c06c8d41-db1a-0410-9941-cceddc491573
* Removing debug statement entirely.j-p-e-g2008-04-221-8/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4468 c06c8d41-db1a-0410-9941-cceddc491573
* #ifdef debug outputj-p-e-g2008-04-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4467 c06c8d41-db1a-0410-9941-cceddc491573
* Make TSO's blessed blade artefacts only get the holy wrath brand, by dolorous2008-04-211-22/+5
| | | | | | | | filtering out all other effects. There should be a better way to do this eventually... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4437 c06c8d41-db1a-0410-9941-cceddc491573
* Allow true randarts to occasionally recurse themselves.j-p-e-g2008-04-201-2/+7
| | | | | | | | If the curse property is chosen, there's a 33% chance of allowing recursing with equal chances for values = [1..5]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4407 c06c8d41-db1a-0410-9941-cceddc491573
* Change recursing to work similarly as was suggested by {bdr} - Brent?j-p-e-g2008-04-201-1/+1
| | | | | | | | | | | The curses property now may take any range of numbers, rather than plain 0 or 1. If its value is different from 0, the randart is created cursed. For positive values, it may additionally recurse itself with 1/value probability. In this case, add a description line ("It may recurse itself.") and an auto-inscription ("Curse", comes last). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4406 c06c8d41-db1a-0410-9941-cceddc491573
* Restrict randart names to a maximum length of 30. (I'd really like to j-p-e-g2008-04-191-34/+65
| | | | | | | | | | | | | | | restrict it to about 25, but "The Shining One's" needs 20 letters, so that's out.) Don't automatically regard unID'd jewellery randarts as {tried}, instead use a (very) rough estimate: if you know at least one property, the item will be marked as tried, otherwise (e.g. if the only property is +Dam, or prevents spellcasting) it won't be marked at all. I'm not actually sure this is better than never outputting {tried} for randarts, but we'll see... git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4374 c06c8d41-db1a-0410-9941-cceddc491573
* Don't add rF+/rC- to the autoinscriptions of randart rings of fire j-p-e-g2008-04-191-0/+8
| | | | | | | | | | (and vice versa for ice), since that's already what their base type does. Should the code ever be changed to allow them to get additional levels of resistance or susceptibility, the check is only done for the base stats (+1 and -1, respectively). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4362 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up TSO artefact handling some more, and fix indentation.dolorous2008-04-181-71/+73
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4322 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify TSO artefact gifts further, just in case they're ever expanded dolorous2008-04-181-4/+2
| | | | | | | beyond blessing long swords. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4321 c06c8d41-db1a-0410-9941-cceddc491573
* Simplify TSO randart gift checking. Also, make sure any randart gifts dolorous2008-04-181-4/+7
| | | | | | | | from Lugonu that are weapons get the distortion brand, since it's his associated brand, as holy wrath is for TSO. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4320 c06c8d41-db1a-0410-9941-cceddc491573
* For TSO artefact gifts, put checks against negative accuracy and damage dolorous2008-04-171-1/+3
| | | | | | | back in for now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4309 c06c8d41-db1a-0410-9941-cceddc491573
* Don't allow randart gifts from good gods to have the RAP_CURSED dolorous2008-04-171-2/+2
| | | | | | | | | property, as, according to comments in unrand.h, they tend to recurse themselves, and if the Scythe of Curses is considered unholy for doing the same, then it's inconsistent. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4307 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up TSO's weapon blessing again.dolorous2008-04-171-0/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4306 c06c8d41-db1a-0410-9941-cceddc491573
* Still another comment fix.dolorous2008-04-171-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4305 c06c8d41-db1a-0410-9941-cceddc491573
* More comment fixes.dolorous2008-04-171-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4304 c06c8d41-db1a-0410-9941-cceddc491573
* Fix typo in randart_is_redundant(), so that rings of teleportation are dolorous2008-04-171-2/+2
| | | | | | | handled properly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4303 c06c8d41-db1a-0410-9941-cceddc491573