diff --git a/code/__defines/materials.dm b/code/__defines/materials.dm index f62d800516..8a8a337eeb 100644 --- a/code/__defines/materials.dm +++ b/code/__defines/materials.dm @@ -1,6 +1,3 @@ -#define DEFAULT_TABLE_MATERIAL "plastic" -#define DEFAULT_WALL_MATERIAL "steel" - #define MAT_IRON "iron" #define MAT_MARBLE "marble" #define MAT_STEEL "steel" @@ -47,6 +44,9 @@ #define MAT_BOROSILICATE "borosilicate glass" #define MAT_SANDSTONE "sandstone" +#define DEFAULT_TABLE_MATERIAL MAT_PLASTIC +#define DEFAULT_WALL_MATERIAL MAT_STEEL + #define SHARD_SHARD "shard" #define SHARD_SHRAPNEL "shrapnel" #define SHARD_STONE_PIECE "piece" diff --git a/code/__defines/turfs.dm b/code/__defines/turfs.dm index 9c5138f92e..27682dd822 100644 --- a/code/__defines/turfs.dm +++ b/code/__defines/turfs.dm @@ -22,6 +22,7 @@ #define FOOTSTEP_SPRITE_AMT 2 // Used to designate if a turf (or its area) should initialize as outdoors or not. -#define OUTDOORS_YES 1 // This needs to be 1 for backwards compatibility. +#define OUTDOORS_YES 1 // This being 1 helps with backwards compatibility. #define OUTDOORS_NO 0 // Ditto. -#define OUTDOORS_INHERIT -1 // If a turf has this, it will defer to the area's settings. +#define OUTDOORS_AREA -1 // If a turf has this, it will defer to the area's settings on init. + // Note that after init, it will be either YES or NO. diff --git a/code/_helpers/global_lists.dm b/code/_helpers/global_lists.dm index 9457af1e6b..2ba27dc1d0 100644 --- a/code/_helpers/global_lists.dm +++ b/code/_helpers/global_lists.dm @@ -25,9 +25,6 @@ var/global/list/joblist = list() //list of all jobstypes, minus borg and AI var/list/mannequins_ -// Closets have magic appearances -GLOBAL_LIST_EMPTY(closet_appearances) - // Times that players are allowed to respawn ("ckey" = world.time) GLOBAL_LIST_EMPTY(respawn_timers) @@ -218,9 +215,6 @@ var/global/list/string_slot_flags = list( for(var/alloytype in paths) GLOB.alloy_data += new alloytype() - //Closet appearances - GLOB.closet_appearances = decls_repository.get_decls_of_type(/decl/closet_appearance) - paths = typesof(/datum/sprite_accessory/ears) - /datum/sprite_accessory/ears for(var/path in paths) var/obj/item/clothing/head/instance = new path() diff --git a/code/controllers/subsystems/planets.dm b/code/controllers/subsystems/planets.dm index 9e280b5e77..69c81865c9 100644 --- a/code/controllers/subsystems/planets.dm +++ b/code/controllers/subsystems/planets.dm @@ -42,11 +42,10 @@ SUBSYSTEM_DEF(planets) return if(istype(T, /turf/unsimulated/wall/planetary)) P.planet_walls += T - else if(istype(T, /turf/simulated) && T.outdoors != OUTDOORS_NO) + else if(istype(T, /turf/simulated) && T.outdoors == OUTDOORS_YES) P.planet_floors += T T.vis_contents |= P.weather_holder.visuals - T.vis_contents |= P.weather_holder.special_visuals - T.outdoors = OUTDOORS_YES + T.vis_contents |= P.weather_holder.special_visuals /datum/controller/subsystem/planets/proc/removeTurf(var/turf/T,var/is_edge) diff --git a/code/datums/autolathe/arms.dm b/code/datums/autolathe/arms.dm index 7dbade7561..8309f5e7a3 100644 --- a/code/datums/autolathe/arms.dm +++ b/code/datums/autolathe/arms.dm @@ -74,13 +74,13 @@ name = "pistol magazine (.45 armor piercing)" path =/obj/item/ammo_magazine/m45/ap hidden = 1 - resources = list(DEFAULT_WALL_MATERIAL = 500, MAT_PLASTEEL = 300) + resources = list(MAT_STEEL = 500, MAT_PLASTEEL = 300) /datum/category_item/autolathe/arms/pistol_45hp name = "pistol magazine (.45 hollowpoint)" path =/obj/item/ammo_magazine/m45/hp hidden = 1 - resources = list(DEFAULT_WALL_MATERIAL = 500, MAT_PLASTIC = 200) + resources = list(MAT_STEEL = 500, MAT_PLASTIC = 200) /datum/category_item/autolathe/arms/pistol_45uzi name = "uzi magazine (.45)" diff --git a/code/datums/autolathe/devices.dm b/code/datums/autolathe/devices.dm index eed4839159..1196df5342 100644 --- a/code/datums/autolathe/devices.dm +++ b/code/datums/autolathe/devices.dm @@ -30,7 +30,7 @@ name = "barbed wire" path = /obj/item/weapon/material/barbedwire hidden = 1 - resources = list(DEFAULT_WALL_MATERIAL = 10000) + resources = list(MAT_STEEL = 10000) /datum/category_item/autolathe/devices/electropack name = "electropack" diff --git a/code/datums/autolathe/general.dm b/code/datums/autolathe/general.dm index 8c2846445a..4b59e4b0cd 100644 --- a/code/datums/autolathe/general.dm +++ b/code/datums/autolathe/general.dm @@ -126,7 +126,7 @@ /datum/category_item/autolathe/general/idcard name = "ID Card" path = /obj/item/weapon/card/id - resources = list(DEFAULT_WALL_MATERIAL = 100, MAT_GLASS = 100, MAT_PLASTIC = 300) + resources = list(MAT_STEEL = 100, MAT_GLASS = 100, MAT_PLASTIC = 300) man_rating = 2 /datum/category_item/autolathe/general/handcuffs diff --git a/code/datums/autolathe/tools.dm b/code/datums/autolathe/tools.dm index 9b88a496fa..be182c0713 100644 --- a/code/datums/autolathe/tools.dm +++ b/code/datums/autolathe/tools.dm @@ -56,6 +56,6 @@ /datum/category_item/autolathe/tools/spraynozzle name = "spray nozzle" path = /obj/item/weapon/reagent_containers/spray - resources = list(MAT_PLASTIC = 5000, DEFAULT_WALL_MATERIAL = 2000) + resources = list(MAT_PLASTIC = 5000, MAT_STEEL = 2000) hidden = 1 man_rating = 2 diff --git a/code/datums/browser.dm b/code/datums/browser.dm index 9cf2d0f486..274d9132a6 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -300,9 +300,6 @@ var/output = {"