mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-14 17:37:04 +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:
@@ -71,7 +71,7 @@
|
||||
|
||||
/obj/item/polepack/attackby(obj/item/P, mob/user, params) //erecting a pole here.
|
||||
add_fingerprint(user)
|
||||
if(istype(P, /obj/item/wrench))
|
||||
if(P.tool_behavior == TOOL_WRENCH)
|
||||
if (!(item_flags & IN_INVENTORY))
|
||||
to_chat(user, "<span class='notice'>You start to fasten the frame to the floor and celing...</span>")
|
||||
if(P.use_tool(src, user, 8 SECONDS, volume=50))
|
||||
@@ -83,11 +83,11 @@
|
||||
|
||||
/obj/structure/pole/attackby(obj/item/P, mob/user, params) //un-erecting a pole. :(
|
||||
add_fingerprint(user)
|
||||
if(istype(P, /obj/item/wrench))
|
||||
if(P.tool_behavior == TOOL_WRENCH)
|
||||
to_chat(user, "<span class='notice'>You start to unfastening the frame...</span>")
|
||||
if(P.use_tool(src, user, 8 SECONDS, volume=50))
|
||||
to_chat(user, "<span class='notice'>You take down the stripper pole!</span>")
|
||||
var/obj/item/polepack/C = new
|
||||
C.loc = loc
|
||||
del(src)
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user