Skip to content

Commit

Permalink
[MIRROR] You can trim grass
Browse files Browse the repository at this point in the history
  • Loading branch information
cuddleandtea authored and SuhEugene committed Nov 23, 2023
1 parent 6163a91 commit 07f8eb2
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 59 deletions.
3 changes: 3 additions & 0 deletions code/game/turfs/flooring/flooring.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
wall_smooth = SMOOTH_ALL
space_smooth = SMOOTH_NONE

/singleton/flooring/grass/cut
floor_smooth = SMOOTH_ALL

/singleton/flooring/dirt
name = "dirt"
desc = "Extra dirty."
Expand Down
10 changes: 10 additions & 0 deletions code/game/turfs/flooring/flooring_premade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@
icon_state = "grass0"
initial_flooring = /singleton/flooring/grass

/turf/simulated/floor/grass/use_tool(obj/item/I, mob/user)
if(I.IsWirecutter())
user.visible_message(SPAN_NOTICE("\The [user] trims \the [src] with \the [I]."), SPAN_NOTICE("You trim \the [src] with \the [I]."))
ChangeTurf(/turf/simulated/floor/grass/cut)
return TRUE
return ..()

/turf/simulated/floor/grass/cut
initial_flooring = /singleton/flooring/grass/cut

/turf/simulated/floor/carpet
name = "brown carpet"
icon = 'icons/turf/flooring/carpet.dmi'
Expand Down
Loading

0 comments on commit 07f8eb2

Please sign in to comment.