mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-19 03:50:32 +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:
@@ -126,7 +126,7 @@
|
||||
..()
|
||||
//cut heated metal into nails
|
||||
/obj/item/processed/metal/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/wirecutters))
|
||||
if(I.tool_behavior == TOOL_WIRECUTTER)
|
||||
to_chat(user,"<span class='notice'> You tediously begin to cut [src] into several nails...</span>")
|
||||
if(do_after(user, 80) && isturf(loc))
|
||||
new /obj/item/nails(loc)
|
||||
|
||||
@@ -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