# Spoilage in root cellars is faster than underground (Z-1) (may be fixed in #41324)

**URL:** https://discourse.cataclysmdda.org/t/spoilage-in-root-cellars-is-faster-than-underground-z-1-may-be-fixed-in-41324/23956
**Category:** The Garage
**Created:** [June 15, 2020, 9:10am UTC](https://discourse.cataclysmdda.org/t/spoilage-in-root-cellars-is-faster-than-underground-z-1-may-be-fixed-in-41324/23956 "2020-06-15T09:10:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![int\_ua](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/int_ua/32/4402_2.png) [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)
#### Post date: [June 15, 2020, 9:10am UTC](https://discourse.cataclysmdda.org/t/spoilage-in-root-cellars-is-faster-than-underground-z-1-may-be-fixed-in-41324/23956/1 "2020-06-15T09:10:16Z")

</div>

As I understand from #24083 description they should be equal. Is it a bug? So far I’ve verified it on 0.E but I don’t think it’s different in latest experimentals, can anyone confirm? Time to spoil differs by about 10%. @mr_sep, can you please take a look?

---

<div class="post-metadata">

### Author: ![int\_ua](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/int_ua/32/4402_2.png) [@int\_ua](https://discourse.cataclysmdda.org/u/int_ua)
#### Post date: [June 15, 2020, 10:26am UTC](https://discourse.cataclysmdda.org/t/spoilage-in-root-cellars-is-faster-than-underground-z-1-may-be-fixed-in-41324/23956/2 "2020-06-15T10:26:54Z")

</div>

Looks like there needs to be a check for `t_rootcellar` in [item::process\_temperature\_rot](https://github.com/CleverRaven/Cataclysm-DDA/blob/a34d9cb5910ab18e120096a730945a74ad2bcb0c/src/item.cpp#L8698) along with `pos.z >= 0` check.

---

<div class="post-metadata">

### Author: ![mr\_sep](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mr_sep/32/3049_2.png) [@mr\_sep](https://discourse.cataclysmdda.org/u/mr_sep)
#### Post date: [June 15, 2020, 9:50pm UTC](https://discourse.cataclysmdda.org/t/spoilage-in-root-cellars-is-faster-than-underground-z-1-may-be-fixed-in-41324/23956/3 "2020-06-15T21:50:08Z")

</div>

Since the introduction of root cellar there was substantial amount of changes to the temperature system in the game so some things might got bugged on the way. But yes, in principle a root cellar original intention was to keep it’s contents at a constant low temperature equal to underground temperature of caves or basements.
