Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] You can trim grass #1487

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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