Reworks block chance into Parrying. (#19334)

* parry component

* converts block chance to parry components

* armour pen, katana fix, pickup fix

* melee parry fix

* removes perfect parries, tweaks armour pen calc

* SIGNAL_HANDLER

* fix

* resist fix

* reduces parry time out time, increases cooldown

* Apply suggestions from code review

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

* fix

* cooldown rebalance

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
Charlie
2022-11-12 08:49:44 +01:00
committed by GitHub
co-authored by Farie82
parent 8679d130bb
commit 421777b317
20 changed files with 195 additions and 66 deletions
@@ -360,12 +360,12 @@
desc = "A mass of tough, boney tissue. You can still see the fingers as a twisted pattern in the shield."
flags = NODROP | DROPDEL
icon_state = "ling_shield"
block_chance = 50
var/remaining_uses //Set by the changeling ability.
/obj/item/shield/changeling/Initialize(mapload)
. = ..()
AddComponent(/datum/component/parry, _stamina_constant = 2, _stamina_coefficient = 0.5, _parryable_attack_types = ALL_ATTACK_TYPES)
if(ismob(loc))
loc.visible_message("<span class='warning'>The end of [loc.name]\'s hand inflates rapidly, forming a huge shield-like mass!</span>", "<span class='warning'>We inflate our hand into a strong shield.</span>", "<span class='warning'>You hear organic matter ripping and tearing!</span>")