smooth_rock (#19265)

This commit is contained in:
S34N
2022-10-14 21:30:26 +01:00
committed by GitHub
parent 7bb99cb7bd
commit f3ea9198d6
9 changed files with 8 additions and 21 deletions
+1
View File
@@ -81,6 +81,7 @@
#define COLOR_ALUMINIUM "#bbbbbb"
#define COLOR_CRYSTAL "#00c8a5"
#define COLOR_ASTEROID_ROCK "#735555"
#define COLOR_ROCK "#464646"
#define COLOR_NULLGLASS "#ff6088"
#define COLOR_DIAMOND "#d8d4ea"
#define COLOR_HEALING_GREEN "#375637"
-10
View File
@@ -471,16 +471,6 @@ DEFINE_BITFIELD(smoothing_junction, list(
else
return NONE
//Example smooth wall
/turf/simulated/wall/smooth
name = "smooth wall"
icon = 'icons/turf/smooth_wall.dmi'
icon_state = "smooth"
smoothing_flags = SMOOTH_CORNERS|SMOOTH_DIAGONAL_CORNERS|SMOOTH_BORDER
smoothing_groups = null
canSmoothWith = null
#undef NORTH_JUNCTION
#undef SOUTH_JUNCTION
#undef EAST_JUNCTION
+7 -11
View File
@@ -2,10 +2,9 @@
/turf/simulated/mineral //wall piece
name = "rock"
icon = 'icons/turf/smoothrocks.dmi'
icon = 'icons/turf/walls/smoothrocks.dmi'
icon_state = "smoothrocks-0"
base_icon_state = "smoothrocks"
transform = matrix(1, 0, -4, 0, 1, -4)
smoothing_flags = SMOOTH_BITMASK | SMOOTH_BORDER
smoothing_groups = list(SMOOTH_GROUP_SIMULATED_TURFS, SMOOTH_GROUP_MINERAL_WALLS)
canSmoothWith = list(SMOOTH_GROUP_MINERAL_WALLS)
@@ -17,6 +16,7 @@
rad_insulation = RAD_MEDIUM_INSULATION
layer = EDGED_TURF_LAYER
temperature = TCMB
color = COLOR_ROCK
var/environment_type = "asteroid"
var/turf/simulated/floor/plating/turf_type = /turf/simulated/floor/plating/asteroid/airless
var/mineralType = null
@@ -29,6 +29,7 @@
/turf/simulated/mineral/Initialize(mapload)
. = ..()
color = COLOR_ROCK
if(mineralType && mineralAmt && spread && spreadChance)
for(var/dir in GLOB.cardinal)
if(prob(spreadChance))
@@ -40,7 +41,6 @@
T.ChangeTurf(type)
/turf/simulated/mineral/shuttleRotate(rotation)
setDir(angle2dir(rotation + dir2angle(dir)))
QUEUE_SMOOTH(src)
/turf/simulated/mineral/attackby(obj/item/I, mob/user, params)
@@ -133,14 +133,11 @@
/turf/simulated/mineral/gibtonite = 4, /turf/simulated/floor/plating/asteroid/airless/cave = 2, /turf/simulated/mineral/bscrystal = 1)
//Currently, Adamantine won't spawn as it has no uses. -Durandan
var/mineralChance = 13
var/display_icon_state = "rock"
/turf/simulated/mineral/random/Initialize(mapload)
mineralSpawnChanceList = typelist("mineralSpawnChanceList", mineralSpawnChanceList)
if(display_icon_state)
icon_state = display_icon_state
. = ..()
if (prob(mineralChance))
var/path = pickweight(mineralSpawnChanceList)
@@ -156,7 +153,7 @@
M.levelupdate()
/turf/simulated/mineral/random/high_chance
icon_state = "rock_highchance"
color = COLOR_YELLOW
mineralChance = 25
mineralSpawnChanceList = list(
/turf/simulated/mineral/uranium = 35, /turf/simulated/mineral/diamond = 30, /turf/simulated/mineral/gold = 45, /turf/simulated/mineral/titanium = 45,
@@ -181,7 +178,7 @@
/turf/simulated/mineral/silver/volcanic = 50, /turf/simulated/mineral/plasma/volcanic = 50, /turf/simulated/mineral/bscrystal/volcanic = 20)
/turf/simulated/mineral/random/low_chance
icon_state = "rock_lowchance"
color = COLOR_VIOLET
mineralChance = 6
mineralSpawnChanceList = list(
/turf/simulated/mineral/uranium = 2, /turf/simulated/mineral/diamond = 1, /turf/simulated/mineral/gold = 4, /turf/simulated/mineral/titanium = 4,
@@ -189,7 +186,6 @@
/turf/simulated/mineral/gibtonite = 2, /turf/simulated/mineral/bscrystal = 1)
/turf/simulated/mineral/random/volcanic
icon_state = "smoothrocks"
environment_type = "basalt"
turf_type = /turf/simulated/floor/plating/asteroid/basalt/lava_land_surface
baseturf = /turf/simulated/floor/plating/lava/smooth/lava_land_surface
@@ -209,7 +205,7 @@
/turf/simulated/mineral/uranium = 3, /turf/simulated/mineral/diamond = 1, /turf/simulated/mineral/gold = 8, /turf/simulated/mineral/titanium = 8,
/turf/simulated/mineral/silver = 20, /turf/simulated/mineral/plasma = 30, /turf/simulated/mineral/iron = 95,
/turf/simulated/mineral/gibtonite = 2)
icon_state = "rock_labor"
color = COLOR_MAROON
/turf/simulated/mineral/random/labormineral/volcanic
environment_type = "basalt"
@@ -422,7 +418,7 @@
/turf/simulated/mineral/gibtonite/proc/explosive_reaction(mob/user = null, triggered_by_explosion = 0)
if(stage == GIBTONITE_UNSTRUCK)
activated_overlay = mutable_appearance('icons/turf/smoothrocks.dmi', "rock_Gibtonite_active", ON_EDGED_TURF_LAYER)
activated_overlay = mutable_appearance(icon, "rock_Gibtonite_active", ON_EDGED_TURF_LAYER)
add_overlay(activated_overlay)
name = "gibtonite deposit"
desc = "An active gibtonite reserve. Run!"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB