Makes a ton of dirs into defines (#31244)

* Makes a ton of dirs into defines

* lol oops

* "fix"

* ignore everything
This commit is contained in:
Contrabang
2025-12-12 20:32:33 +00:00
committed by GitHub
parent 2a842644d5
commit ef7e48db9c
23 changed files with 63 additions and 63 deletions
+1 -1
View File
@@ -2850,7 +2850,7 @@
var/tmp_dir = href_list["object_dir"]
var/obj_dir = tmp_dir ? text2num(tmp_dir) : 2
if(!obj_dir || !(obj_dir in list(1,2,4,8,5,6,9,10)))
obj_dir = 2
obj_dir = SOUTH
var/obj_name = sanitize(href_list["object_name"])
+1 -1
View File
@@ -1,7 +1,7 @@
// Examples
/*
-- Will call the proc for all computers in the world, thats dir is 2.
CALL ex_act(1) ON /obj/machinery/computer IN world WHERE dir == 2
CALL ex_act(1) ON /obj/machinery/computer IN world WHERE dir == SOUTH
-- Will open a window with a list of all the closets in the world, with a link to VV them.
SELECT /obj/structure/closet/secure_closet/security/cargo IN world WHERE icon_off == "secoff"
-- Will change all the tube lights to green
@@ -77,9 +77,9 @@
/obj/machinery/atmospherics/pipe/simple/proc/normalize_dir()
if(dir==3)
dir = 1
dir = NORTH
else if(dir==12)
dir = 4
dir = EAST
/obj/machinery/atmospherics/pipe/simple/Destroy()
. = ..()
@@ -140,7 +140,7 @@
/obj/docking_port/mobile/free_golem
name = "Free Golem Ship"
dir = 8
dir = WEST
id = "freegolem"
dwidth = FREE_GOLEM_SHIP_WIDTH / 2
height = FREE_GOLEM_SHIP_HEIGHT
@@ -149,7 +149,7 @@
port_direction = SOUTH
/obj/docking_port/stationary/golem
dir = 8
dir = WEST
height = FREE_GOLEM_SHIP_HEIGHT
width = FREE_GOLEM_SHIP_WIDTH
dwidth = FREE_GOLEM_SHIP_WIDTH / 2
@@ -12,7 +12,7 @@
/obj/machinery/atmospherics/trinary/filter/shadow
name = "gas filter (Co2 Outlet)"
dir = 1
dir = NORTH
filter_type = 3
target_pressure = 99999
@@ -681,9 +681,9 @@
else
newdir = newdir | dir
if(newdir == 3)
newdir = 1
newdir = NORTH
else if(newdir == 12)
newdir = 4
newdir = EAST
B.setDir(newdir)
B.update_icon()
bloodiness--
@@ -407,7 +407,7 @@
return
var/pixel_x_diff = 0
var/pixel_y_diff = 0
var/turn_dir = 1
var/turn_dir = NORTH
var/direction = get_dir(src, A)
if(direction & NORTH)
+1 -1
View File
@@ -287,7 +287,7 @@
affecting.forceMove(assailant.loc)
if(GRAB_KILL)
shift = 0
adir = 1
adir = NORTH
affecting.setDir(SOUTH)//face up
affecting.forceMove(assailant.loc)
@@ -13,7 +13,7 @@
icon_state = "control_box"
reference = "control_box"
idle_power_consumption = 500
dir = 1
dir = NORTH
var/strength_upper_limit = 2
var/interface_control = 1
var/list/obj/structure/particle_accelerator/connected_parts
@@ -1215,7 +1215,7 @@
unbuckle_mob(M, force = TRUE)
M.move_resist = INFINITY
M.Stun(10 SECONDS)
M.dir = 2
M.dir = SOUTH
animate(M, pixel_y = 64, time = 2 SECONDS)
addtimer(CALLBACK(src, PROC_REF(finalize_death), M), 2 SECONDS)
to_chat(owner, "<span class='userdanger'>THE JOY! THE POWER! YOU CAN FEEL THE HONKMOTHERS SMILE! YOU CAN FEEL- oh no</span>")
+1 -1
View File
@@ -30,7 +30,7 @@
var/dheight = 0
var/width = 7
var/height = 7
var/lz_dir = 1
var/lz_dir = NORTH
/obj/item/assault_pod/attack_self__legacy__attackchain(mob/living/user)
var/target_area
+1 -1
View File
@@ -276,7 +276,7 @@
dwidth = 9
width = 22
height = 11
dir = 4
dir = EAST
port_direction = WEST
var/sound_played = 0 //If the launch sound has been sent to all players on the shuttle itself
+11 -11
View File
@@ -825,7 +825,7 @@
// MARK: Shuttle Ports
/obj/docking_port/mobile/labour
dir = 8
dir = WEST
dwidth = 2
height = 5
id = "laborcamp"
@@ -836,7 +836,7 @@
port_direction = EAST
/obj/docking_port/mobile/mining
dir = 8
dir = WEST
dwidth = 3
height = 5
id = "mining"
@@ -847,7 +847,7 @@
port_direction = EAST
/obj/docking_port/mobile/specops
dir = 8
dir = WEST
dwidth = 2
height = 11
id = "specops"
@@ -856,7 +856,7 @@
preferred_direction = EAST
/obj/docking_port/mobile/sit
dir = 8
dir = WEST
dwidth = 3
height = 5
id = "sit"
@@ -866,7 +866,7 @@
port_direction = WEST
/obj/docking_port/mobile/sst
dir = 4
dir = EAST
dwidth = 7
height = 5
id = "sst"
@@ -876,7 +876,7 @@
port_direction = EAST
/obj/docking_port/mobile/admin
dir = 2
dir = SOUTH
dwidth = 8
height = 15
id = "admin"
@@ -912,7 +912,7 @@
return TRUE
/obj/docking_port/mobile/ferry
dir = 8
dir = WEST
dwidth = 2
height = 12
id = "ferry"
@@ -930,10 +930,10 @@
/obj/docking_port/stationary/trader/centcom
id = "trader_away"
name = "Docking bay at trade hub"
dir = 8
dir = WEST
/obj/docking_port/mobile/trader
dir = 8
dir = WEST
dwidth = 11
height = 30
id = "trader"
@@ -944,7 +944,7 @@
/obj/docking_port/mobile/nuke_ops
dheight = 9
dir = 2
dir = SOUTH
dwidth = 5
height = 22
id = "syndicate"
@@ -957,7 +957,7 @@
width = 12
/obj/docking_port/mobile/whiteship
dir = 8
dir = WEST
id = "whiteship"
name = "NEV Cherub"
dwidth = 6
+1 -1
View File
@@ -11,7 +11,7 @@
name = "supply shuttle"
id = "supply"
callTime = 2 MINUTES
dir = 8
dir = WEST
width = 12
dwidth = 5
height = 7