yeah alcohol intolerance

This commit is contained in:
Putnam
2019-12-20 16:46:38 -08:00
parent 8b61c07713
commit 758e66ac2d
4 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -171,7 +171,7 @@
#define TRAIT_ASSBLASTUSA "assblastusa"
#define TRAIT_CULT_EYES "cult_eyes"
#define TRAIT_FREESPRINT "free_sprinting"
#define TRAIT_NO_ALCOHOL "alcohol_intolerance"
// common trait sources
#define TRAIT_GENERIC "generic"
+21 -1
View File
@@ -149,4 +149,24 @@
value = 0
medical_record_text = "Patient never skipped ass day."
gain_text = "<span class='notice'>Your ass rivals those of golems.</span>"
lose_text = "<span class='notice'>Your butt feels more squishy and slappable.</span>"
lose_text = "<span class='notice'>Your butt feels more squishy and slappable.</span>"
/datum/quirk/alcohol_intolerance
name = "Alcohol Intolerance"
desc = "Your body just can't handle alcohol at all. You don't get drunk faster, you just vomit it right back up as soon as you taste any."
value = 0
mob_trait = TRAIT_NO_ALCOHOL
gain_text = "<span class='danger'>Just smelling alcohol makes you feel a little sick.</span>"
lose_text = "<span class='notice'>You no longer feel like vomiting just from the thought of alcohol.</span>"
medical_record_text = "Patient's body violently rejects ethyl alcohol."
/datum/quirk/alcohol_intolerance/add()
var/mob/living/carbon/human/H = quirk_holder
var/datum/species/species = H.dna.species
species.disliked_food |= ALCOHOL
/datum/quirk/alcohol_intolerance/remove()
var/mob/living/carbon/human/H = quirk_holder
if(H)
var/datum/species/species = H.dna.species
species.disliked_food &= ~ALCOHOL
@@ -448,7 +448,6 @@
desc = "Quinine tastes funny, but at least it'll keep that Space Malaria away."
icon_state = "tonic"
list_reagents = list("tonic" = 50)
foodtype = ALCOHOL
/obj/item/reagent_containers/food/drinks/soda_cans/sodawater
name = "soda water"
@@ -77,6 +77,14 @@ All effects don't start immediately, but rather get worse over time; the rate is
// +10% success propability on each step, useful while operating in less-than-perfect conditions
return ..()
/datum/reagent/consumable/ethanol/on_mob_add(mob/living/L,amount)
if(HAS_TRAIT(L, TRAIT_NO_ALCOHOL) && boozepwr > 0)
if(iscarbon(L))
var/mob/living/carbon/C = L
C.vomit()
L.reagents.remove_all_type(/datum/reagent/consumable/ethanol, amount*4, 0, 1)
return ..()
/datum/reagent/consumable/ethanol/beer
name = "Beer"
id = "beer"