Skip to content

Commit

Permalink
Merge pull request #3 from Paxilmaniac/smoothing-stuff
Browse files Browse the repository at this point in the history
fixes smoothing group order on a lot of stuff
  • Loading branch information
Paxilmaniac authored Jun 25, 2024
2 parents 206838a + 700f2c0 commit 80e0a22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/obj/structure/flora/fantasy_tree/stump
name = "stump"
desc = "This represents our promise to the elves, and the world itself. To cut down as many trees as possible."
icon_state = "tree_stump"
icon_state = "tree_1_stump"
density = FALSE
delete_on_harvest = TRUE
seethrough = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

/datum/component/turf_farm/Destroy(force)
UnregisterSignal(turf_parent, list(COMSIG_ATOM_ATTACKBY, COMSIG_ATOM_EXAMINE, COMSIG_QDELETING))
UnregisterSignal(tracked_farm, COMSIG_QDELETING)
if(tracked_farm)
UnregisterSignal(tracked_farm, COMSIG_QDELETING)
QDEL_NULL(tracked_farm)
turf_parent = null
return ..()
Expand Down
24 changes: 12 additions & 12 deletions code/modules/fantasystation_map_generation/turfs/dirt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/grass.dmi'
icon_state = "grass"
icon_state = "grass-255"
base_icon_state = "grass"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_FANTASY_GRASS
canSmoothWith = SGROUP_FANTASY_GRASS + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand All @@ -37,13 +37,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/sand.dmi'
icon_state = "sand"
icon_state = "sand-255"
base_icon_state = "sand"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_DESERT_SAND
canSmoothWith = SGROUP_FANTASY_GRASS +SGROUP_DESERT_SAND + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_DESERT_SAND + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand All @@ -70,13 +70,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/dry_dirt.dmi'
icon_state = "dry_dirt"
icon_state = "dry_dirt-255"
base_icon_state = "dry_dirt"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_CRACKED_EARTH
canSmoothWith = SGROUP_FANTASY_GRASS +SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER - 0.001

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand All @@ -103,13 +103,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/dirt.dmi'
icon_state = "dirt"
icon_state = "dirt-255"
base_icon_state = "dirt"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_ROCKY_SOIL
canSmoothWith = SGROUP_FANTASY_GRASS +SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER - 0.002

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand All @@ -135,13 +135,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/mud.dmi'
icon_state = "mud"
icon_state = "mud-255"
base_icon_state = "mud"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_FANTASY_DIRT
canSmoothWith = SGROUP_FANTASY_GRASS +SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SGROUP_FANTASY_DIRT + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SGROUP_FANTASY_DIRT + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER - 0.003

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand Down Expand Up @@ -170,13 +170,13 @@
gender = PLURAL

icon = 'icons/turf/fantasystation/clay.dmi'
icon_state = "clay"
icon_state = "clay-255"
base_icon_state = "clay"
tiled_dirt = FALSE

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = SMOOTH_GROUP_TURF_OPEN + SGROUP_FIRE_CLAY
canSmoothWith = SGROUP_FANTASY_GRASS +SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SGROUP_FANTASY_DIRT + SGROUP_FIRE_CLAY + SMOOTH_GROUP_CLOSED_TURFS
canSmoothWith = SMOOTH_GROUP_CLOSED_TURFS + SGROUP_DESERT_SAND + SGROUP_CRACKED_EARTH + SGROUP_ROCKY_SOIL + SGROUP_FANTASY_DIRT + SGROUP_FIRE_CLAY + SGROUP_FANTASY_GRASS
layer = HIGH_TURF_LAYER - 0.004

initial_gas_mix = OPENTURF_DEFAULT_ATMOS
Expand Down

0 comments on commit 80e0a22

Please sign in to comment.