Fixes #464, fixes #465, fixes #466 (#499)

No more negative frenzy.
LIs restrict social abilities (presence and dominate).
Also adds a notify parameter to vampire_can_effect_target. This way, the vamp doesn't get notifications in passive loops, such as Presence.
This commit is contained in:
skull132
2016-06-30 00:20:25 +03:00
committed by GitHub
parent 672ad7708a
commit dd94d6b92a
4 changed files with 52 additions and 21 deletions

View File

@@ -33,3 +33,10 @@
if (power.helptext)
vampire.current << "<font color='green'>[power.helptext]</font>"
// Proc to safely remove blood, without resulting in negative amounts of blood.
/datum/vampire/proc/use_blood(var/blood_to_use)
if (!blood_to_use || blood_to_use <= 0)
return
blood_usable = max(0, blood_usable - blood_to_use)