summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Always prompt when trying to drain a corpse as a vampire.dolorous2009-02-251-3/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9210 c06c8d41-db1a-0410-9941-cceddc491573
* Allow prompting to eat chunks when the player doesn't have the gourmand dolorous2009-02-241-3/+6
| | | | | | | effect, but is hungry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9190 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust handling of blood potion nutrition again.dolorous2009-02-231-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9168 c06c8d41-db1a-0410-9941-cceddc491573
* Go back to checking for wearing the amulet of the gourmand when dolorous2009-02-221-3/+5
| | | | | | | necessary, as it differentiates from the gourmand mutation properly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9166 c06c8d41-db1a-0410-9941-cceddc491573
* Add more gourmand-related fixes.dolorous2009-02-221-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9165 c06c8d41-db1a-0410-9941-cceddc491573
* Fix inverted logic when checking if the player likes chunks.dolorous2009-02-221-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9163 c06c8d41-db1a-0410-9941-cceddc491573
* Fix gourmand logic for blood potions yet again.dolorous2009-02-221-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9162 c06c8d41-db1a-0410-9941-cceddc491573
* Clarify.dolorous2009-02-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9161 c06c8d41-db1a-0410-9941-cceddc491573
* And fix them for vampires, too.dolorous2009-02-221-5/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9159 c06c8d41-db1a-0410-9941-cceddc491573
* Really fix gourmand checks regarding potions of blood.dolorous2009-02-221-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9158 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-02-221-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9155 c06c8d41-db1a-0410-9941-cceddc491573
* Fix gourmand checks regarding potions of blood.dolorous2009-02-221-3/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9154 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up gourmand-related routines: only check for gourmand duration dolorous2009-02-221-33/+31
| | | | | | | | | | instead of checking for wearing the amulet *and* gourmand duration, account for gourmand (both the amulet and the mutation) in the output screen, and treat gourmand (both the amulet and the mutation) consistently with regard to potions of blood. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9153 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Sif Muna occasionally gifting manuals.j-p-e-g2009-02-221-0/+12
| | | | | | | | | | | | * Change innate gourmand eating behaviour to MUT_GOURMAND (innate only). * Only bother prompting to eat chunks if the player has the gourmand mutation or the carnivorous mutation at level 3, or is wearing an amulet of the gourmand or an unidentified amulet. * Remove gourmand behaviour from Ogres, i.e. only Trolls get the mutation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9149 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9038 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [1974504]: eating from the floor did not respect !e.haranp2009-02-081-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8991 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up nutrition-related functions a bit, and handle non-vampires' dolorous2009-02-081-21/+27
| | | | | | | nutrition from blood potions more consistently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8983 c06c8d41-db1a-0410-9941-cceddc491573
* More type safety.haranp2009-01-311-31/+35
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8869 c06c8d41-db1a-0410-9941-cceddc491573
* Added options easy_eat_gourmand and easy_eat_contaminated.zelgadis2009-01-261-4/+10
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8769 c06c8d41-db1a-0410-9941-cceddc491573
* * Move eating logic from lua to C again, so as to handle more than j-p-e-g2009-01-251-35/+33
| | | | | | | | boolean responses (eat, skip, cancel). * Remove the now deprecated eat.lua. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8746 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing warnings.ennewalker2009-01-201-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8610 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2477235: Use inscription check when switching back from butcheringj-p-e-g2009-01-141-1/+8
| | | | | | | | | | | tool in case it was autoinscribed {!w}. * Make TSO reclaim holy wrath weapons an Elyvilon worshipper is attempting to destroy (flavour only). (FR 2497133) * Disallow Dissolution outside of the Slime Pits. * Explain 'e' as "Drain corpses" for Vampires in the command help. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8450 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve eating interface, as suggested in FRs 1923273 and 2018733.j-p-e-g2009-01-061-49/+439
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you now press 'e' the following takes place: 1) If you can eat chunks, the game builds a list out of all chunks on the floor and in your inventory, sorted by age [1], and prompts you to eat them [2]. 2) If none are found, or you decline all of them you get prompted for non-chunk food items on the floor. 3) Prompt for non-chunk food in your inventory. 4) Open up the food menu of your inventory. Because of the way lua works, there's currently a problem that in the early stages (1-3) "q" (now also accepts Escape) will cause to skip ahead to the next stage rather than leaving the process entirely, which is of course less than optimal. I also added two new options [1] prefer_safe_chunks (defaults to true) which will offer clean chunks before contaminated ones, even if the latter happens to be older [2] easy_eat_chunks (defaults to false) which causes the prompting to be skipped for safe (i.e. clean) chunks, so you will automatically eat the oldest chunk that applies. This is ignored for undead characters. I also got rid of the outdated safechnk.lua and chnkdata.lua seeing how chunk effects are no longer spoily information. Added a new wizmode command: Ctrl-H, which allows you to set your character's hunger state. (Hopefully this will make Vampire testing easier.) Also fix 2488374: "Controlled Flight being named upon levitation even if its type is already known. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8282 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2076940]: swapping to artefacts to butcher corpses could fail.haranp2009-01-011-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8083 c06c8d41-db1a-0410-9941-cceddc491573
* * Fixed a few issues with transformations.j-p-e-g2008-11-281-0/+1
| | | | | | | | | | | | | * Moved fixed arts' plusses, name and colour into a struct in randart.cc. (This should maybe be moved into unrand.h.) Name and description are now stored in the props vector like for randarts, and artefact_name() now handles all randarts, unrandarts and fixed artefacts. The Knife of Accuracy should probably be turned into an unrandart. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7673 c06c8d41-db1a-0410-9941-cceddc491573
* More steps toward ziggurats.dshaligram2008-11-231-11/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7553 c06c8d41-db1a-0410-9941-cceddc491573
* Fix [2330091]: Remove erroneous duplicated "you" from food-related dolorous2008-11-231-3/+3
| | | | | | | messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7545 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2307176: Bladehanded butcher not respecting gloves being melded.j-p-e-g2008-11-191-4/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7500 c06c8d41-db1a-0410-9941-cceddc491573
* Add still more minor cosmetic fixes.dolorous2008-11-171-79/+74
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7461 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fix.dolorous2008-11-011-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7325 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2041934: auto-swapping rings and amulets was taking twice as longharanp2008-10-111-3/+15
| | | | | | | | | as manually swapping (two double-speed turns plus one bogus normal-speed turn.) This also applied to weapon swapping after butchery. This fix is rather hackish, better solutions appreciated. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7213 c06c8d41-db1a-0410-9941-cceddc491573
* Rewrite of beam.cc: put all beam data in one place. Might be buggy.haranp2008-10-091-4/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7201 c06c8d41-db1a-0410-9941-cceddc491573
* Expand handling of monster intelligence and zombifiability to work on dolorous2008-10-061-8/+8
| | | | | | | the level of individual monsters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7148 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-10-021-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7078 c06c8d41-db1a-0410-9941-cceddc491573
* Carnivore food colouring was ignoring poison setting. [2134776]haranp2008-09-291-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7065 c06c8d41-db1a-0410-9941-cceddc491573
* Remove debugging messages. (Gah!)j-p-e-g2008-09-291-3/+0
| | | | | | | Add spell skills and level to spell description. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7063 c06c8d41-db1a-0410-9941-cceddc491573
* Vampire feeding changes:j-p-e-g2008-09-281-56/+88
| | | | | | | | | | | | | | | | | | * remove randomness and unify formulas for nutrition value of blood potions and corpses, so bottling potions can no longer be used to enforce greater nutrition: this means that draining corpses give more nutrition now * draining duration now matches nutrition more closely (the formulas used to be completely distinct, and quite complicated) * decrease blood potions' nutrition again (I'd increased it in my previous related commit), coagulated blood gives only 80% nutrition * blood potions last a bit longer (counter 2000 -> 2500) * healing from blood potions is impossible * healing from corpses is only possible while they're still fresh (i.e. won't start rotting soon, counter > 150) * remove unrotting etc. effects, decrease healing from human corpses git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7055 c06c8d41-db1a-0410-9941-cceddc491573
* 2088461: identify Holy Wrath brand on failed wield.haranp2008-09-211-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6965 c06c8d41-db1a-0410-9941-cceddc491573
* 2026956: only prompt for sharp weapons in butchery.haranp2008-09-211-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6963 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-5/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2008-09-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6897 c06c8d41-db1a-0410-9941-cceddc491573
* Fix food eat prompts ignoring macroed sequences (cbus).dshaligram2008-07-261-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6694 c06c8d41-db1a-0410-9941-cceddc491573
* Don't allow switching to autocurse weapons for butchery. [2026147]haranp2008-07-241-8/+13
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6670 c06c8d41-db1a-0410-9941-cceddc491573
* Fix Vampires draining small corpses not destroying said corpses. Veryj-p-e-g2008-07-181-7/+4
| | | | | | | embarassing, that. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6607 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2019873: Monsters picking up a second melee weapon if they alreadyj-p-e-g2008-07-181-1/+5
| | | | | | | | | | have one. (They now either upgrade or simply ignore a second weapon, unless dual-wielding.) Fix 2021307: Really get in some butchering before you get interrupted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6604 c06c8d41-db1a-0410-9941-cceddc491573
* Refix food eating issue bug introduced by my previous fix of it.haranp2008-07-171-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6590 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2018458: Portal projectile not handling branded ammo or nets.j-p-e-g2008-07-171-13/+33
| | | | | | | | | | | | | | | | | | | Fix 2019803: cold/fire destroying all susceptible items on the floor Change "You don't eat raw eat!" to "Blech - you need greens!" Also: Experimentally change sacrifices to take only 1 turn again, no matter how many corpses are actually sacrificed during this turn. Allow chained 'yes' and 'no' answers during the butchering prompt, so that 'cccccc' is now really functionally identical to 'ca'. In another return to previous handling, always get in that first turn of butchering for a single corpse (or the first corpse in butcher chains), so it takes a maximum of 3 turns rather than 4. Same for draining corpses as a Vampire: when draining corpses you get at least a little bit of nutrition out of it before you are interrupted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6579 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2019860: beef jerky wasn't considered meat.haranp2008-07-161-3/+12
| | | | | | | | Fix 2019581: weapon flavour was flowing through to subsequent attacks. Fix 2001572: persistent --more-- after dying to explosions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6577 c06c8d41-db1a-0410-9941-cceddc491573
* Add several complicated restrictions to the starting gods. Yes, this isj-p-e-g2008-07-101-4/+7
| | | | | | | | | probably done in a needlessly redundant way, but I'm tired and cranky, so please do forgive me. Might be buggy, thus won't apply to 0.4 yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6467 c06c8d41-db1a-0410-9941-cceddc491573