From 4776dfd94fea87ab191c24c377886d858f58e917 Mon Sep 17 00:00:00 2001 From: alex-gh Date: Fri, 14 Feb 2014 14:13:03 +0100 Subject: [PATCH] Telebaton now only stuns if it actually hits. --- code/_onclick/item_attack.dm | 2 +- code/game/objects/items/weapons/swords_axes_etc.dm | 8 +++++--- code/modules/mob/living/carbon/human/human_defense.dm | 9 +++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index 33289c34591..e1a89c454ce 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -145,7 +145,7 @@ if(istype(M, /mob/living/carbon/human)) - M:attacked_by(src, user, def_zone) + return M:attacked_by(src, user, def_zone) else switch(damtype) if("brute") diff --git a/code/game/objects/items/weapons/swords_axes_etc.dm b/code/game/objects/items/weapons/swords_axes_etc.dm index 0f5b6fcbf84..deb732895a7 100644 --- a/code/game/objects/items/weapons/swords_axes_etc.dm +++ b/code/game/objects/items/weapons/swords_axes_etc.dm @@ -166,8 +166,13 @@ H.update_inv_r_hand() playsound(src.loc, 'sound/weapons/empty.ogg', 50, 1) add_fingerprint(user) +<<<<<<< HEAD if (!blood_DNA) return if(blood_overlay && (blood_DNA.len >= 1)) //updates blood overlay, if any +======= + + if(blood_overlay && (blood_DNA.len >= 1)) //updates blood overlay, if any +>>>>>>> 8850a43... Fixes #3847 overlays.Cut()//this might delete other item overlays as well but eeeeeeeh var/icon/I = new /icon(src.icon, src.icon_state) @@ -194,7 +199,6 @@ if(!..()) return if(!isrobot(target)) playsound(src.loc, "swing_hit", 50, 1, -1) - //target.Stun(4) //naaah target.Weaken(4) else playsound(src.loc, 'sound/weapons/Genhit.ogg', 50, 1, -1) @@ -243,8 +247,6 @@ /* * Energy Axe */ -/obj/item/weapon/melee/energy/axe/attack(target as mob, mob/user as mob) - ..() /obj/item/weapon/melee/energy/axe/attack_self(mob/user as mob) src.active = !( src.active ) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index f3575e3bf5d..0c0e3096b50 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -201,7 +201,7 @@ emp_act target_zone = user.zone_sel.selecting if(!target_zone && !src.stat) visible_message("\red [user] misses [src] with \the [I]!") - return + return 0 if(istype(I, /obj/item/weapon/butch/meatcleaver) && src.stat == DEAD && user.a_intent == "harm") var/obj/item/weapon/reagent_containers/food/snacks/meat/human/newmeat = new /obj/item/weapon/reagent_containers/food/snacks/meat/human(get_turf(src.loc)) @@ -226,10 +226,10 @@ emp_act var/datum/organ/external/affecting = get_organ(target_zone) if (!affecting) - return + return 0 if(affecting.status & ORGAN_DESTROYED) user << "What [affecting.display_name]?" - return + return 0 var/hit_area = affecting.display_name if((user != src) && check_shields(I.force, "the [I.name]")) @@ -246,7 +246,7 @@ emp_act var/obj/item/weapon/card/emag/emag = I emag.uses-- affecting.sabotaged = 1 - return + return 1 if(I.attack_verb.len) visible_message("\red [src] has been [pick(I.attack_verb)] in the [hit_area] with [I.name] by [user]!") @@ -301,6 +301,7 @@ emp_act if(bloody) bloody_body(src) + return 1 /mob/living/carbon/human/proc/bloody_hands(var/mob/living/source, var/amount = 2)