Bloodsucker Fledgeling quirk and quirk ability section in code

adds a vampiric quirk that makes you only be able to gain nutrients from blood and be able to bite, along with their problems, also adds section to add in abilities for neutral quirks
This commit is contained in:
Nukechickenu64
2022-10-01 20:04:53 -04:00
parent 1caaadf412
commit 94759db4c8
5 changed files with 95 additions and 2 deletions
@@ -57,9 +57,11 @@
/datum/reagent/blood/on_mob_life(mob/living/carbon/C) //Because lethals are preferred over stamina. damnifino.
var/blood_id = C.get_blood_id()
if((blood_id in GLOB.blood_reagent_types) && !HAS_TRAIT(C, TRAIT_NOMARROW))
if((blood_id in GLOB.blood_reagent_types) && !HAS_TRAIT(C, TRAIT_NOMARROW) && !HAS_TRAIT(C, BLOODFLEDGE))
if(!data || !(data["blood_type"] in get_safe_blood(C.dna.blood_type))) //we only care about bloodtype here because this is where the poisoning should be
C.adjustToxLoss(rand(2,8)*REAGENTS_EFFECT_MULTIPLIER, TRUE, TRUE) //forced to ensure people don't use it to gain beneficial toxin as slime person
if(HAS_TRAIT(C,BLOODFLEDGE))
C.adjust_nutrition(20)
..()
/datum/reagent/blood/reaction_obj(obj/O, volume)