Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 470eb4f

Browse files
drake nerf
1 parent 0b62288 commit 470eb4f

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

code/datums/traits/negative.dm

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,3 +985,35 @@
985985
if(!old_limb.is_organic_limb())
986986
cybernetics_level--
987987
update_mood()
988+
989+
/datum/quirk/lactose_intolerance
990+
name = "Lactose Intolerance"
991+
desc = "You don't tolerate milk or other dairy products. Racist."
992+
icon = "utensils"
993+
gain_text = span_danger("You suddenly feel intolerant towards milk.")
994+
lose_text = span_notice("You feel like you could drink milk again.")
995+
medical_record_text = "Patient is lactose intolerant."
996+
value = -1
997+
998+
/datum/quirk/lactose_intolerance/check_quirk(datum/preferences/prefs)
999+
var/datum/species/species_type = prefs.read_preference(/datum/preference/choiced/species)
1000+
if(initial(species_type.toxic_food) & DAIRY)
1001+
return "You're already lactose intolerant!"
1002+
species_type = new species_type()
1003+
if((TRAIT_POWERHUNGRY in species_type.inherent_traits) || (TRAIT_NOHUNGER in species_type.inherent_traits))
1004+
return "You don't eat food!"
1005+
return FALSE
1006+
1007+
/datum/quirk/lactose_intolerance/add()
1008+
if(!ishuman(quirk_holder))
1009+
return
1010+
var/mob/living/carbon/carbon_holder = quirk_holder
1011+
var/datum/species/spec = carbon_holder.dna.species
1012+
spec.toxic_food |= DAIRY
1013+
RegisterSignal(carbon_holder, COMSIG_SPECIES_GAIN, PROC_REF(on_species_gain))
1014+
1015+
/datum/quirk/lactose_intolerance/remove()
1016+
UnregisterSignal(quirk_holder, COMSIG_SPECIES_GAIN)
1017+
1018+
/datum/quirk/lactose_intolerance/proc/on_species_gain(datum/source, datum/species/new_species)
1019+
new_species.toxic_food |= DAIRY // no escape from your terrible fate

code/modules/mob/living/carbon/human/species_types/lizardpeople.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
meat = /obj/item/reagent_containers/food/snacks/meat/slab/human/mutant/lizard
2727
skinned_type = /obj/item/stack/sheet/animalhide/lizard
2828
exotic_bloodtype = "L"
29-
disliked_food = SUGAR | VEGETABLES
29+
toxic_food = parent_type::toxic_food | DAIRY
3030
liked_food = MEAT | GRILLED | SEAFOOD | MICE | FRUIT
3131
inert_mutation = FIREBREATH
3232
deathsound = 'sound/voice/lizard/deathsound.ogg'

code/modules/reagents/chemistry/reagents/drink_reagents.dm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@
198198
glass_desc = "White and nutritious goodness!"
199199
default_container = /obj/item/reagent_containers/food/condiment/milk
200200

201+
/datum/reagent/consumable/milk/on_mob_life(mob/living/carbon/M)
202+
. = ..()
203+
if(M.dna?.species?.toxic_food & DAIRY)
204+
M.adjust_disgust(5)
205+
201206
/datum/reagent/consumable/milk/coconut
202207
name = "Coconut Milk"
203208
description = "An opaque white liquid produced by the mammary glands of a coconut... wait what?"

0 commit comments

Comments
 (0)