diff --git a/_maps/RandomRuins/SpaceRuins/drifting_spacepod.dmm b/_maps/RandomRuins/SpaceRuins/drifting_spacepod.dmm new file mode 100644 index 000000000000..a6faffc94fdc --- /dev/null +++ b/_maps/RandomRuins/SpaceRuins/drifting_spacepod.dmm @@ -0,0 +1,17 @@ +//MAP CONVERTED BY dmm2tgm.py THIS HEADER COMMENT PREVENTS RECONVERSION, DO NOT REMOVE +"a" = ( +/turf/template_noop, +/area/template_noop) +"b" = ( +/obj/spacepod/random, +/turf/template_noop, +/area/template_noop) + +(1,1,1) = {" +a +b +"} +(2,1,1) = {" +a +a +"} diff --git a/code/datums/ruins/space.dm b/code/datums/ruins/space.dm index 7af89e5dca64..27674c4717ff 100644 --- a/code/datums/ruins/space.dm +++ b/code/datums/ruins/space.dm @@ -318,4 +318,10 @@ id = "goatresearch" suffix = "goatresearch.dmm" name= "Exotic Goat Transport Vessel" - description = "A ship transporting goats attacked by goats. How ironic..." \ No newline at end of file + description = "A ship transporting goats attacked by goats. How ironic..." + +/datum/map_template/ruin/space/drifting_spacepod + id = "drifting_spacepod" + suffix = "drifting_spacepod.dmm" + name = "Drifting Spacepod" + description = "An abandoned spacepod, just drifting through space." diff --git a/yogstation/code/modules/spacepods/prebuilt.dm b/yogstation/code/modules/spacepods/prebuilt.dm index fcfc30142db0..a533991b5994 100644 --- a/yogstation/code/modules/spacepods/prebuilt.dm +++ b/yogstation/code/modules/spacepods/prebuilt.dm @@ -41,3 +41,24 @@ /obj/spacepod/prebuilt/jousting/red icon_state = "pod_synd" armor_type = /obj/item/pod_parts/armor/security/red + +/obj/spacepod/random + icon = 'goon/icons/obj/spacepods/2x2.dmi' + icon_state = "pod_civ" + construction_state = SPACEPOD_ARMOR_WELDED + +/obj/spacepod/random/Initialize() + ..() + var/armor_type = pick(/obj/item/pod_parts/armor, + /obj/item/pod_parts/armor/syndicate, + /obj/item/pod_parts/armor/black, + /obj/item/pod_parts/armor/gold, + /obj/item/pod_parts/armor/industrial, + /obj/item/pod_parts/armor/security) + add_armor(new armor_type(src)) + cell = new /obj/item/stock_parts/cell/high/empty(src) + internal_tank = new /obj/machinery/portable_atmospherics/canister/air(src) + velocity_x = rand(-15, 15) + velocity_y = rand(-15, 15) + obj_integrity = rand(100, max_integrity) + brakes = FALSE