mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-27 15:06:14 +01:00
COMPLETELY FUCKING REFACTORS TOOL CHECKING CODE
dear FUCKING GOD why was it like this, it hurts soooo bad DDDD:
This commit is contained in:
@@ -47,7 +47,7 @@ obj/structure/medkit_cabinet/contents_explosion(severity, target)
|
||||
|
||||
//disassembly code
|
||||
/obj/structure/medkit_cabinet/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/wrench) && !stored_medkit)
|
||||
if(I.tool_behaviour == TOOL_WRENCH && !stored_medkit)
|
||||
to_chat(user, "<span class='notice'>You start unsecuring [name]...</span>")
|
||||
I.play_tool_sound(src)
|
||||
if(I.use_tool(src, user, 60))
|
||||
|
||||
Reference in New Issue
Block a user