mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-24 13:16:47 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user