Skip to content

Commit

Permalink
YOU'LL GET YOUR MAP WHEN YOU FIX THIS DAMN FLOOR (#12011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat authored Dec 22, 2024
1 parent be14056 commit 1d42449
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 13 deletions.
1 change: 1 addition & 0 deletions code/_globalvars/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ GLOBAL_LIST_INIT(turf_texture_hallway, list(/datum/turf_texture/hallway))
GLOBAL_LIST_INIT(turf_texture_maint, list(/datum/turf_texture/maint, /datum/turf_texture/hallway, /datum/turf_texture/maint/tile))

GLOBAL_LIST_INIT(turf_texture_iron, list(/datum/turf_texture/hallway, /datum/turf_texture/maint/tile))
GLOBAL_LIST_INIT(turf_texture_iron_nonsegmented, list(/datum/turf_texture/hallway_nonsegmented))
GLOBAL_LIST_INIT(turf_texture_plating, list(/datum/turf_texture/maint))

/*
Expand Down
20 changes: 10 additions & 10 deletions code/game/area/Space_Station_13_areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
color_correction = /datum/client_colour/area_color/cold_ish
camera_networks = list(CAMERA_NETWORK_STATION)

/area/maintenance/get_turf_textures()
/area/maintenance/get_area_textures()
return GLOB.turf_texture_maint

//Maintenance - Departmental
Expand Down Expand Up @@ -242,7 +242,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
name = "Science Maintenance"
icon_state = "maint_sci"

/area/maintenance/department/science/get_turf_textures()
/area/maintenance/department/science/get_area_textures()
return GLOB.turf_texture_hallway

/area/maintenance/department/science/central
Expand Down Expand Up @@ -420,7 +420,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
lighting_brightness_tube = 8
camera_networks = list(CAMERA_NETWORK_STATION)

/area/hallway/get_turf_textures()
/area/hallway/get_area_textures()
return GLOB.turf_texture_hallway

/area/hallway/primary
Expand Down Expand Up @@ -642,7 +642,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
color_correction = /datum/client_colour/area_color/warm_ish
camera_networks = list(CAMERA_NETWORK_STATION)

/area/crew_quarters/get_turf_textures()
/area/crew_quarters/get_area_textures()
return GLOB.turf_texture_hallway

/area/crew_quarters/dorms
Expand Down Expand Up @@ -892,7 +892,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
name = "Engineering"
icon_state = "engine"

/area/engine/engineering/get_turf_textures()
/area/engine/engineering/get_area_textures()
return GLOB.turf_texture_hallway

/area/engineering/hallway
Expand Down Expand Up @@ -1216,7 +1216,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
color_correction = /datum/client_colour/area_color/warm_ish
camera_networks = list(CAMERA_NETWORK_STATION)

/area/security/get_turf_textures()
/area/security/get_area_textures()
return GLOB.turf_texture_hallway

/area/security/main
Expand Down Expand Up @@ -1389,7 +1389,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
color_correction = /datum/client_colour/area_color/warm_yellow
camera_networks = list(CAMERA_NETWORK_STATION)

/area/quartermaster/get_turf_textures()
/area/quartermaster/get_area_textures()
return GLOB.turf_texture_hallway

/area/quartermaster/sorting
Expand Down Expand Up @@ -1473,7 +1473,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
color_correction = /datum/client_colour/area_color/cold_ish
camera_networks = list(CAMERA_NETWORK_STATION)

/area/hydroponics/get_turf_textures()
/area/hydroponics/get_area_textures()
return GLOB.turf_texture_hallway

/area/hydroponics/garden
Expand Down Expand Up @@ -1571,7 +1571,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
name = "Robotics"
icon_state = "robotics"

/area/science/robotics/get_turf_textures()
/area/science/robotics/get_area_textures()
return GLOB.turf_texture_hallway

/area/science/robotics/mechbay
Expand Down Expand Up @@ -1615,7 +1615,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
name = "Primary Tool Storage"
icon_state = "primarystorage"

/area/storage/primary/get_turf_textures()
/area/storage/primary/get_area_textures()
return GLOB.turf_texture_hallway

/area/storage/art
Expand Down
2 changes: 1 addition & 1 deletion code/game/area/areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -646,5 +646,5 @@ GLOBAL_LIST_EMPTY(teleportlocs)
if(mood_job_reverse)
return !. // the most eye bleeding syntax ive written

/area/proc/get_turf_textures()
/area/proc/get_area_textures()
return list()
93 changes: 93 additions & 0 deletions code/game/turfs/open/floor/iron_floor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,33 @@
base_icon_state = "floor_edge"
floor_tile = /obj/item/stack/tile/iron/edge

/turf/open/floor/iron/edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/half
icon_state = "floor_half"
base_icon_state = "floor_half"
floor_tile = /obj/item/stack/tile/iron/half

/turf/open/floor/iron/half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/corner
icon_state = "floor_corner"
base_icon_state = "floor_corner"
floor_tile = /obj/item/stack/tile/iron/corner

/turf/open/floor/iron/corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/large
icon_state = "floor_large"
base_icon_state = "floor_large"
floor_tile = /obj/item/stack/tile/iron/large

/turf/open/floor/iron/large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/textured
icon_state = "textured"
base_icon_state = "textured"
Expand All @@ -59,21 +71,33 @@
base_icon_state = "textured_edge"
floor_tile = /obj/item/stack/tile/iron/textured_edge

/turf/open/floor/iron/textured_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/textured_half
icon_state = "textured_half"
base_icon_state = "textured_half"
floor_tile = /obj/item/stack/tile/iron/textured_half

/turf/open/floor/iron/textured_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/textured_corner
icon_state = "textured_corner"
base_icon_state = "textured_corner"
floor_tile = /obj/item/stack/tile/iron/textured_corner

/turf/open/floor/iron/textured_corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/textured_large
icon_state = "textured_large"
base_icon_state = "textured_large"
floor_tile = /obj/item/stack/tile/iron/textured_large

/turf/open/floor/iron/textured_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark
icon_state = "darkfull"
base_icon_state = "darkfull"
Expand All @@ -84,31 +108,49 @@
base_icon_state = "dark_edge"
floor_tile = /obj/item/stack/tile/iron/dark/smooth_edge

/turf/open/floor/iron/dark/smooth_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/smooth_half
icon_state = "dark_half"
base_icon_state = "dark_half"
floor_tile = /obj/item/stack/tile/iron/dark/smooth_half

/turf/open/floor/iron/dark/smooth_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/smooth_corner
icon_state = "dark_corner"
base_icon_state = "dark_corner"
floor_tile = /obj/item/stack/tile/iron/dark/smooth_corner

/turf/open/floor/iron/dark/smooth_corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/smooth_large
icon_state = "dark_large"
base_icon_state = "dark_large"
floor_tile = /obj/item/stack/tile/iron/dark/smooth_large

/turf/open/floor/iron/dark/smooth_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/side
icon_state = "darkside"
base_icon_state = "darkside"
floor_tile = /obj/item/stack/tile/iron/dark_side

/turf/open/floor/iron/dark/side/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/corner
icon_state = "darkcorner"
base_icon_state = "darkcorner"
floor_tile = /obj/item/stack/tile/iron/dark_corner

/turf/open/floor/iron/dark/corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/checker
icon_state = "blackwhite"
base_icon_state = "blackwhite"
Expand All @@ -129,16 +171,25 @@
base_icon_state = "textured_dark_edge"
floor_tile = /obj/item/stack/tile/iron/dark/textured_edge

/turf/open/floor/iron/dark/textured_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/textured_half
icon_state = "textured_dark_half"
base_icon_state = "textured_dark_half"
floor_tile = /obj/item/stack/tile/iron/dark/textured_half

/turf/open/floor/iron/dark/textured_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/textured_corner
icon_state = "textured_dark_corner"
base_icon_state = "textured_dark_corner"
floor_tile = /obj/item/stack/tile/iron/dark/textured_corner

/turf/open/floor/iron/dark/textured_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/dark/textured_large
icon_state = "textured_dark_large"
base_icon_state = "textured_dark_large"
Expand Down Expand Up @@ -169,31 +220,49 @@
base_icon_state = "white_edge"
floor_tile = /obj/item/stack/tile/iron/white/smooth_edge

/turf/open/floor/iron/white/smooth_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/smooth_half
icon_state = "white_half"
base_icon_state = "white_half"
floor_tile = /obj/item/stack/tile/iron/white/smooth_half

/turf/open/floor/iron/white/smooth_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/smooth_corner
icon_state = "white_corner"
base_icon_state = "white_corner"
floor_tile = /obj/item/stack/tile/iron/white/smooth_corner

/turf/open/floor/iron/white/smooth_corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/smooth_large
icon_state = "white_large"
base_icon_state = "white_large"
floor_tile = /obj/item/stack/tile/iron/white/smooth_large

/turf/open/floor/iron/white/smooth_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/side
icon_state = "whitehall"
base_icon_state = "whitehall"
floor_tile = /obj/item/stack/tile/iron/white_side

/turf/open/floor/iron/white/side/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/corner
icon_state = "whitecorner"
base_icon_state = "whitecorner"
floor_tile = /obj/item/stack/tile/iron/white_corner

/turf/open/floor/iron/white/corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/cafeteria
icon_state = "cafeteria"
base_icon_state = "cafeteria"
Expand All @@ -209,21 +278,33 @@
base_icon_state = "textured_white_edge"
floor_tile = /obj/item/stack/tile/iron/white/textured_edge

/turf/open/floor/iron/white/textured_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/textured_half
icon_state = "textured_white_half"
base_icon_state = "textured_white_half"
floor_tile = /obj/item/stack/tile/iron/white/textured_half

/turf/open/floor/iron/white/textured_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/textured_corner
icon_state = "textured_white_corner"
base_icon_state = "textured_white_corner"
floor_tile = /obj/item/stack/tile/iron/white/textured_corner

/turf/open/floor/iron/white/textured_corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/textured_large
icon_state = "textured_white_large"
base_icon_state = "textured_white_large"
floor_tile = /obj/item/stack/tile/iron/white/textured_large

/turf/open/floor/iron/white/textured_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/white/airless
initial_gas_mix = AIRLESS_ATMOS

Expand Down Expand Up @@ -259,21 +340,33 @@
base_icon_state = "smooth_edge"
floor_tile = /obj/item/stack/tile/iron/smooth_edge

/turf/open/floor/iron/smooth_edge/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/smooth_half
icon_state = "smooth_half"
base_icon_state = "smooth_half"
floor_tile = /obj/item/stack/tile/iron/smooth_half

/turf/open/floor/iron/smooth_half/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/smooth_corner
icon_state = "smooth_corner"
base_icon_state = "smooth_corner"
floor_tile = /obj/item/stack/tile/iron/smooth_corner

/turf/open/floor/iron/smooth_corner/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/smooth_large
icon_state = "smooth_large"
base_icon_state = "smooth_large"
floor_tile = /obj/item/stack/tile/iron/smooth_large

/turf/open/floor/iron/smooth_large/get_turf_texture()
return GLOB.turf_texture_iron_nonsegmented

/turf/open/floor/iron/chapel
icon_state = "chapel"
base_icon_state = "chapel"
Expand Down
4 changes: 2 additions & 2 deletions code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ CREATION_TEST_IGNORE_SELF(/turf)
// Here's hoping it doesn't stay like this for years before we finish conversion to step_
var/atom/firstbump
var/canPassSelf = CanPass(mover, get_dir(src, mover))

if(canPassSelf || (mover.movement_type & PHASING))
for(var/atom/movable/thing as anything in contents)
if(QDELETED(mover))
Expand Down Expand Up @@ -574,7 +574,7 @@ CREATION_TEST_IGNORE_SELF(/turf)
var/datum/turf_texture/turf_texture
for(var/datum/turf_texture/TF as() in textures)
var/area/A = loc
if(TF in A?.get_turf_textures())
if(TF in A?.get_area_textures())
turf_texture = turf_texture ? initial(TF.priority) > initial(turf_texture.priority) ? TF : turf_texture : TF
if(turf_texture)
vis_contents += load_turf_texture(turf_texture)
Expand Down
4 changes: 4 additions & 0 deletions code/game/turfs/turf_texture.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ CREATION_TEST_IGNORE_SUBTYPES(/atom/movable/turf_texture)
icon_state = "hallway"
alpha = 55

/datum/turf_texture/hallway_nonsegmented
icon_state = "hallway_nonsegmented"
alpha = 55

//Deep maint use
/datum/turf_texture/maint
icon_state = "maint"
Expand Down
Binary file modified icons/turf/turf_texture.dmi
Binary file not shown.

0 comments on commit 1d42449

Please sign in to comment.