mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Merge pull request #9136 from dwinters99/explo-shieldbash
Explo shields shieldbash
This commit is contained in:
@@ -79,6 +79,15 @@
|
||||
desc = "A shield issued to exploration teams to help protect them when advancing into the unknown. It is lighter and cheaper but less protective than some of its counterparts. It has a flashlight straight in the middle to help draw attention. This one is POURPEL"
|
||||
icon_state = "explorer_shield_P"
|
||||
|
||||
/obj/item/weapon/shield/riot/explorer/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/weapon/material/knife/machete))
|
||||
if(cooldown < world.time - 25)
|
||||
user.visible_message("<span class='warning'>[user] bashes [src] with [W]!</span>")
|
||||
playsound(src, 'sound/effects/shieldbash.ogg', 50, 1)
|
||||
cooldown = world.time
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/weapon/shield/riot/explorer/purple/update_icon()
|
||||
if(on)
|
||||
icon_state = "explorer_shield_P_lighted"
|
||||
|
||||
Reference in New Issue
Block a user