Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions _maps/RandomRuins/SpaceRuins/drifting_spacepod.dmm
Original file line number Diff line number Diff line change
@@ -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
"}
8 changes: 7 additions & 1 deletion code/datums/ruins/space.dm
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,10 @@
id = "goatresearch"
suffix = "goatresearch.dmm"
name= "Exotic Goat Transport Vessel"
description = "A ship transporting goats attacked by goats. How ironic..."
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."
21 changes: 21 additions & 0 deletions yogstation/code/modules/spacepods/prebuilt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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