Holodeck claymores & eswords can only block holodeck items (#18229)

* fix

* also esword

* implement changes + better scoping

* oops

* comment cleanup

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
This commit is contained in:
Sirryan2002
2022-07-07 20:24:58 +01:00
committed by GitHub
co-authored by Charlie
parent 05695d6096
commit d8cde4f3ab
@@ -425,6 +425,13 @@
/obj/item/holo
damtype = STAMINA
//override block check, we don't want to block anything that's not a holo object
/obj/item/holo/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby)
if(!istype(hitby, /obj/item/holo))
return FALSE
else
return ..()
/obj/item/holo/claymore
name = "claymore"
desc = "What are you standing around staring at this for? Get to killing!"
@@ -437,6 +444,7 @@
attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
block_chance = 50
/obj/item/holo/claymore/blue
icon_state = "claymoreblue"
item_state = "claymoreblue"