|
88 | 88 | /obj/machinery/mech_bay_recharge_floor/examine(mob/user)
|
89 | 89 | . = ..()
|
90 | 90 | if(recharge_port)
|
91 |
| - var/direction = getDirString(recharge_port) |
92 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_port] at the [direction].</span>") |
| 91 | + var/direction = get_dir_as_string(recharge_port) |
| 92 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_port] at the [uppertext(direction)].</span>") |
93 | 93 | if(recharge_console)
|
94 |
| - var/direction = getDirString(recharge_console) |
95 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_console] at the [direction].</span>") |
| 94 | + var/direction = get_dir_as_string(recharge_console) |
| 95 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_console] at the [uppertext(direction)].</span>") |
96 | 96 |
|
97 | 97 | /obj/machinery/mech_bay_recharge_floor/proc/locate_and_link_port()
|
98 | 98 | if(recharge_port)//we already have a port
|
|
102 | 102 | continue
|
103 | 103 | if(potential_recharge_port.recharge_floor) //it is already linked to another floor. do not link to it.
|
104 | 104 | continue
|
105 |
| - potential_recharge_port.cardinalize_dir() |
| 105 | + potential_recharge_port.force_cardinal_dir() |
106 | 106 | if(src in get_step(potential_recharge_port, potential_recharge_port.dir).contents) //check if dir of recharge port matches mechbay floor
|
107 | 107 | recharge_port = potential_recharge_port
|
108 | 108 | recharge_port.recharge_floor = src
|
|
211 | 211 | /obj/machinery/mech_bay_recharge_port/examine(mob/user)
|
212 | 212 | . = ..()
|
213 | 213 | if(recharge_floor)
|
214 |
| - var/direction = getDirString(recharge_floor) |
215 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_floor] at the [direction].</span>") |
| 214 | + var/direction = get_dir_as_string(recharge_floor) |
| 215 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_floor] at the [uppertext(direction)].</span>") |
216 | 216 | if(recharge_console)
|
217 |
| - var/direction = getDirString(recharge_console) |
218 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_console] at the [direction].</span>") |
| 217 | + var/direction = get_dir_as_string(recharge_console) |
| 218 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_console] at the [uppertext(direction)].</span>") |
219 | 219 |
|
220 | 220 | /obj/machinery/mech_bay_recharge_port/Destroy()
|
221 | 221 | delink_devices()
|
|
232 | 232 | /obj/machinery/mech_bay_recharge_port/proc/locate_and_link_station()
|
233 | 233 | if(recharge_floor) // we already have a station
|
234 | 234 | return 0
|
235 |
| - cardinalize_dir() |
| 235 | + force_cardinal_dir() |
236 | 236 | for(var/obj/machinery/mech_bay_recharge_floor/potential_recharge_floor in get_step(src,dir))
|
237 | 237 | if(!potential_recharge_floor.anchored)
|
238 | 238 | continue
|
|
467 | 467 | /obj/machinery/computer/mech_bay_power_console/examine(mob/user)
|
468 | 468 | . = ..()
|
469 | 469 | if(recharge_floor)
|
470 |
| - var/direction = getDirString(recharge_floor) |
471 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_floor] at the [direction].</span>") |
| 470 | + var/direction = get_dir_as_string(recharge_floor) |
| 471 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_floor] at the [uppertext(direction)].</span>") |
472 | 472 | if(recharge_port)
|
473 |
| - var/direction = getDirString(recharge_port) |
474 |
| - to_chat(user,"<span class='notice'>Linked to \the [recharge_port] at the [direction].</span>") |
| 473 | + var/direction = get_dir_as_string(recharge_port) |
| 474 | + to_chat(user,"<span class='notice'>Linked to \the [recharge_port] at the [uppertext(direction)].</span>") |
475 | 475 |
|
476 | 476 |
|
477 | 477 | /obj/machinery/computer/mech_bay_power_console/wrenchAnchor()
|
|
0 commit comments