Adds Bola Blaster (#19222)

* Adds Bola Blaster

* Thick material blocks bolas
This commit is contained in:
Cameron Lennox
2026-02-24 21:59:53 +01:00
committed by GitHub
parent b6cd8d2399
commit 472a7c62e3
7 changed files with 65 additions and 3 deletions
+11 -2
View File
@@ -282,13 +282,22 @@
/obj/item/projectile/bola/on_hit(var/atom/target, var/blocked = 0)
if(ishuman(target))
var/mob/living/carbon/human/M = target
var/mob/living/carbon/human/human_target = target
var/obj/item/handcuffs/legcuffs/bola/B = new(src.loc)
if(!B.place_legcuffs(M,firer))
for(var/obj/item/clothing/cloth in list(human_target.wear_suit, human_target.w_uniform, human_target.shoes)) //Check if we have a thick material covering our feet.
if((cloth.body_parts_covered & FEET) && (cloth.item_flags & THICKMATERIAL))
..()
return
if(!B.place_legcuffs(human_target,firer))
if(B)
qdel(B)
..()
/obj/item/projectile/bola/energy
name = "energy_bola"
icon_state = "bola_energy"
damage = 0
/obj/item/projectile/webball
name = "ball of web"
icon_state = "bola"