summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
Commit message (Collapse)AuthorAgeFilesLines
* Another clean up, and add some new weapon speech.j-p-e-g2008-07-071-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6439 c06c8d41-db1a-0410-9941-cceddc491573
* Misc. minor cleanups. (Yes, a huge amount of them but still...)j-p-e-g2008-06-261-63/+53
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6146 c06c8d41-db1a-0410-9941-cceddc491573
* FR 1993535: If asking the user for an item, and the player has none of thezelgadis2008-06-241-4/+1
| | | | | | | | type of item requested, then mpr() the message about it, rather than bringing up an empty menu with the message being the menu's title. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6105 c06c8d41-db1a-0410-9941-cceddc491573
* Implement the Petrify spell in a rather basic variant, and replace the j-p-e-g2008-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | player spell "Paralyse" with it, i.e. not the wand/potion/misc. effects. Petrify is a 4th level spell of the Enchantment/Transmigrations school (a unique combination, I believe), all other values (incl. the level) were shamelessly stolen from Paralysis. Anyway, it consists of two elements (so I actually added TWO new enchantments), Petrifying and Petrified. A monster that is petrifying cannot move around but can perform actions like hitting adjacent monsters or casting spells at a slowed rate (1.5 of the normal cost). Once this sub-enchantment runs out (happens faster) the monster cannot move or act anymore, so it works like Paralysis. The damage you do during stabbing is one third of what you'd do otherwise, for both states of enchantment, and for both stabbing counts as unchivalric behaviour. It has not been implemented as a monster spell, and ghosts of characters that had it will use Paralyse instead. Consequently, the effect on the player (in self targetting) only handles the Petrified part. Numbers, esp. enchantment timeout, will need tweaking. They're currently Petrifying: cturn = 50 / _mod_speed(10, mons->speed); Petrified: cturn = std::max(8, 150 / (1 + modded_speed(mons, 5))) because I wanted the first to always run out faster than the second, but at the same time make the ratio of Petrifying/Petrified tilt in favour of the first for powerful monsters. The numbers are more or less made up, and tested with different monsters in wizard mode. Still, could be anything between too weak and overpowered, though the latter is more likely. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5761 c06c8d41-db1a-0410-9941-cceddc491573
* Clean-up (renaming static methods and comments) in a number of files.j-p-e-g2008-06-101-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5703 c06c8d41-db1a-0410-9941-cceddc491573
* Rename SPELL_SUMMON_LARGE_MAMMAL to SPELL_CALL_CANINE_FAMILIAR, to match dolorous2008-06-071-3/+3
| | | | | | | the name used for it elsewhere. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5524 c06c8d41-db1a-0410-9941-cceddc491573
* Put spells in the Book of the Sky in ascending order by level.dolorous2008-05-311-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5366 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-05-251-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5230 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fix.dolorous2008-05-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5229 c06c8d41-db1a-0410-9941-cceddc491573
* Rename SPELL_SUMMON_SMALL_MAMMAL and SPELL_SWARM to dolorous2008-05-231-6/+6
| | | | | | | | SPELL_SUMMON_SMALL_MAMMALS and SPELL_SUMMON_SWARM, respectively, to match their user descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5188 c06c8d41-db1a-0410-9941-cceddc491573
* Make vampires' spell (and ability) hunger dependent on their hunger state.j-p-e-g2008-05-081-1/+3
| | | | | | | | | | Thirsty: 75% Very thirsty: 50% Near Bloodless: 25% Bloodless: None git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4933 c06c8d41-db1a-0410-9941-cceddc491573
* Drop Ignite Poison to level 6 (jarpiain).dshaligram2008-04-261-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4676 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-04-251-3/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4622 c06c8d41-db1a-0410-9941-cceddc491573
* Allow vampires to memorize Alter Self, and to cast it when they're dolorous2008-04-241-1/+0
| | | | | | | capable of mutating. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4590 c06c8d41-db1a-0410-9941-cceddc491573
* Remove unused ravenous hunger state, and clean up food state checks a dolorous2008-04-231-1/+1
| | | | | | | bit more. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4535 c06c8d41-db1a-0410-9941-cceddc491573
* Implement "Summon Ugly Thing" as a player spell, in the Book of dolorous2008-04-191-1/+1
| | | | | | | | | Summonings just before Shadow Creatures. Also make it available to player ghosts, so that it can be seen in action from monsters, and put it in the list of Xom spells. This will probably need adjustment. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4369 c06c8d41-db1a-0410-9941-cceddc491573
* Allow vampires to mutate when Satiated or higher, and make non-physicalj-p-e-g2008-04-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 1941782: Allow vampires to learn spells such as Berserk and j-p-e-g2008-04-141-2/+17
| | | | | | | | | | Transmigrations, but let them only cast them while full or more. (Once satiated is reached, they automatically time out.) Bug 1941885: Don't give vampires nutrition from quaffing non-blood potions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4235 c06c8d41-db1a-0410-9941-cceddc491573
* A number of whitespace changes. Linux makes this soooo easy. :Pj-p-e-g2008-04-111-19/+19
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4196 c06c8d41-db1a-0410-9941-cceddc491573
* Increased Tiamat's hp and attack damage a touch.dshaligram2008-03-311-1/+1
| | | | | | Changed spell levels: bolt of fire, cold -> 6, lightning bolt -> 5, ball lightning -> 7. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3988 c06c8d41-db1a-0410-9941-cceddc491573
* Fix typo.dolorous2008-03-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3516 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 1905715: Print "nothing appears to happen" when zapping /diggingj-p-e-g2008-03-031-2/+2
| | | | | | | | | without effect, same as for enchantment wands. Fix 1905740: Only list actual spellbooks for memorise prompt. Also: s/memorize/memorise git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3508 c06c8d41-db1a-0410-9941-cceddc491573
* First batch of Paul's patches:j-p-e-g2008-02-181-1/+1
| | | | | | | | | | | | 1896018: cycle ammo with '(' 1895278: no (v)iewing of unreadable books 1895075: cancel Ely's abilities without cost Fix 1894920: fix overly long dungeon overview Also fix 1884145: weapon swap ignoring {!w} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3441 c06c8d41-db1a-0410-9941-cceddc491573
* Rework staves/rods to match the ID behaviour of wands etc., i.e.j-p-e-g2008-02-101-0/+11
| | | | | | | | | | | | | | | | | they get randomised but fixed descriptions at the beginning of the game, and once you know one type you'll be able to recognize another staff/rod of the same type. In the case of rods you'll still have to evoke it to find out the number of charges. I've tried to put the secondary descriptions into an order that will roughly match the ten current staff tiles. This solves part of FR 1837348, and is likely to cause havoc to saved games, at least concerning staves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3424 c06c8d41-db1a-0410-9941-cceddc491573
* Fix collision between gotoxy(int,int,int) and DOS djgpp gotoxy().dshaligram2008-01-251-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
* Remove GLAMOUR, and introduce RECITE (new Zin invocation)j-p-e-g2008-01-241-1/+0
| | | | | | | | | | | | | | | | | | The latter is a work in progress and may have strange results. It is intended as a multiturn invocation that is interrupted by large hp losses. IMHO, reciting things is an action that needs to take several turns. Each turn an attempt at influencing intelligent monsters is made. They usually fall asleep, are confused or turn berserk. The delay gets cancelled when the player is heavily wounded or when there are no impressionable monsters around anymore. I think the power formula will have to be tweaked. Comments welcome! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3321 c06c8d41-db1a-0410-9941-cceddc491573
* Tile changes. *waves to Enne*j-p-e-g2008-01-121-13/+16
| | | | | | | | | | | | | | | | Fix assertion error when unwielding items. FR 1838216: Make R-click on map *really* show grid information. FR 1838219: Add more diverse action verbs for items in inventory ("eat", "unwield" etc. rather than plain "use") and allow memorizing by L-clicking on books. Bug 1858432: Show 0 charge icon for empty but unID'd wands. Also: Don't regard enslavement on friendlies as attack attempt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3264 c06c8d41-db1a-0410-9941-cceddc491573
* [1862240] Allow mummies to use rods of smiting, removed minimum ↵dshaligram2008-01-021-11/+4
| | | | | | level-restriction for rods. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3171 c06c8d41-db1a-0410-9941-cceddc491573
* A number of tutorial improvements, including reintroducing info on spellbooks.j-p-e-g2007-11-191-1/+1
| | | | | | | | | Also: Fix 1832819. (Horn mutation not making helmet slot show as "restricted") Fix 1831983. (Autobutcher now ignores weapons inscribed with !w) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2872 c06c8d41-db1a-0410-9941-cceddc491573
* Integrated patch 1828014 (spell order).haranp2007-11-081-2/+2
| | | | | | | Also unbroke trunk build. Oops. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2806 c06c8d41-db1a-0410-9941-cceddc491573
* Blocked some useless spells for Vampires and Ghouls. [1827689]haranp2007-11-071-0/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2789 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed the other instance of Control Teleport (in Spatial Translocations.)haranp2007-11-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2720 c06c8d41-db1a-0410-9941-cceddc491573
* Changed order of spells in Book of Control. [1823455]haranp2007-11-011-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2719 c06c8d41-db1a-0410-9941-cceddc491573
* s/portaled/portalharanp2007-10-311-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2707 c06c8d41-db1a-0410-9941-cceddc491573
* [1757174] Disallow mapping in labyrinths.dshaligram2007-10-241-4/+9
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2536 c06c8d41-db1a-0410-9941-cceddc491573
* Clear dropped+thrown flags on corpse when converting it to chunks ↵dshaligram2007-10-071-0/+1
| | | | | | (V-Napkin). Also announce rod identification when it self-ids [1808821]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2355 c06c8d41-db1a-0410-9941-cceddc491573
* Reintroduced Slime:6 royal-jelly-death marker.dshaligram2007-09-281-1/+1
| | | | | | [1804113] Corrected spell order in Practical Magic. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2243 c06c8d41-db1a-0410-9941-cceddc491573
* Added new commands "re-do previous command" (bound to `) and "repeatzelgadis2007-09-191-0/+7
| | | | | | | | | | next command" (bound to 0). Though this is just an interface change, it changes code in the core input processing function (input() in acr.cc), and also messes around with the input buffer, so it could probably do with more testing before merging it into the 0.3 branch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2137 c06c8d41-db1a-0410-9941-cceddc491573
* A handful of new game options:zelgadis2007-09-171-1/+1
| | | | | | | | | | | | | | | | | | menu_colour_prefix_id, if set to true, causes the identification state of an object to be prefixed to the string menu colour regexes are matched against (but does not alter the string displayed on the screen). menu_colour_prefix_class, if set to true, prefixes the object's base type to the string menu colour regexes are matched against. user_note_prefix can be set to a string which will be prefixed to manual user notes when they are displayed, to make them easier to find. detailed_hunger, if set to true, will cause three new informational-only hunger states to be displayed: near starving, very hungry and very full. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2121 c06c8d41-db1a-0410-9941-cceddc491573
* In the item selection menu, pressing "." will toggle the next item in thezelgadis2007-09-161-0/+1
| | | | | | | | | | | list; you can press "." repeatedly to select/unselect a number of contiguous items. Also, removed the depedancy upon "menu.h" for formatted_string, since that isn't in menu.h anymore. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2101 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-0/+1
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another tutorial updatej-p-e-g2007-08-161-2/+2
| | | | | | | ... and Sif Muna finally gets those other titles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2007 c06c8d41-db1a-0410-9941-cceddc491573
* More stuff for the tutorial:j-p-e-g2007-08-151-0/+37
| | | | | | | | | | | | | | | | | - Enhanced handling of spellbooks and artefacts. - Feature descriptions now cover altars. - Added monster descriptions (out of depth and brands). Also: - space-only inscription counts as no inscription - ring of teleportation autoID's if no teleport randart In my last commit I forgot to mention that the descriptions were suggested by Richard Gould, and I'd like to give credit where credit is due. :) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2005 c06c8d41-db1a-0410-9941-cceddc491573
* Added rod of venom [1701655]. Redid some braindead staff handling.haranp2007-07-261-11/+24
| | | | | | | Breaks savefiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1932 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed two rod bugs:haranp2007-07-141-59/+55
| | | | | | | | | | 1. You should be able to use the rod if your Evocations reduces the hunger cost sufficiently; 2. Spell validity was being checked against the rod subtype, not against its book number. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1860 c06c8d41-db1a-0410-9941-cceddc491573
* Minor refactoring.haranp2007-07-091-22/+24
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1817 c06c8d41-db1a-0410-9941-cceddc491573
* Added the Portaled Projectile spell, following 1686312.haranp2007-06-271-2/+2
| | | | | | | | | Hopefully I didn't break the fsim_ranged code in the process. PP is now arbitrarily stuck into Spatial Translocations; it will be moved out when we add a Book of Archery. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1670 c06c8d41-db1a-0410-9941-cceddc491573
* Various cleanups and goto elimination.haranp2007-06-271-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1667 c06c8d41-db1a-0410-9941-cceddc491573
* ToD is gone. Upped Shatter damage by one-third to compensate.haranp2007-06-251-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1648 c06c8d41-db1a-0410-9941-cceddc491573
* Lots of things which used to be members (invis, conf, confusing_touch, etc.)haranp2007-06-231-2/+2
| | | | | | | | are now durations. Removed some unnecessary limitations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1626 c06c8d41-db1a-0410-9941-cceddc491573