RimWorld

RimWorld

29 ratings
TablesAreForMeals
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2
File Size
Posted
Updated
343.799 KB
15 Aug, 2020 @ 11:13am
5 Jan, 2021 @ 8:15am
6 Change Notes ( view )

Subscribe to download
TablesAreForMeals

Description
Some foods make great snacks, even when there isn't a table around. This mod takes a different approach on balancing the AteWithoutTable mood penalty.

For foods which are best eaten at a table, like meals, the penalty will now stack (-3/-5/-8) and last longer (1.5 days). Certain foods, however, like pemmican, fluids, and raw fruits and vegetables, no longer need a table. When packing their bags, pawns will prioritize grabbing pemmican (preferred over fine meals) or tasty fruits (preferred over simple meals but not fine).

The nutritional value of pemmican was also reduced to keep it balanced compared to packaged survival meals (which still need a table).

---------

How it works:

The default game behavior doesn't apply the AteWithoutATable mood penalty when eating something that has a low chair search radius. This mod uses an xpath patch to shorten the search radius for vegetable/fruits and fluids. It also makes a direct change to specific foods (pemmican, kibble, and chocolate). A harmony patch is then used to broaden the search range when eating the modified foods. The end result is pawns will still look for a table at the default distance but won't get a penalty if they can't find one.

The mod also uses a harmony patch to make pemmican and tasty foods that don't need a table more desirable when searching for food with the Pack Food Job. This mod shouldn't be incompatible with other mods that change food selection, but it might impact the decision of which foods they choose.

_______

Compatibility:

The mod should uses xpath patching and will apply to fruits/vegetables and fluids added by Vanilla Plants Expanded, RimCuisine, VGP, and any other food mod that uses the default foodType system. A patch would be needed for any other types of foods (e.g. variations of chocolate) or if the mod departs from how foods are set up in the base game.
20 Comments
Kayedon 3 Sep, 2021 @ 1:43pm 
Forked, modified, and updated to 1.3: https://steamproxy.net/sharedfiles/filedetails/?id=2592649967

Will remove at Cozar's request.
Swenthorian 29 Aug, 2021 @ 3:20pm 
I've been running this mod in 1.3 for a hundred hours without errors, so it should be safe to enable; but that said, I haven't tested to see if the mod's core functionality is actually still being performed.
Thundercraft 28 Aug, 2021 @ 5:57pm 
I'm also hoping to see an update for 1.3. Perhaps... some day?

I really want to use this mod. It only makes sense that drinks and raw foods should not incur a debuff to eat without a table. (Lots of people enjoy things like drinks and stuff like berries on the go - e.g., while on a trail, jogging, on a road trip, etc.) I also like the novel approach of how the mood penalty is removed by changing the search radius and then using Harmony patches.
Thundercraft 28 Aug, 2021 @ 5:55pm 
I dislike how Pemmican nutrition was reduced. Compared to even vanilla Pemmican, a Fine meal provides more nutrition, stores more nutrition per stack, & gives a +5 to mood. Also compared to vanilla Pemmican, Packaged survival meals are more efficient in terms of carry weight, are drastically more efficient in storage space, require significantly less work to make, & never expire (while Pemmican eventually will).

I assume Pemmican was nerfed because they no longer need a table, while Survival meals do. Instead, I'd suggest making Survival meals also edible without a table.

Whenever I think of Packaged survival meals, I think of MRE's. Those are truly "Meal Ready to Eat"; They're pre-cooked, making them safe to eat straight from the package - warm or cold. They can be eaten out of the wrappers with the plastic utensils provided. These are often eaten on a campout, on-the-go, or in an emergency. So, if survival meals are anything like MRE's, I'd say the consumer would not need a table.
SucháVoda 30 Jul, 2021 @ 1:51pm 
@Cozar will you update to 1.3?
Cozar  [author] 5 Jan, 2021 @ 8:16am 
Oops
Kayedon 4 Jan, 2021 @ 9:19pm 
Might've left some logging turned on? New version absolutely floods the log with "trying to give pack job to " and then "looking for food to pack". Dunno if this is intentional.

But I also sincerely appreciate the performance boost! Noticeable!
Cozar  [author] 4 Jan, 2021 @ 6:43pm 
Pretty much anything that I'd be just as happy eating standing up as I would sitting down. That includes fruits, pastries, snacks, cheese, jerky, etc... This mod included fluids, but the new mod doesn't because I realized that even if it is common to stand around drinking, I much prefer to have a table to set my drink on.

Hot dogs I would make tableless, but sausages I didn't because I think of them more like a bratwurst plate.
Kayedon 4 Jan, 2021 @ 6:08pm 
Oh cool! And you made it incredibly modular, awesome. :D

What's your guideline and method on choosing if a food should count? In my head, cheeses and sausage shouldn't require a table, and a simple xpath on my end could account for that. Seriously excellent work with your mods!

Cozar  [author] 4 Jan, 2021 @ 3:45pm 
Also, a slightly improved version has been incorporated into Variety Matters Dinner Time .The improvements aren't worth using that mod if you don't like any of the other features, however.