fixes drilling bent pipes into walls

This commit is contained in:
Tastyfish
2015-12-23 03:03:13 -05:00
parent b7d41226ee
commit 7aa9ac2000
3 changed files with 14 additions and 18 deletions
+4 -4
View File
@@ -600,13 +600,13 @@ var/list/wood_icons = list("wood","wood-broken")
"<span class='notice'>You slide [P] along \the [src].</span>", \
"You hear the scrape of metal against something.")
user.drop_item()
if (P.is_bent_pipe()) // bent pipe rotation fix see construction.dm
if(P.is_bent_pipe()) // bent pipe rotation fix see construction.dm
P.dir = 5
if (user.dir == 1)
if(user.dir == 1)
P.dir = 6
if (user.dir == 2)
else if(user.dir == 2)
P.dir = 9
if (user.dir == 4)
else if(user.dir == 4)
P.dir = 10
else
P.dir = user.dir
+5 -7
View File
@@ -427,23 +427,21 @@
"[user] starts drilling a hole in \the [src].", \
"\blue You start drilling a hole in \the [src].", \
"You hear ratchet.")
if (do_after(user, 80, target = src))
if(do_after(user, 80, target = src))
user.visible_message( \
"[user] drills a hole in \the [src] and pushes \a [P] into the void", \
"\blue You have finished drilling in \the [src] and push the [P] into the void.", \
"You hear ratchet.")
user.drop_item()
if (P.pipe_type in list (1,3,12)) // bent pipe rotation fix see construction.dm
if(P.is_bent_pipe()) // bent pipe rotation fix see construction.dm
P.dir = 5
if (user.dir == 1)
if(user.dir == 1)
P.dir = 6
if (user.dir == 2)
else if(user.dir == 2)
P.dir = 9
if (user.dir == 4)
else if(user.dir == 4)
P.dir = 10
if (user.dir == 5)
P.dir = 8
else
P.dir = user.dir
P.x = src.x
@@ -249,23 +249,21 @@
"[user] starts drilling a hole in \the [src].", \
"\blue You start drilling a hole in \the [src]. This is going to take a while.", \
"You hear ratchet.")
if (do_after(user, 160, target = src))
if(do_after(user, 160, target = src))
user.visible_message( \
"[user] drills a hole in \the [src] and pushes \a [P] into the void", \
"\blue You have finished drilling in \the [src] and push the [P] into the void.", \
"You hear ratchet.")
user.drop_item()
if (P.pipe_type in list (1,3,12)) // bent pipe rotation fix see construction.dm
if(P.is_bent_pipe()) // bent pipe rotation fix see construction.dm
P.dir = 5
if (user.dir == 1)
if(user.dir == 1)
P.dir = 6
if (user.dir == 2)
else if(user.dir == 2)
P.dir = 9
if (user.dir == 4)
else if(user.dir == 4)
P.dir = 10
if (user.dir == 5)
P.dir = 8
else
P.dir = user.dir
P.x = src.x