mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Fix promie shock mechanic & enables additional footsteps (#12802)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
a620b171cc
commit
e7e7d5342b
@@ -48,6 +48,9 @@
|
||||
/obj/item/flash/Initialize(mapload)
|
||||
. = ..()
|
||||
power_supply = new cell_type(src)
|
||||
if(can_repair)
|
||||
description_info = "If the device 'clicks' it has either been used too much recently or is out of charge - requiring a recharger. If the bulb is burnt out or broken, it needs to be repaired using a screwdriver."
|
||||
|
||||
|
||||
/obj/item/flash/attackby(obj/item/W, mob/user)
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER) && broken)
|
||||
@@ -58,8 +61,9 @@
|
||||
broken = FALSE
|
||||
update_icon()
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " fails to repair \the [src]."))
|
||||
else
|
||||
user.visible_message(span_infoplain(span_bold("\The [user]") + " stops attempting to repair \the [src]."))
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user