mirror of
https://github.com/cybergirlvannie/OpenSS13.git
synced 2026-07-19 19:52:51 +01:00
Fix small visual bug for pipes
This commit is contained in:
@@ -3,14 +3,15 @@
|
||||
icon = 'stationobjs.dmi'
|
||||
icon_state = "drone_control"
|
||||
var/mob/user = null
|
||||
|
||||
|
||||
New()
|
||||
..()
|
||||
spawn(10)
|
||||
while (!config)
|
||||
sleep(10)
|
||||
if ((!config.humans_can_use_drones) || (!config.enable_drones))
|
||||
del(src)
|
||||
|
||||
|
||||
attack_hand(var/mob/user as mob)
|
||||
if(stat & (NOPOWER|BROKEN) ) return
|
||||
if (!config.humans_can_use_drones)
|
||||
@@ -19,17 +20,17 @@
|
||||
return
|
||||
if (istype(user, /mob/drone))
|
||||
return
|
||||
|
||||
|
||||
var/list/L = list( )
|
||||
user.machine = src
|
||||
|
||||
|
||||
var/numDrones = 0
|
||||
for(var/mob/drone/rob in world)
|
||||
if (rob.stat==0)
|
||||
L[rob.name] = rob
|
||||
numDrones+=1
|
||||
L = sortList(L)
|
||||
|
||||
|
||||
L["Cancel"] = "Cancel"
|
||||
var/t = input(user, "Which drone would you like to change to?") as null|anything in L
|
||||
|
||||
@@ -41,7 +42,7 @@
|
||||
user.machine = null
|
||||
user.reset_view(null)
|
||||
return 0
|
||||
|
||||
|
||||
var/selected = L[t]
|
||||
if (istype(selected, /mob/drone))
|
||||
user.machine = null
|
||||
@@ -52,7 +53,7 @@
|
||||
attack_ai(var/mob/user as mob)
|
||||
user << "To control a drone, click it. The drone control stations are for humans."
|
||||
return
|
||||
|
||||
|
||||
attack_paw(var/mob/user as mob)
|
||||
user << "Monkeys can't control drones."
|
||||
return
|
||||
|
||||
@@ -223,7 +223,7 @@ obj/machinery/pipes
|
||||
if(!findbrokenpipe(T, dirs[1], level, 0)) // no broken pipe present
|
||||
overlays += image('pipes.dmi', "discon[dirs[1]]", FLY_LAYER)
|
||||
|
||||
else if(!node2) // node2 is not connected
|
||||
if(!node2) // node2 is not connected
|
||||
if(!findbrokenpipe(T, dirs[2], level, 0)) // no broken pipe present
|
||||
overlays += image('pipes.dmi', "discon[dirs[2]]", FLY_LAYER)
|
||||
|
||||
@@ -560,7 +560,7 @@ obj/machinery/pipes
|
||||
if(!findbrokenpipe(T, dirs[1], level, 1)) // no broken pipe present
|
||||
overlays += image('pipes.dmi', "discon-he[dirs[1]]", FLY_LAYER)
|
||||
|
||||
else if(!node2) // node2 is not connected
|
||||
if(!node2) // node2 is not connected
|
||||
if(!findbrokenpipe(T, dirs[2], level, 1)) // no broken pipe present
|
||||
overlays += image('pipes.dmi', "discon-he[dirs[2]]", FLY_LAYER)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user