Project Zomboid

Project Zomboid

Not enough ratings
[41+42] Food Allergy Traits by TwinCrows
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
430.776 KB
25 Jan @ 11:39pm
8 Mar @ 3:34pm
10 Change Notes ( view )

Subscribe to download
[41+42] Food Allergy Traits by TwinCrows

Description
==================
B42 "Unstable" Notes
==================
The B42 version does not include Lactose Intolerance trait due to Milk now being a Liquid rather than a Food as it was in B41.

Until somebody else cracks the code on how to detect what liquids are consumed, I've temporarily removed Lactose Intolerance trait from the B42 version only.

Peanut and Seafood allergies are included and working for B42! The number of seafood was drastically increased, from 20 items up to 48. That should cover every possible food in the game. The Seafood Allergy now gives 5 points, instead of 4, due to there being nearly twice as many allergen-inducing seafood items now.

Also be aware that MoodleFramework, this mod's core dependency, is still being worked on for B42, but as far as I could tell is fully functional in regards to this mod.

Otherwise, the mod is identical to the B41 description below.

===================

This mod adds 3 traits depicting common allergies.

==================
What are the allergies?
==================

Seafood Allergy // +4 Points // Can't eat any sort of fish, shrimp, caviar, or you will have a SEVERE reaction.

Peanut Allergy // +3 Points // Can't eat peanuts or peanut butter, or you will have a SEVERE reaction.

Lactose Allergy // +2 Points // Can't eat milk, cheese, yoghurt, ice-cream, butter, or you will have a MODERATE reaction.

===========================
How severe is the allergic reaction?
===========================

SEVERE reactions will cause great harm if more than one portion is eaten, causing anaphylactic shock. Even if one portion is eaten, there are detrimental effects including significant nausea and exhaustion. Each second spent at a worse Allergic Reaction moodlet brings a chance of sickness and fever.

MODERATE reactions will cause minimal harm if only one portion is eaten. The effects add up to be significant if eaten despite the queasiness, leading to anaphylactic shock if too much of the allergen is consumed.

================
How much can I eat?
================

You can get away with eating a little bit, and only suffering nausea.

However, careless eating can quickly cause severe damage, or even surprise death if the wrong food is eaten.

Although eating it does fulfil your hunger, the cost to your health can be severe if too much is eaten too fast.

========================
Does it work with cooking pots?
========================

Yes, it works for Salad, Stew, Soup, both types of Stir-fry, Pasta in pot or pan, rice in pot or pan, roasted vegetables, omelette, sandwich, and burger.

Each time the ingredient is added, it contributes +30/50/20% Allergic Reaction. (Seafood/Peanut/Lactose)

Meaning that a Peanut-allergic player may be put into anaphylactic shock with just two ingredients, a Seafood-allergic player with three, while a Lactose-allergic player needs five.

One ingredient here or there is not usually deadly, but can be damaging.

================
What are the effects?
================

Every second, you suffer an amount of direct damage based upon the severity of the allergic reaction.

In addition, each second, you will also suffer a smaller amount of fatigue and endurance damage, as well as gain a random amount of nausea.

The more you eat, the worse the effects are.

===============================
Do other Traits affect Allergic Reactions?
===============================

Depending on your other digestion and immune-system-related traits (Iron Gut/Weak Stomach, Resilient/Prone to Illness) the strength of the Reaction will adjust. You can use these traits to either soften the effects of allergic reactions, or make them more severe.

========
CREDITS
========

Thanks to Dynamic Traits by Peppercat for the template and base scripts. They're ingeniously well designed and it was fruitful to reverse-engineer.

Workshop ID: 3414814170
Mod ID: TCAllergyTraits
23 Comments
Codemonkey3 5 Aug @ 10:11am 
I love the trait! Unfortunately I think the new patch introduced a lua error when right clicking.
greenpeapea 23 Jun @ 8:52am 
Finally, I can roleplay as myself with fish and peanut allergies. Banger mod, I was hoping for this :steamhappy:
Rooford 9 May @ 4:14pm 
*I have four candidates for what mod was doing this, and Im commenting on each of them- This mod may cause an error to occur where your minimap doesnt appear, and your dash board in the car is gone*
AwesomeGreen 9 May @ 3:23pm 
can you add celiac
The Gaming Gazimon 1 May @ 2:21pm 
having read the comment on why you're not including epi-pens.
what about adding benedryl or generic antihistamines to help reduce severity? as this was generally the at home treatment for an allergic reaction in the early 1990s. major side effect being sleepiness which should be easily applicable using in game mechanics
Clone4082 21 Mar @ 4:26am 
Extremely impressed by the detail you went through for thins answer. You’re awesome, thank you
TwinCrows  [author] 13 Mar @ 7:26pm 
Zomboid's setting in 1993 is an interesting time for allergies. 'EpiPens' were uncommon, having only been approved for US sale in 1987, six years before the Zomboid apocalypse.

In 1993, the EpiPen patent was owned by Survival Technology, a company in Maryland that produced "nerve gas antidote auto-injectors" for the Department of Defense, similarly named "AtroPens."

It wasn't until 1997 that a subsidiary of Merck (German multinational pharma) bought the company owning the these technologies and began to market EpiPens for widespread use.

Much of the awareness of severe allergies stems from lobbying and marketing by patent-holders to promote the sale of EpiPens to schools. Today the EpiPen has similar name-recognition to "Kleenex," but in 1993 would have been unknown.

Long story short: I'm not planning on adding EpiPens, as it would be anachronistic by about 5 years. Excellent question though, as it unearthed some interesting history and nuance about allergies in 1993.
Clone4082 10 Mar @ 5:10pm 
Would epi-pens be available in this mod as a way to counteract the negative effects?
TwinCrows  [author] 9 Mar @ 12:45am 
@Poorlius Thanks! I appreciate the topic of balance. I tried to balance it best as I could, and I insist that it's worth +3 trait points.

Particularly because this mod has some powerful trait interactions with:
- Weak Stomach (+20% Allergen Poison, +10% Severity & -10% Recovery Speed)
- Slow Healer (+10% Allergen Poison, -20% Recovery Speed)
- Prone to Illness (+30% Allergen Poison, +30% Severity)

Those traits I would usually consider "free", and together give +3, +3, and +4. If you're already minmaxing, you'll be taking all of these with Peanut Allergy for a total 13 points.

However, this combination exponentially stacks Poison, such that even 1 ingredient in a meal will probably kill. That's equivalent to 1/4 jar of peanut butter. I balanced it so that under normal circumstances without those traits, it takes 2 ingredients to have a chance to die.
Poorlii 4 Mar @ 4:59pm 
Hey, this is a fantastic concept for a mod! But I feel like Peanut Allergy gives you too many points for what it is. Peanuts are already kind of an uncommon ingredient that's very easy to avoid eating, so you basically get 3 points for free. Do you think you could lower it to maybe 2 or 1?
This is such a strong concept that would basically be perfect if you would tweak a few of the balancing :D