Add vampire ability permission check

Adds a new mob proc that allows checking if vampiric abilities should function. Allows easily checking anti-magic, trait holy, garlic necklace, garlic blood, and staked status.

Bloodfledge actions and coffin healing will now use this check. Flight potions will warn bloodfledge quirk users before allowing consumption.
This commit is contained in:
Darius
2023-02-12 10:57:13 -05:00
parent 23b6be270b
commit bc48a6eafc
5 changed files with 91 additions and 5 deletions
@@ -25,7 +25,11 @@
to_chat(coffin_user, span_warning("Your components don't respond to [src]'s sanguine connection! Regeneration will not be possible."))
continue
// User is not synthetic
// Check if vampire ability is allowed
if(!coffin_user.allow_vampiric_ability())
to_chat(coffin_user, span_warning("[src] fails to form a connection with your body amidst the strong magical interference! Something is blocking your connection to the other-world!"))
// Function already contains message
continue
// Define quirk entry
var/datum/quirk/bloodfledge/quirk_target = locate() in coffin_user.roundstart_quirks