Merge pull request #8087 from Trilbyspaceclone/QoL-RCD

[MIRROR]  fixes some edge cases in rcd building #42960 TG code
This commit is contained in:
deathride58
2019-03-08 20:46:19 -05:00
committed by GitHub
2 changed files with 25 additions and 0 deletions
@@ -126,6 +126,17 @@
else
to_chat(user, "<span class='danger'>You hit [src], to no effect!</span>")
/turf/open/floor/plating/foam/rcd_vals(mob/user, obj/item/construction/rcd/the_rcd)
if(the_rcd.mode == RCD_FLOORWALL)
return list("mode" = RCD_FLOORWALL, "delay" = 0, "cost" = 1)
/turf/open/floor/plating/foam/rcd_act(mob/user, obj/item/construction/rcd/the_rcd, passed_mode)
if(passed_mode == RCD_FLOORWALL)
to_chat(user, "<span class='notice'>You build a floor.</span>")
ChangeTurf(/turf/open/floor/plating)
return TRUE
return FALSE
/turf/open/floor/plating/foam/ex_act()
..()
ScrapeAway()