mirror of
https://github.com/cybergirlvannie/OpenSS13.git
synced 2026-07-19 11:42:28 +01:00
Addding pipe breaking/laying system
This commit is contained in:
+7
-2
@@ -170,9 +170,10 @@
|
||||
step(user.pulling, get_dir(user.pulling.loc, src))
|
||||
return
|
||||
|
||||
/turf/space/attackby(obj/item/weapon/tile/T as obj, mob/user as mob)
|
||||
/turf/space/attackby(obj/item/weapon/W, mob/user)
|
||||
|
||||
if (istype(T, /obj/item/weapon/tile))
|
||||
if (istype(W, /obj/item/weapon/tile))
|
||||
var/obj/item/weapon/tile/T = W
|
||||
T.build(src)
|
||||
T.amount--
|
||||
T.add_fingerprint(user)
|
||||
@@ -180,6 +181,10 @@
|
||||
user.u_equip(T)
|
||||
del(T)
|
||||
return
|
||||
else if (istype(W, /obj/item/weapon/pipe) )
|
||||
var/obj/item/weapon/pipe/pipe = W
|
||||
if(locate(/obj/lattice) in src)
|
||||
pipe.turf_place(src, user)
|
||||
return
|
||||
|
||||
/turf/space/updatecell()
|
||||
|
||||
Reference in New Issue
Block a user