mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #7519 from Meghan-Rossi/grassbuilding
Allows building plating on grass
This commit is contained in:
@@ -8,5 +8,8 @@
|
||||
new /obj/item/weapon/reagent_containers/food/snacks/worm(src)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You decide to not finish digging in \the [src].</span>")
|
||||
else if(istype(S, /obj/item/stack/tile/floor))
|
||||
ChangeTurf(/turf/simulated/floor, preserve_outdoors = TRUE)
|
||||
return
|
||||
else
|
||||
..()
|
||||
@@ -31,3 +31,36 @@
|
||||
if(0)
|
||||
results += "[desc_panel_image("crowbar")]to finish deconstruction."
|
||||
return results
|
||||
|
||||
/turf/simulated/floor/get_description_info()
|
||||
. = ..()
|
||||
if(broken || burnt)
|
||||
. += "It is broken."
|
||||
|
||||
/turf/simulated/floor/get_description_interaction()
|
||||
. = ..()
|
||||
if(broken || burnt)
|
||||
if(is_plating())
|
||||
. += "Use a welder on it to repair the damage."
|
||||
else
|
||||
. += "Use a crowbar on it to remove it."
|
||||
else if(flooring)
|
||||
if(flooring.flags & TURF_IS_FRAGILE)
|
||||
. += "You can use a crowbar on it to remove it, but this will destroy it!"
|
||||
else if(flooring.flags & TURF_REMOVE_CROWBAR)
|
||||
. += "Use a crowbar on it to remove it."
|
||||
if(flooring.flags & TURF_REMOVE_SCREWDRIVER)
|
||||
. += "Use a screwdriver on it to remove it."
|
||||
if(flooring.flags & TURF_REMOVE_WRENCH)
|
||||
. += "Use a wrench on it to remove it."
|
||||
if(flooring.flags & TURF_REMOVE_SHOVEL)
|
||||
. += "Use a shovel on it to remove it."
|
||||
|
||||
/turf/simulated/floor/outdoors/snow/get_description_interaction()
|
||||
. = ..()
|
||||
. += "Use a shovel on it to get rid of the snow and reveal the ground beneath."
|
||||
. += "Use an empty hand on it to scoop up some snow, which you can use to make snowballs or snowmen."
|
||||
|
||||
/turf/simulated/floor/outdoors/grass/get_description_interaction()
|
||||
. = "Use floor tiles on it to make a plating." // using . = ..() would incorrectly say you can remove the grass with a shovel
|
||||
. += "Use a shovel on it to dig for worms."
|
||||
|
||||
5
html/changelogs/meghan rossi - grass plating.yml
Normal file
5
html/changelogs/meghan rossi - grass plating.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
author: Meghan Rossi
|
||||
delete-after: True
|
||||
changes:
|
||||
- bugfix: "You can now build plating on grass with floor tiles."
|
||||
- rscadd: "Improved descriptions for some floors."
|
||||
Reference in New Issue
Block a user