From 9f8467d8ed1776a35c7ffd155c8bbaf3d39feed2 Mon Sep 17 00:00:00 2001 From: Aurorablade Date: Tue, 30 Jun 2015 20:38:05 -0400 Subject: [PATCH] Paranoia update --- .../simple_animal/slaughter/bloodnode.dm | 23 +++++++++++++------ .../simple_animal/slaughter/slaughter.dm | 3 ++- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/simple_animal/slaughter/bloodnode.dm b/code/modules/mob/living/simple_animal/slaughter/bloodnode.dm index 2f9083d1e32..36ccc87b379 100644 --- a/code/modules/mob/living/simple_animal/slaughter/bloodnode.dm +++ b/code/modules/mob/living/simple_animal/slaughter/bloodnode.dm @@ -8,6 +8,7 @@ density = 1 var/lastblood = 0 var/nodecount = 0 + var/datum/artifact_effect/paranoia = new /datum/artifact_effect/badfeeling @@ -50,14 +51,14 @@ ex_act(severity) var/damage = 150 health -= ((damage - (severity * 5))) - update_icon() + //update_icon() return bullet_act(var/obj/item/projectile/Proj) ..() health -= (Proj.damage) - update_icon() + //update_icon() return 0 @@ -65,7 +66,6 @@ user.changeNext_move(CLICK_CD_MELEE) user.do_attack_animation(src) playsound(get_turf(src), 'sound/effects/attackblob.ogg', 50, 1) - //new /datum/artifact_effect/badfeeling/DoEffectTouch(user) src.visible_message("\red The [src.name] has been attacked with \the [W][(user ? " by [user]." : ".")]") var/damage = 0 switch(W.damtype) @@ -74,14 +74,23 @@ if(istype(W, /obj/item/weapon/weldingtool)) playsound(get_turf(src), 'sound/items/Welder.ogg', 100, 1) if("brute") + paranoia.DoEffectTouch(user) damage = (W.force) health -= damage - update_icon() + //update_icon() return - attack_hand(var/mob/user) - user << "You REALLY do not want to touch that bare handed." + UnarmedAttack(var/mob/user) + user.changeNext_move(CLICK_CD_MELEE) + user.do_attack_animation(src) + paranoia.DoEffectTouch(user) + playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1) + var/damage = rand(1,10) + if(!damage) // Avoid divide by zero errors + return + damage = max(damage) + health -= damage return @@ -95,5 +104,5 @@ return damage = max(damage) health -= damage - update_icon() + //update_icon() return diff --git a/code/modules/mob/living/simple_animal/slaughter/slaughter.dm b/code/modules/mob/living/simple_animal/slaughter/slaughter.dm index a4a239294d5..f4e7d470a9e 100644 --- a/code/modules/mob/living/simple_animal/slaughter/slaughter.dm +++ b/code/modules/mob/living/simple_animal/slaughter/slaughter.dm @@ -294,9 +294,10 @@ //var/mob/living/carbon/human/M = pop(nearby_mortals) if(nearby_mortals.len) playsound(src.loc, pick('sound/hallucinations/wail.ogg','sound/hallucinations/veryfar_noise.ogg','sound/hallucinations/far_noise.ogg'), 50, 1, -3) - //new /datum/artifact_effect/badfeeling/DoEffectPulse() + var/datum/artifact_effect/paranoia = new /datum/artifact_effect/badfeeling for (var/mob/living/carbon/human/portal in nearby_mortals) + pranoia.DoEffectPulse() var/targetPart = pick("chest","groin","head","l_arm","r_arm","r_leg","l_leg","l_hand","r_hand","l_foot","r_foot") portal.apply_damage(rand(5, 10), BRUTE, targetPart) portal << "\red The skin on your [parse_zone(targetPart)] feels like it's ripping apart, and a stream of blood flies out."