Skip to content

Commit

Permalink
Corpse Bloodpump properly functions
Browse files Browse the repository at this point in the history
Highvel rounds now actually have Highvel bullets.
  • Loading branch information
Mechoid committed Jul 18, 2023
1 parent 567f003 commit eb0655d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/oxygen_pump.dm
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
H.adjustOxyLoss(-(rand(1,8)))

if(H.stat == DEAD)
H.add_modifier(/datum/modifier/bloodpump_corpse, 6 SECONDS)
H.add_modifier(/datum/modifier/bloodpump/corpse, 6 SECONDS)

else
H.add_modifier(/datum/modifier/bloodpump, 6 SECONDS)
Expand Down
7 changes: 4 additions & 3 deletions code/modules/mob/_modifiers/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if(holder.stat == DEAD)
src.expire()

/datum/modifier/bloodpump_corpse
/datum/modifier/bloodpump/corpse
name = "forced blood pumping"
desc = "Your blood flows thanks to the wonderful power of science."

Expand All @@ -28,8 +28,9 @@

pulse_set_level = PULSE_SLOW

/datum/modifier/bloodpump/corpse/check_if_valid()
..()
/datum/modifier/bloodpump/corpse/check_if_valid() // Don't want this to expire on corpses, so cover the baseline time check.
if(expire_at && expire_at < world.time)
src.expire()
if(holder.stat != DEAD)
src.expire()

Expand Down
4 changes: 2 additions & 2 deletions code/modules/projectiles/ammunition/rounds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@

/obj/item/ammo_casing/a145/highvel
desc = "A 14.5mm sabot shell."
projectile_type = /obj/item/projectile/bullet/rifle/a145
projectile_type = /obj/item/projectile/bullet/rifle/a145/highvel

/obj/item/ammo_casing/a145/bb
desc = "A 14.5mm BB. That'll take someone's eye out."
projectile_type = /obj/item/projectile/bullet/bb
Expand Down
6 changes: 3 additions & 3 deletions code/modules/reagents/reagents/medicine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -421,15 +421,15 @@
scannable = 1

/datum/reagent/mortiferin/on_mob_life(var/mob/living/carbon/M, var/alien, var/datum/reagents/metabolism/location)
if(M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump_corpse))
if(M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump/corpse))
affects_dead = TRUE
else
affects_dead = FALSE

. = ..(M, alien, location)

/datum/reagent/mortiferin/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
if(M.bodytemperature < (T0C - 10) || (M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump_corpse)))
if(M.bodytemperature < (T0C - 10) || (M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump/corpse)))
var/chem_effective = 1 * M.species.chem_strength_heal
if(alien == IS_SLIME)
if(prob(10))
Expand Down Expand Up @@ -466,7 +466,7 @@

/datum/reagent/necroxadone/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
var/chem_effective = 1 * M.species.chem_strength_heal
if(M.bodytemperature < 170 || (M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump_corpse)))
if(M.bodytemperature < 170 || (M.stat == DEAD && M.has_modifier_of_type(/datum/modifier/bloodpump/corpse)))
if(alien == IS_SLIME)
if(prob(10))
to_chat(M, "<span class='danger'>It's so cold. Something causes your cellular mass to harden sporadically, resulting in seizure-like twitching.</span>")
Expand Down

0 comments on commit eb0655d

Please sign in to comment.