summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
Commit message (Collapse)AuthorAgeFilesLines
* corpses are inedible for non-vamps if the chunks are inedible (5040)Jesse Luehrs2014-08-141-4/+17
|
* Re-add a vampire message (|amethyst)Nicholas Feinberg2014-08-091-0/+3
|
* Don't give --more-- prompts for trying to eat (8849)Nicholas Feinberg2014-08-081-15/+22
| | | | | ...when there's a chunk on the floor, but you aren't hungry enough to eat it. (This was erroneously introduced by 2a0806f3.)
* Don't check for Sublimation in butchering promptsNicholas Feinberg2014-08-081-2/+1
| | | | | | Specifically, when considering whether to warn vampires that they could drain blood instead. (The presence of Sublimation is no longer relevant.)
* Remove an unreachable blocNicholas Feinberg2014-08-081-7/+0
|
* Forbid butchering/eating Xtahua and Gastronok under Zin (#7726)Neil Moore2014-07-311-2/+14
| | | | | | | | | | | | | | Now, if the corpse or chunk has an orig_monnum, we use that rather than the mon_type (which is just the species) for determining the intelligence of the monster from which it came. Mixing chunks from Xtahua and a normal fire dragon could result in a stack that is either all edible, or all inedible (depending on which stack was the source of the merge and which the target). Furthermore, these chunks are only marked by the forbidden tag, and only if you worship Zin. This could be improved, but it is not clear how worthwhile that would be. On the other hand, preserving names on chunks might be "fun" for some players (even if that is kind of creepy).
* Remove stuffNicholas Feinberg2014-07-291-1/+2
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Create prompt.ccNicholas Feinberg2014-07-271-0/+1
|
* Make Sublimation of Blood only effective when cast on the playerChris Campbell2014-07-231-14/+4
| | | | | | | | | | | Having a spell work in two completely different ways depending on context is unintuitive, and self-casting it is the much more interesting use. Makes the spell unmemorisable for species without blood (Gargoyle, Ghoul, Mummy). Species that can't bleed get both level 1 spells from the first Kiku gift. Has some ugly duplication of lists of species that can't bleed, because using player::can_bleed won't correctly handle statue- or lich- formed players even with allow_tran = false, due to them changing the player's holiness.
* More functionobjecticide.Neil Moore2014-07-131-29/+25
| | | | | If there is no state, function objects are usually just extra verbosity compared to a function pointer.
* Track eating in action counts.Neil Moore2014-07-051-0/+2
|
* Remove some unused code accidentally restored.Shmuale Mark2014-07-041-76/+22
| | | | | This was my fault for not splitting up the code cleanup from the actual gameplay changes, of course.
* Revert "don't eat off the floor (aef094f7fd7. 9c21a484839)"Nicholas Feinberg2014-07-041-30/+217
| | | | | | | | | | | It was enormously inconvenient, especially now that weightless means that everyone's running around with 52-item inventories, and didn't offer any strong benefits beyond the ideological. It would be better to have a unified "use items from the floor" interface, which would essentially turn this into a special case, but until then, let players eat in however unsanitary a manner they please.
* Don't allow eating chunks off the ground, either (|amethyst).Shmuale Mark2014-07-021-34/+26
|
* Disallow eating off the ground for non-vampires.Shmuale Mark2014-07-021-199/+16
| | | | | It makes the 'e' key less consistent for no obvious benefit. Not to mention that it's incredibly unsanitary.
* Split butchering/bottling into a new fileNicholas Feinberg2014-07-011-0/+1
|
* Remove an unused function (gammafunk).Shmuale Mark2014-06-301-83/+4
|
* Don't crash when vampires hit 'q' after bottling one corpseNicholas Feinberg2014-06-281-1/+1
|
* Decontaminate all chunks.Shmuale Mark2014-06-271-51/+5
| | | | | | | | | | | | "This chunk gives you less nutrition" is not a very interesting effects, and most of the time the only real effect is that you have to press 'e' a few more times. If chunks on the whole are too common (which in the current food environment is very hard to define) monsters in general can give fewer chunks, or chunks can be less nutritious; no reason to make some monsters special. A good deal of code is still around because of the other less-nutrition case, non-ghoul saprovores eating rotten chunks.
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-1/+1
|
* Remove vestiges of Simulacrum-chunk interactions.Neil Moore2014-06-091-6/+3
| | | | | Wieldability, usefulness of butchery and chunks, tile wield tip, and monster food pickup.
* Make Doxygen @returns "@return" for consistancy.reaverb2014-06-051-1/+1
|
* Revert "Replace some you.mutaiton[] calls with player_mutation_level()"reaverb2014-06-031-2/+2
| | | | | | | | | This reverts commit 51bfb8de72b7fe848c31fa6ce10e2c94b959eb64. It turns out player_mutation_level() is not just a wrapper for you.mutation, so this could cause some odd bugs like being transformed influencing acquirement or not properly updating saves, it's probably best to just reapply places where we know the usage is correct.
* Replace some you.mutaiton[] calls with player_mutation_level()reaverb2014-06-031-2/+2
| | | | | It's still inconsistant, but at least some more non setting uses are now using player_mutation_level().
* Remove player burden and carrying capacitygammafunk2014-05-261-46/+14
| | | | | | | | | | | Item inventory weights (based on item mass) generally don't lead to meaningful decisions that justify the inventory juggling and interface problems that come from having burden states. The 52-slot limit is a better system for limiting inventory and providing inventory-related decisions because it's not so fine-grained and doesn't require the player to examine weights for each slot. Work is ongoing to improve the slot system by consolidating food types and handling strategic consumables in a different way.
* Randomised text for eating fruit (MarvinPA, PleasingFungus).Shmuale Mark2014-05-261-0/+8
|
* Remove some foods.Shmuale Mark2014-05-261-52/+0
| | | | | | Sausages, snozzcumbers, oranges, bananas, lemons, pears, apples, apricots, chokos, rambutans, lychees, strawberries, grapes, sultanas, and cheese.
* Remove Xom being amused by hunger in Labsreaverb2014-05-231-64/+0
| | | | It took quite a bit of code and was probably scummable by dropping food.
* Rename honeycombs royal jellies (PleasingFungus).Shmuale Mark2014-05-211-2/+2
| | | | | | | | | The name works just as well with bee themes, but also fits with the occasional jelly theme that vaults have. I also feel that it's a bit more iconic. Thankfully the bikeshed doesn't even have to change colour -- they were always both yellow.
* Remove Ambrosiareaverb2014-05-211-6/+0
| | | | | | | | Not removing DUR_AMBROSIA yet because ideas on ##crawl-dev such as giving the effect to !magic have been proposed. Once again, somebody might want to review my vault edits. I mostly replaced ambrosia with honeycombs.
* Remove royal jelliesreaverb2014-05-211-8/+0
| | | | | | Somebody else might want to review my vault changes - I mostly replaced them with honeycombs, which might be a problem, for example, in the Jiyva vaults.
* Clarify vampire chopping prompt slightly (#8513).Shmuale Mark2014-05-201-3/+4
|
* Remove plague shamblers.Shmuale Mark2014-05-141-10/+0
| | | | | | | | | The idea behind the miasma death explosion is interesting, but in general miasma can be extremely annoying and the cloud rather easy to avoid. This is especially true in the layout of Crypt, which is the only place they show up outside of vaults. The retching attack gave a rare special case that very rarely mattered and didn't help to distinguish them all that much.
* Auto-id jewellery on equip.Shmuale Mark2014-04-271-2/+0
| | | | | | | | | | | | In the case of rings/amulets that identified themselves when they had an effect, the player would want to try to put themselves in a position where the item would identify, which was techincally optimal but quite annoying. There were a few items that never would identify, but on the whole it's not worth keeping around the behavior just for them. The ID code is pretty confusing and it's quite possible the implementation is not ideal or there are actual bugs.
* Move mon death stuff from mon-stuff.cc to mon-death.cc.Shmuale Mark2014-04-121-0/+1
| | | | | | | Touches a lot of files since their #includes have to be edited. (Pushing now since it shouldn't break anything and keeping it updated is nasty.)
* Let all forms butcherChris Campbell2014-04-101-7/+0
| | | | Since they all eat normally now.
* Remove the unused jelly formChris Campbell2014-04-101-55/+8
|
* Let non-undead forms eat and drink normallyChris Campbell2014-04-101-11/+4
| | | | | | Eating limitations added nothing but complication, and potion restrictions were excessive for badforms that already had many significant restrictions.
* Allow ghouls to use easy_eat.Shmuale Mark2014-04-021-9/+5
| | | | | While the motivation for not allowing auto_eat makes sense, there's no reason to force them to use an extra 'e' to eat a chunk.
* Let Vampires bottle blood in forms that can butcher (#7852)Chris Campbell2014-03-271-1/+2
|
* Remove `auto_list` optionChris Oelmueller2014-03-111-1/+1
| | | | | | | | | | | | | It has been defaulting to `true` for a while now. That setting provides a nicer interface overall and there is little reason to support alter- nate input methods. Some prompts asking for a letter have not been adjusted, for example evoking a rod with multiple spells. Those are hopefully gone soon anyways. [Committer's note: The option had no known uses except by bots, and those could work without it. And, of course, multi-spell rods are gone.]
* Remove djinn.wheals2014-02-241-3/+13
| | | | | | | Djinn games can't be started (hopefully including using the rcfile), and djinn code should be removed on save-compat bump. Also, schedule a few SE things to be removed.
* Check for harmful monsters or clouds before easy-eating (wheals)Chris Oelmueller2014-01-251-1/+1
| | | | Now prompt in those cases even if `easy_eat = true`.
* Allow mutagenic chunks to be eaten when satiatedPekka Lampila2014-01-251-1/+4
| | | | | They don't give nutrition and player can usually get hungry by spamming spells/rods/abilities anyway.
* Brace and doublespace removal.Adam Borowski2013-12-141-6/+0
|
* Clean up item eating codeCedor2013-12-121-71/+33
| | | | | | Remove eat_item() from l_food.cc (code inserted in unique caller food_eat()), and use it in food.cc in place of the 2 duplicated functions eat_floor_item() and eat_inventory_item()
* Remove dead code for eating poisoned chunksPekka Lampila2013-12-101-27/+14
| | | | Without poison resistance that is.
* When butchering only check for known poison resistCedor2013-12-101-7/+11
| | | | | | | Added a parameter to _determine_chunk_effect to check unided poison resist (default case for eating) or not. Plus increased badness for poisoned corpse because poisoned corpse got same badness as contam corpses.
* Simplify butchery handlingChris Campbell2013-12-061-148/+7
| | | | | | Butchery is always allowed except in a few forms (bat, wisp, fungus). Removes a lot of unnecessary/unused code for swapping weapons and removing equipment when butchering.
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-8/+8
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.