Skip to content

Commit

Permalink
Merge pull request #25 from Lhars/Tile-Smoothing
Browse files Browse the repository at this point in the history
Forest Smoothing
  • Loading branch information
TheGreatKitsune authored Sep 29, 2024
2 parents da2e45c + e56a316 commit 654f107
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions code/game/turfs/open/floor/roguefloor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,17 @@
tiled_dirt = FALSE
landsound = 'sound/foley/jumpland/grassland.wav'
slowdown = 0
smooth = SMOOTH_TRUE
neighborlay = "grassedge"

/turf/open/floor/rogue/grass/Initialize()
dir = pick(GLOB.cardinals)
// GLOB.dirt_list += src
. = ..()

/turf/open/floor/rogue/grass/cardinal_smooth(adjacencies)
roguesmooth(adjacencies)

/turf/open/floor/rogue/dirt/ambush
name = "dirt"
desc = "The dirt is pocked with the scars of countless wars."
Expand Down Expand Up @@ -206,10 +210,10 @@

if(HAS_TRAIT(user, TRAIT_LONGSTRIDER))
negate_slowdown = TRUE

if(negate_slowdown)
returned = max(returned-2, 0)

return returned


Expand Down Expand Up @@ -322,8 +326,8 @@
tiled_dirt = FALSE
landsound = 'sound/foley/jumpland/dirtland.wav'
smooth = SMOOTH_TRUE
canSmoothWith = list(/turf/open/floor/rogue, /turf/closed/mineral, /turf/closed/wall/mineral)
neighborlay = "dirtedge"
canSmoothWith = list(/turf/open/floor/rogue/dirt,/turf/open/floor/rogue/grass)
neighborlay = "roadedge"
slowdown = 0

/turf/open/floor/rogue/dirt/road/attack_right(mob/user)
Expand Down Expand Up @@ -395,20 +399,6 @@
return New


/turf/open/floor/rogue/dirt/road/Initialize()
dir = pick(GLOB.cardinals)
for(var/P in subtypesof(/turf/closed/wall/mineral))
canSmoothWith += P
for(var/P in subtypesof(/turf/closed/mineral))
canSmoothWith += P
for(var/P in subtypesof(/turf/open/floor/rogue))
// if(prob(90))
if(P == /turf/open/floor/rogue/dirt/road)
continue
canSmoothWith += P
// queue_smooth(src)
. = ..()

/turf/open/floor/rogue/underworld/road
name = "ash"
desc = "Smells like burnt wood."
Expand Down Expand Up @@ -648,9 +638,9 @@
clawfootstep = FOOTSTEP_HARD_CLAW
heavyfootstep = FOOTSTEP_GENERIC_HEAVY
landsound = 'sound/foley/jumpland/stoneland.wav'
neighborlay = "cobblerock"
smooth = SMOOTH_TRUE
canSmoothWith = list(/turf/open/floor/rogue/dirt, /turf/open/floor/rogue/grass)
// neighborlay = "cobblerock"
smooth = SMOOTH_MORE
canSmoothWith = list(/turf/open/floor/rogue, /turf/closed/mineral, /turf/closed/wall/mineral)

/turf/open/floor/rogue/cobblerock/cardinal_smooth(adjacencies)
roguesmooth(adjacencies)
Expand Down Expand Up @@ -745,8 +735,7 @@
..()
if(GLOB.lordprimary)
lordcolor(GLOB.lordprimary,GLOB.lordsecondary)
else
GLOB.lordcolor += src
GLOB.lordcolor += src

/turf/open/floor/rogue/carpet/lord/Destroy()
GLOB.lordcolor -= src
Expand All @@ -758,7 +747,6 @@
var/mutable_appearance/M = mutable_appearance(icon, "[icon_state]_primary", -(layer+0.1))
M.color = primary
add_overlay(M)
GLOB.lordcolor -= src

/turf/open/floor/rogue/carpet/lord/center
icon_state = "carpet_c"
Expand Down
Binary file modified icons/turf/roguefloor.dmi
Binary file not shown.

0 comments on commit 654f107

Please sign in to comment.