From 1c9b3ed15904074586eac39ff424f5fdc3292dcd Mon Sep 17 00:00:00 2001 From: uraniummeltdown Date: Tue, 2 Jan 2018 20:49:28 +0500 Subject: [PATCH] removes useless alter_health() unused proc --- code/game/machinery/Sleeper.dm | 18 ------------------ code/game/objects/objs.dm | 4 ---- .../structures/crates_lockers/closets.dm | 3 --- code/game/objects/structures/morgue.dm | 8 -------- code/modules/recycling/disposal.dm | 4 ---- 5 files changed, 37 deletions(-) diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index 3c56199513e..728575fee21 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -399,24 +399,6 @@ new /obj/effect/gibspawner/generic(get_turf(loc)) //I REPLACE YOUR TECHNOLOGY WITH FLESH! qdel(src) - -// ??? -// This looks cool, although mildly broken, should it be included again? -/obj/machinery/sleeper/alter_health(mob/living/M as mob) - if(M.health > 0) - if(M.getOxyLoss() >= 10) - var/amount = max(0.15, 1) - M.adjustOxyLoss(-amount) - else - M.adjustOxyLoss(-12) - M.updatehealth() - M.AdjustParalysis(-4) - M.AdjustWeakened(-4) - M.AdjustStunned(-4) - if(M:reagents.get_reagent_amount("salglu_solution") < 5) - M:reagents.add_reagent("salglu_solution", 5) - return - /obj/machinery/sleeper/proc/toggle_filter() if(filtering) filtering = 0 diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index 4f4581caa54..daea457e696 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -163,10 +163,6 @@ if(istype(M) && M.client && M.machine == src) src.attack_self(M) - -/obj/proc/alter_health() - return 1 - /obj/proc/hide(h) return diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 931b777552f..4c8a2528b1e 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -33,9 +33,6 @@ dump_contents() return ..() -/obj/structure/closet/alter_health() - return get_turf(src) - /obj/structure/closet/CanPass(atom/movable/mover, turf/target, height=0) if(height==0 || wall_mounted) return 1 return (!density) diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm index 540c2e079aa..744bd26fc85 100644 --- a/code/game/objects/structures/morgue.dm +++ b/code/game/objects/structures/morgue.dm @@ -92,10 +92,6 @@ return return -/obj/structure/morgue/alter_health() - return loc - - /obj/structure/morgue/attack_hand(mob/user as mob) if(connected) for(var/atom/movable/A as mob|obj in connected.loc) @@ -290,10 +286,6 @@ return return -/obj/structure/crematorium/alter_health() - return loc - - /obj/structure/crematorium/attack_hand(mob/user as mob) if(cremating) to_chat(usr, "It's locked.") diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 7b090fc4f77..1aae13e1f0d 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -197,10 +197,6 @@ update() return -// can breath normally in the disposal -/obj/machinery/disposal/alter_health() - return get_turf(src) - // attempt to move while inside /obj/machinery/disposal/relaymove(mob/user as mob) if(user.stat || src.flushing)