# Lettuce classification bug

**URL:** <https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033>\
**Category:** The Garage\
**Created:** [October 22, 2020, 8:20pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033 "2020-10-22T20:20:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tazeell](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/tazeell/32/4576_2.png) [@Tazeell](https://discourse.cataclysmdda.org/u/Tazeell)\
**Post date:** [October 22, 2020, 8:20pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/1 "2020-10-22T20:20:03Z")

</div>

It seems the game does not consider lettuce plant matter. Completely edible by carnivores.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [October 23, 2020, 6:54am UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/2 "2020-10-23T06:54:02Z")

</div>

Why does it seem like that to you?

---

<div class="post-metadata">

**Author:** ![Tazeell](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/tazeell/32/4576_2.png) [@Tazeell](https://discourse.cataclysmdda.org/u/Tazeell)\
**Post date:** [October 23, 2020, 2:47pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/3 "2020-10-23T14:47:14Z")

</div>

Its not red for a carnivore and eating it causes none of the penalties every single other piece of non animal matter does. Ate a bunch of it in my game to make sure. Was a very strange experience.

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [October 23, 2020, 3:36pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/4 "2020-10-23T15:36:13Z")

</div>

It’s appreciated if you add the version/build number to a bug report since stuff like that can change quickly.

I can confirm this bug for 0.E-6779-gc3caa74 (build 11094), no mods.

… And I have not the slightest idea what’s causing it 😕 … The material is “veggy” and all its entries are also found on other items that are considered inedible with the carnivore trait.

Edit:  
Actually, it’s the low calorie value… Since it checks if the [nutrition is higher than 0](https://github.com/CleverRaven/Cataclysm-DDA/blob/62c0a6206bb1c262cd7b712b46d101de728e6db7/src/consumption.cpp#L749), it will not recognize it as inedible.  
As for why it considers 6 lower or equal to 0 - no idea…

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [October 23, 2020, 4:25pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/5 "2020-10-23T16:25:02Z")

</div>

I think calories are modified for carnivores, so they may become 0.

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [October 23, 2020, 6:11pm UTC](https://discourse.cataclysmdda.org/t/lettuce-classification-bug/25033/6 "2020-10-23T18:11:33Z")

</div>

It shows as 4 kilocalories in game, the same for normal and carnivore characters, and eating one as a carnivore does indeed add 4 kcal to the stomach and (later) to the stored body fat…  
Still not sure what happens there…
