diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm index 4ee5a55ae51..af2942fa474 100644 --- a/code/modules/mining/mine_turfs.dm +++ b/code/modules/mining/mine_turfs.dm @@ -20,7 +20,7 @@ var/list/mineral_can_smooth_with = list( /turf/unsimulated/wall ) -/turf/simulated/mineral //wall piece +/turf/simulated/mineral name = "rock" icon = 'icons/turf/smooth/rock_dense.dmi' icon_state = "preview_wall" @@ -606,6 +606,61 @@ var/list/mineral_can_smooth_with = list( if(destination.CanZPass(H, UP)) H.climb(UP, src, 20) +/** Preset mineral walls. + * These are used to spawn specific types of mineral walls in the map. + * Use one of the subtypes below or, in case a new ore is added but the preset isn't created, set preset_mineral_name to the ORE_X define. +*/ +/turf/simulated/mineral/preset + var/preset_mineral_name + +/turf/simulated/mineral/preset/Initialize(mapload) + ..() + return INITIALIZE_HINT_LATELOAD + +/turf/simulated/mineral/preset/LateInitialize() + . = ..() + change_mineral(preset_mineral_name, TRUE) + +/turf/simulated/mineral/preset/phoron + name = "phoron mineral wall" + preset_mineral_name = ORE_PHORON + +/turf/simulated/mineral/preset/coal + name = "coal mineral wall" + preset_mineral_name = ORE_COAL + +/turf/simulated/mineral/preset/gold + name = "gold mineral wall" + preset_mineral_name = ORE_GOLD + +/turf/simulated/mineral/preset/diamond + name = "diamond mineral wall" + preset_mineral_name = ORE_DIAMOND + +/turf/simulated/mineral/preset/iron + name = "iron mineral wall" + preset_mineral_name = ORE_IRON + +/turf/simulated/mineral/preset/platinum + name = "platinum mineral wall" + preset_mineral_name = ORE_PLATINUM + +/turf/simulated/mineral/preset/bauxite + name = "bauxite mineral wall" + preset_mineral_name = ORE_BAUXITE + +/turf/simulated/mineral/preset/galena + name = "galena mineral wall" + preset_mineral_name = ORE_GALENA + +/turf/simulated/mineral/preset/uranium + name = "uranium mineral wall" + preset_mineral_name = ORE_URANIUM + +/turf/simulated/mineral/preset/metallic_hydrogen + name = "metallic_hydrogen mineral wall" + preset_mineral_name = ORE_HYDROGEN + // Some extra types for the surface to keep things pretty. /turf/simulated/mineral/surface mined_turf = /turf/unsimulated/floor/asteroid/ash diff --git a/html/changelogs/mattatlas-minerals.yml b/html/changelogs/mattatlas-minerals.yml new file mode 100644 index 00000000000..d6603b64839 --- /dev/null +++ b/html/changelogs/mattatlas-minerals.yml @@ -0,0 +1,13 @@ +# Your name. +author: MattAtlas + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - qol: "Added preset mineral walls for mappers."