mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 13:33:29 +00:00
extended allergy system first pass
This commit is contained in:
@@ -52,6 +52,8 @@
|
||||
var/active_regen_mult = 1 // Multiplier for 'Regenerate' power speed, in human_powers.dm
|
||||
|
||||
var/taste_sensitivity = TASTE_NORMAL // How sensitive the species is to minute tastes.
|
||||
var/allergens = null // What kinds of food the species can safely eat without getting sick
|
||||
var/allergy_severity = 0.5 // How bad are reactions to the allergen? This is raw toxin damage per metabolism tick, multiplied by the amount metabolized
|
||||
|
||||
var/min_age = 17
|
||||
var/max_age = 70
|
||||
|
||||
@@ -225,6 +225,7 @@
|
||||
base_color = "#333333"
|
||||
|
||||
reagent_tag = IS_TAJARA
|
||||
allergens = COFFEE
|
||||
|
||||
move_trail = /obj/effect/decal/cleanable/blood/tracks/paw
|
||||
|
||||
@@ -312,6 +313,7 @@
|
||||
breath_heat_level_3 = 1350 //Default 1250
|
||||
|
||||
reagent_tag = IS_SKRELL
|
||||
allergens = MEAT|FISH|DAIRY
|
||||
|
||||
has_limbs = list(
|
||||
BP_TORSO = list("path" = /obj/item/organ/external/chest),
|
||||
|
||||
@@ -82,6 +82,7 @@
|
||||
|
||||
var/nutriment_factor = 0
|
||||
var/strength = 10 // This is, essentially, units between stages - the lower, the stronger. Less fine tuning, more clarity.
|
||||
var/allergen_type = GENERIC // What potential allergens does this contain?
|
||||
var/toxicity = 1
|
||||
|
||||
var/druggy = 0
|
||||
@@ -139,6 +140,9 @@
|
||||
|
||||
if(halluci)
|
||||
M.hallucination = max(M.hallucination, halluci*3)
|
||||
|
||||
if(M.species.allergens & allergen_type)
|
||||
M.adjustToxLoss((M.species.allergen_severity*4) * removed)
|
||||
|
||||
/datum/reagent/ethanol/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)
|
||||
if(issmall(M)) removed *= 2
|
||||
@@ -183,6 +187,9 @@
|
||||
|
||||
if(halluci)
|
||||
M.hallucination = max(M.hallucination, halluci)
|
||||
|
||||
if(M.species.allergens & allergen_type)
|
||||
M.adjustToxLoss(M.species.allergen_severity * removed)
|
||||
|
||||
/datum/reagent/ethanol/touch_obj(var/obj/O)
|
||||
if(istype(O, /obj/item/weapon/paper))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user