From 4fda5a1dacd143574a52bf4122fbbc8d46cc3a29 Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Sun, 24 Dec 2023 05:01:21 -0600 Subject: [PATCH] reworks the changeling shield (#23334) * reworks the changeling shield * oh yeah * Update code/modules/antagonists/changeling/powers/mutations.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> --- .../antagonists/changeling/powers/mutations.dm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/code/modules/antagonists/changeling/powers/mutations.dm b/code/modules/antagonists/changeling/powers/mutations.dm index 48c133b545b..c689b9386fd 100644 --- a/code/modules/antagonists/changeling/powers/mutations.dm +++ b/code/modules/antagonists/changeling/powers/mutations.dm @@ -390,7 +390,7 @@ /datum/action/changeling/weapon/shield name = "Organic Shield" desc = "We reform one of our arms into a hard shield. Costs 20 chemicals." - helptext = "Organic tissue cannot resist damage forever. The shield will break after it is hit too much. The more DNA we collect, the stronger it is. Cannot be used while in lesser form." + helptext = "Organic tissue cannot resist damage forever, with the shield breaking after it is hit 6 times. Automatically parries. Cannot be used while in lesser form." button_icon_state = "organic_shield" chemical_cost = 20 dna_cost = 2 @@ -404,7 +404,6 @@ var/obj/item/shield/changeling/S = ..(user) if(!S) return FALSE - S.remaining_uses = round(cling.absorbed_count * 3) return TRUE /obj/item/shield/changeling @@ -413,7 +412,7 @@ flags = NODROP | DROPDEL icon_state = "ling_shield" - var/remaining_uses //Set by the changeling ability. + var/remaining_uses = 6 /obj/item/shield/changeling/Initialize(mapload) . = ..() @@ -423,6 +422,10 @@ playsound(loc, 'sound/effects/bone_break_1.ogg', 100, TRUE) /obj/item/shield/changeling/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK) + SEND_SIGNAL(owner, COMSIG_HUMAN_PARRY) + . = ..() + if(!.) + return if(remaining_uses < 1) if(ishuman(loc)) var/mob/living/carbon/human/H = loc @@ -430,10 +433,9 @@ playsound(loc, 'sound/effects/bone_break_2.ogg', 100, TRUE) H.unEquip(src, 1) qdel(src) - return 0 + return FALSE else remaining_uses-- - return ..() /***************************************\ |*********SPACE SUIT + HELMET***********|