Skip to content

Commit

Permalink
Splits monolith turf changing into a landmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
MistakeNot4892 committed Mar 24, 2024
1 parent b8b4479 commit 10d25da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions maps/random_ruins/exoplanet_ruins/monoliths/monoliths.dm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@
desc = "This obviously wasn't made for your feet. Looks pretty old."
initial_gas = null

/turf/floor/fixed/alium/ruin/Initialize()
. = ..()
if(prob(10))
ChangeTurf(get_base_turf_by_area(src))
/obj/abstract/landmark/random_base_turf
name = "random chance base turf"
var/turf_prob = 10

/obj/abstract/landmark/random_base_turf/Initialize()
..()
if(isturf(loc) && prob(turf_prob))
var/turf/my_turf = loc
my_turf.ChangeTurf(get_base_turf_by_area(src))
return INITIALIZE_HINT_QDEL
2 changes: 2 additions & 0 deletions maps/random_ruins/exoplanet_ruins/monoliths/monoliths.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/area/template_noop)
"c" = (
/turf/floor/fixed/alium/ruin,
/obj/abstract/landmark/random_base_turf,
/area/template_noop)
"d" = (
/obj/structure/artifact,
Expand All @@ -23,6 +24,7 @@
},
/obj/structure/window/borosilicate_reinforced,
/turf/floor/fixed/alium/ruin,
/obj/abstract/landmark/random_base_turf,
/area/template_noop)
"e" = (
/obj/abstract/landmark/clear,
Expand Down

0 comments on commit 10d25da

Please sign in to comment.