Adds new station trait: Moonscorch (#20878)

* ok for real

lets see

* ok cool

lit as the kids say

* sick

done

* spelling

idiot

* Updates it

As requested

* Lets make it more mysterious

what the moon doing

* reworks the code

when you leave the z-level the moon no longer resets, thanks chubby

* remove this

throw it away
This commit is contained in:
cowbot92
2023-11-14 20:46:46 -05:00
committed by GitHub
parent cd5cd696bc
commit f3fb6a5816
4 changed files with 15 additions and 1 deletions

View File

@@ -453,6 +453,7 @@
#define STATION_TRAIT_FILLED_MAINT "station_trait_filled_maint"
#define STATION_TRAIT_EMPTY_MAINT "station_trait_empty_maint"
#define STATION_TRAIT_PDA_GLITCHED "station_trait_pda_glitched"
#define STATION_TRAIT_MOONSCORCH "station_trait_moonscorch"
//important_recursive_contents traits
/*

View File

@@ -21,6 +21,9 @@
C.parallax_layers_cached = list()
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view)
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view)
if(HAS_TRAIT(SSstation, STATION_TRAIT_MOONSCORCH))
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet/moonscorch(null, C.view)
else
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view)
if(SSparallax.random_layer)
C.parallax_layers_cached += new SSparallax.random_layer
@@ -326,6 +329,9 @@
speed = 3
layer = 30
/atom/movable/screen/parallax_layer/planet/moonscorch
icon_state = "rheus_moon"
/atom/movable/screen/parallax_layer/planet/update_status(mob/M)
var/turf/T = get_turf(M)
if(is_station_level(T.z))

View File

@@ -59,3 +59,10 @@
/datum/station_trait/announcement_medbot/New()
. = ..()
SSstation.announcer = /datum/centcom_announcer/medbot
/datum/station_trait/Moonscorch
name = "Moonscorch"
trait_type = STATION_TRAIT_NEUTRAL
weight = 0.2
trait_to_give = STATION_TRAIT_MOONSCORCH

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 KiB

After

Width:  |  Height:  |  Size: 579 KiB