Event stuff, but also Squeak component (#7285)

This commit is contained in:
BlackMajor
2023-12-11 14:40:47 +13:00
committed by GitHub
parent 835e207c5c
commit 92c744dfec
32 changed files with 831 additions and 78 deletions
@@ -1,7 +0,0 @@
/obj/item/device/radio/headset/casino
name = "radio headset"
desc = "An updated, modular intercom that fits over the head with extra comfortable for the hardworking casino luxury crew. Has encryption key for scamm-... Kind casino staff channel."
icon = 'icons/obj/casino_ch.dmi'
icon_state = "headset"
origin_tech = list(TECH_ILLEGAL = 2)
ks1type = /obj/item/device/encryptionkey/raider
@@ -217,12 +217,8 @@
/obj/item/weapon/melee/shock_maul/afterattack(atom/A as mob|obj|turf|area, mob/user as mob, proximity)
if(!proximity) return
..()
//CHOMPEdit start - maul changes
if(A && wielded && status)
deductcharge()
status = 0
user.visible_message("<span class='warning'>\The [src] discharges with a thunderous, hair-raising crackle!</span>")
playsound(src, 'sound/weapons/resonator_blast.ogg', 100, 1, -1)
update_held_icon()
if(istype(A,/obj/structure/window))
var/obj/structure/window/W = A
visible_message("<span class='warning'>\The [W] crumples under the force of the impact!</span>")
@@ -232,7 +228,22 @@
B.dismantle()
else if(istype(A,/obj/structure/grille))
qdel(A)
else if(istype(A, /turf/simulated/wall))
var/turf/simulated/wall/W = A
if(W.density)
W.take_damage(force*3) //One hit for regular walls, 3 hits for r_wall
else if(istype(A, /obj/structure/girder))
var/obj/structure/girder/G = A
G.dismantle()
else
return ..() //Don't do anything if we don't resolve anything on our target
deductcharge()
status = 0
user.visible_message("<span class='warning'>\The [src] discharges with a thunderous, hair-raising crackle!</span>")
playsound(src, 'sound/weapons/resonator_blast.ogg', 100, 1, -1)
update_held_icon()
powercheck(hitcost)
//CHOMPEdit end
/obj/item/weapon/melee/shock_maul/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone)
. = ..()