Skip to content

Commit

Permalink
rockplanet sprites waow
Browse files Browse the repository at this point in the history
  • Loading branch information
rye-rice committed Dec 20, 2024
1 parent d0325fb commit 9d18d77
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions code/game/turfs/open/floor/plating/rockplanet.dm
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
/turf/open/floor/plating/asteroid/rockplanet
name = "iron sand"
icon = 'icons/turf/planetary/rockplanet.dmi'
icon_state = "dry_soft"
base_icon_state = "dry_soft"
floor_variance = 100
max_icon_states = 7
icon_state = "rock-255"
base_icon_state = "rock"
floor_variance = 80
max_icon_states = 4
layer = SAND_TURF_LAYER
initial_gas_mix = ROCKPLANET_DEFAULT_ATMOS
planetary_atmos = TRUE
baseturfs = /turf/open/floor/plating/asteroid/rockplanet
turf_type = /turf/open/floor/plating/asteroid/rockplanet
digResult = /obj/item/stack/ore/glass/rockplanet
light_color = COLOR_ROCKPLANET_LIGHT

smoothing_flags = SMOOTH_BITMASK
smoothing_groups = list(SMOOTH_GROUP_TURF_OPEN, SMOOTH_GROUP_FLOOR_ASH)
canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_FLOOR_ASH)
smooth_icon = 'icons/turf/floors/rockplanet_dry.dmi'

/turf/open/floor/plating/asteroid/rockplanet/Initialize(mapload, inherited_virtual_z)
. = ..()
if(prob(floor_variance))
add_overlay("rockalt_[rand(1,max_icon_states)]")

/turf/open/floor/plating/asteroid/rockplanet/lit
light_color = COLOR_ROCKPLANET_LIGHT
light_range = 2
light_power = 0.6

/turf/open/floor/plating/asteroid/rockplanet/cracked
name = "iron cracked sand"
icon_state = "dry_cracked0"
base_icon_state = "dry_cracked"
icon = 'icons/turf/floors/rockplanet_caves.dmi'
layer = STONE_TURF_LAYER
baseturfs = /turf/open/floor/plating/asteroid/rockplanet
turf_type = /turf/open/floor/plating/asteroid/rockplanet
smoothing_groups = list(SMOOTH_GROUP_TURF_OPEN, SMOOTH_GROUP_FLOOR_ASH_ROCKY)
canSmoothWith = list(SMOOTH_GROUP_CLOSED_TURFS, SMOOTH_GROUP_FLOOR_ASH_ROCKY)
smooth_icon = 'icons/turf/floors/rockplanet_caves.dmi'

floor_variance = 0

/turf/open/floor/plating/asteroid/rockplanet/cracked/lit
light_range = 2
Expand All @@ -31,13 +47,14 @@
turf_type = /turf/open/floor/plating/asteroid/rockplanet/lit

/turf/open/floor/plating/asteroid/rockplanet/wet
icon_state = "wet_soft0"
base_icon_state = "wet_soft"
icon = 'icons/turf/floors/rockplanet_wet.dmi'
smooth_icon = 'icons/turf/floors/rockplanet_wet.dmi'

/turf/open/floor/plating/asteroid/rockplanet/wet/lit
light_range = 2
light_power = 0.6

//TODO: unused, remove
/turf/open/floor/plating/asteroid/rockplanet/wet/cracked
name = "iron cracked sand"
icon_state = "wet_cracked0"
Expand Down
Binary file added icons/turf/floors/rockplanet_caves.dmi
Binary file not shown.
Binary file added icons/turf/floors/rockplanet_dry.dmi
Binary file not shown.
Binary file added icons/turf/floors/rockplanet_wet.dmi
Binary file not shown.

0 comments on commit 9d18d77

Please sign in to comment.