mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
vampire stuff (#31913)
This commit is contained in:
committed by
GitHub
parent
3dd4fe9d34
commit
b44e32617b
@@ -82,7 +82,7 @@
|
|||||||
/* Tier 5 (/vg/) */
|
/* Tier 5 (/vg/) */
|
||||||
/datum/power/vampire/mature
|
/datum/power/vampire/mature
|
||||||
cost = 400
|
cost = 400
|
||||||
granttext = "You have reached physical maturity. You are more vulnerable to holy things, and your vision has been improved greatly."
|
granttext = "You have reached physical maturity. You are more vulnerable to holy things, and your vision has been improved greatly. You drain blood from people twice as fast and you no longer need to take their masks off."
|
||||||
store_in_memory = TRUE
|
store_in_memory = TRUE
|
||||||
|
|
||||||
/* Tier 6 (/vg/) */
|
/* Tier 6 (/vg/) */
|
||||||
|
|||||||
@@ -154,8 +154,9 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
if(H.check_body_part_coverage(MOUTH))
|
if(H.check_body_part_coverage(MOUTH))
|
||||||
to_chat(M, "<span class='warning'>Remove their mask!</span>")
|
if(!locate(/datum/power/vampire/mature) in current_powers)
|
||||||
return FALSE
|
to_chat(M, "<span class='warning'>Remove their mask!</span>")
|
||||||
|
return FALSE
|
||||||
|
|
||||||
if(vampire_teeth?.amount == 0)
|
if(vampire_teeth?.amount == 0)
|
||||||
to_chat(M, "<span class='warning'>You cannot suck blood with no teeth!</span>")
|
to_chat(M, "<span class='warning'>You cannot suck blood with no teeth!</span>")
|
||||||
@@ -163,12 +164,8 @@
|
|||||||
|
|
||||||
if(ishuman(M))
|
if(ishuman(M))
|
||||||
var/mob/living/carbon/human/vamp_H = M
|
var/mob/living/carbon/human/vamp_H = M
|
||||||
if(H.check_body_part_coverage(MOUTH))
|
if(vamp_H.check_body_part_coverage(MOUTH))
|
||||||
if(vamp_H.species.breath_type == GAS_OXYGEN)
|
to_chat(H, "<span class='notice'>With practiced ease, you shift aside your mask for each gulp of blood.</span>")
|
||||||
to_chat(H, "<span class='warning'>Remove your mask!</span>")
|
|
||||||
return FALSE
|
|
||||||
else
|
|
||||||
to_chat(H, "<span class='notice'>With practiced ease, you shift aside your mask for each gulp of blood.</span>")
|
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
|
|
||||||
@@ -210,8 +207,9 @@
|
|||||||
break
|
break
|
||||||
if (!(targetref in feeders))
|
if (!(targetref in feeders))
|
||||||
feeders[targetref] = 0
|
feeders[targetref] = 0
|
||||||
|
var/mature = locate(/datum/power/vampire/mature) in current_powers
|
||||||
if(target.stat < DEAD) //alive
|
if(target.stat < DEAD) //alive
|
||||||
blood = min(20, target.vessel.get_reagent_amount(BLOOD)) // if they have less than 20 blood, give them the remnant else they get 20 blood
|
blood = min(mature ? 40 : 20, target.vessel.get_reagent_amount(BLOOD)) // if they have less than 20 blood, give them the remnant else they get 20 blood
|
||||||
if (feeders[targetref] < MAX_BLOOD_PER_TARGET)
|
if (feeders[targetref] < MAX_BLOOD_PER_TARGET)
|
||||||
blood_total += blood
|
blood_total += blood
|
||||||
else
|
else
|
||||||
@@ -221,7 +219,7 @@
|
|||||||
var/datum/organ/external/head/head_organ = target.get_organ(LIMB_HEAD)
|
var/datum/organ/external/head/head_organ = target.get_organ(LIMB_HEAD)
|
||||||
head_organ.add_autopsy_data("sharp teeth", 1)
|
head_organ.add_autopsy_data("sharp teeth", 1)
|
||||||
else
|
else
|
||||||
blood = min(10, target.vessel.get_reagent_amount(BLOOD)) // The dead only give 10 blood
|
blood = min(mature ? 20 : 10, target.vessel.get_reagent_amount(BLOOD)) // The dead only give 10 blood
|
||||||
if (feeders[targetref] < MAX_BLOOD_PER_TARGET)
|
if (feeders[targetref] < MAX_BLOOD_PER_TARGET)
|
||||||
blood_total += blood
|
blood_total += blood
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user