Project Zomboid

Project Zomboid

25 个评价
[41+42] Food Allergy Traits by TwinCrows
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
430.776 KB
1 月 25 日 下午 11:39
3 月 8 日 下午 3:34
10 项改动说明 ( 查看 )

订阅以下载
[41+42] Food Allergy Traits by TwinCrows

描述
==================
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
26 条留言
iErr0r32 10 月 11 日 上午 4:58 
gluten, wgeat,medic allergy ?
TwinCrows  [作者] 9 月 26 日 下午 12:00 
Thanks for the feedback you all, I'm checking in on this mod and it still works.

Sometime I'd like to add antihistamines, which would be a drug that removes the allergic reaction moodlet, for multiplayer when you accidentally eat a food that includes your allergen. So far, I feel it's not necessary, but I may add it when multiplayer B42 is released.

As far as other allergies, I entirely welcome anyone who wants to copy this mod and make it affect other foods. Doing so is mostly a matter of finding the in-game system names for various foods, and copying a bit of code for each.

Someday I'd like to find out how to bring back Lactose Intolerance, but I'm mostly just reusing code that exists in Moodle Framework, which will support multiplayer. Let me know if you see any mods with traits that trigger based on liquid consumption.
storm 9 月 14 日 下午 11:51 
underrated mod
Codemonkey3 8 月 5 日 上午 10:11 
I love the trait! Unfortunately I think the new patch introduced a lua error when right clicking.
greenpeapea 6 月 23 日 上午 8:52 
Finally, I can roleplay as myself with fish and peanut allergies. Banger mod, I was hoping for this :steamhappy:
Rooford 5 月 9 日 下午 4:14 
*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 5 月 9 日 下午 3:23 
can you add celiac
Gazimon 5 月 1 日 下午 2:21 
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 3 月 21 日 上午 4:26 
Extremely impressed by the detail you went through for thins answer. You’re awesome, thank you
TwinCrows  [作者] 3 月 13 日 下午 7:26 
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.