From cd80242b81c247efcdf8b61d23f8aa60c3b8d768 Mon Sep 17 00:00:00 2001 From: Cerebulon Date: Sun, 21 Jan 2018 06:53:15 +0000 Subject: [PATCH] Cover emits low-level radiation --- code/game/objects/items/poi_items.dm | 21 ++++++++++++++----- .../surface_submaps/plains/PascalB.dmm | 15 +++++++++++++ maps/submaps/surface_submaps/plains/plains.dm | 7 +++++++ .../surface_submaps/plains/plains_areas.dm | 4 +++- 4 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 maps/submaps/surface_submaps/plains/PascalB.dmm diff --git a/code/game/objects/items/poi_items.dm b/code/game/objects/items/poi_items.dm index 2db43c30dc..f4d57ef9b4 100644 --- a/code/game/objects/items/poi_items.dm +++ b/code/game/objects/items/poi_items.dm @@ -1,9 +1,20 @@ -/obj/item/poi/pascalb + +/obj/item/poi icon = 'icons/obj/objects.dmi' + desc = "This is definitely something cool." + +/obj/item/poi/pascalb icon_state = "pascalb" - name = "Charred Manhole Cover" - desc = "The top of this twisted chunk of metal is faintly stamped with a five pointed star. 'Property of US Army, Pascal B 1957'." + name = "Misshapen Manhole Cover" + desc = "The top of this twisted chunk of metal is faintly stamped with a five pointed star. 'Property of US Army, Pascal B - 1957'." -object/item/poi/pascalb/process() +/obj/item/poi/pascalb/New() + processing_objects += src + return ..() - radiation_repository.radiate(src, 5) \ No newline at end of file +/obj/item/poi/pascalb/process() + radiation_repository.radiate(src, 5) + +/obj/item/poi/pascalb/Destroy() + processing_objects -= src + return ..() diff --git a/maps/submaps/surface_submaps/plains/PascalB.dmm b/maps/submaps/surface_submaps/plains/PascalB.dmm new file mode 100644 index 0000000000..8a1f4a1a9f --- /dev/null +++ b/maps/submaps/surface_submaps/plains/PascalB.dmm @@ -0,0 +1,15 @@ +"a" = (/turf/template_noop,/area/template_noop) +"b" = (/turf/template_noop,/area/submap/PascalB) +"c" = (/turf/simulated/floor/outdoors/dirt,/area/submap/PascalB) +"d" = (/turf/simulated/floor/outdoors/rocks,/area/submap/PascalB) +"e" = (/obj/item/poi/pascalb,/turf/simulated/floor/outdoors/rocks,/area/submap/PascalB) + +(1,1,1) = {" +aaaaaaa +abbcbca +accdcca +acdedca +accdcca +abccbca +aaaaaaa +"} diff --git a/maps/submaps/surface_submaps/plains/plains.dm b/maps/submaps/surface_submaps/plains/plains.dm index 16615a7a3a..7538b4d9d4 100644 --- a/maps/submaps/surface_submaps/plains/plains.dm +++ b/maps/submaps/surface_submaps/plains/plains.dm @@ -8,6 +8,7 @@ #include "house1.dmm" #include "beacons.dmm" #include "Epod.dmm" +#include "PascalB.dmm" #endif // The 'plains' is the area outside the immediate perimeter of the big outpost. @@ -61,3 +62,9 @@ mappath = 'maps/submaps/surface_submaps/wilderness/Rocky2.dmm' allow_duplicates = TRUE cost = 5 + +/datum/map_template/surface/plains/PascalB + name = "Irradiated Manhole Cover" + desc = "How did this old thing get all the way out here?" + mappath = 'maps/submaps/surface_submaps/plains/PascalB.dmm' + cost = 5 \ No newline at end of file diff --git a/maps/submaps/surface_submaps/plains/plains_areas.dm b/maps/submaps/surface_submaps/plains/plains_areas.dm index c2e27cde86..a8d5434106 100644 --- a/maps/submaps/surface_submaps/plains/plains_areas.dm +++ b/maps/submaps/surface_submaps/plains/plains_areas.dm @@ -20,4 +20,6 @@ name = "Rocky2" /area/submap/Peninsula - name = "Peninsula" \ No newline at end of file + name = "Peninsula" + +/area/submap/PascalB \ No newline at end of file