Skip to content

Commit

Permalink
Adds a station trait that brightens up IceBox's surface. (#82945)
Browse files Browse the repository at this point in the history
## About The Pull Request
This PR adds a positive trait that brings lights to the outdoors surface
areas of Icebox.

## Why It's Good For The Game
Building upon the features of the station traits. This is how it'd look:
![It's Always Sunny On
IceBoxStation](https://github.com/tgstation/tgstation/assets/42542238/af4238e9-c731-41c9-9eaf-8fcb04d6fe4f)

## Changelog
:cl:
add: Adds an Icebox-specific station trait that brightens outdoors areas
on the surface level.
/:cl:
  • Loading branch information
Ghommie committed May 3, 2024
1 parent c5e534e commit 15fe98e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/traits/declarations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,7 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
#define STATION_TRAIT_BIGGER_PODS "station_trait_bigger_pods"
#define STATION_TRAIT_BIRTHDAY "station_trait_birthday"
#define STATION_TRAIT_BOTS_GLITCHED "station_trait_bot_glitch"
#define STATION_TRAIT_BRIGHT_DAY "station_trait_bright_day"
#define STATION_TRAIT_CARP_INFESTATION "station_trait_carp_infestation"
#define STATION_TRAIT_CYBERNETIC_REVOLUTION "station_trait_cybernetic_revolution"
#define STATION_TRAIT_EMPTY_MAINT "station_trait_empty_maint"
Expand Down
1 change: 1 addition & 0 deletions code/_globalvars/traits/_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
"STATION_TRAIT_BIGGER_PODS" = STATION_TRAIT_BIGGER_PODS,
"STATION_TRAIT_BIRTHDAY" = STATION_TRAIT_BIRTHDAY,
"STATION_TRAIT_BOTS_GLITCHED" = STATION_TRAIT_BOTS_GLITCHED,
"STATION_TRAIT_BRIGHT_DAY" = STATION_TRAIT_BRIGHT_DAY,
"STATION_TRAIT_CARP_INFESTATION" = STATION_TRAIT_CARP_INFESTATION,
"STATION_TRAIT_CYBERNETIC_REVOLUTION" = STATION_TRAIT_CYBERNETIC_REVOLUTION,
"STATION_TRAIT_EMPTY_MAINT" = STATION_TRAIT_EMPTY_MAINT,
Expand Down
9 changes: 9 additions & 0 deletions code/datums/station_traits/positive_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,15 @@
weight_multiplier = 3
max_occurrences_modifier = 10 //lotta cows

/datum/station_trait/bright_day
name = "Bright Day"
report_message = "The stars shine bright and the clouds are scarcer than usual. It's a bright day here on the Ice Moon's surface."
trait_type = STATION_TRAIT_POSITIVE
weight = 5
show_in_report = TRUE
trait_flags = STATION_TRAIT_PLANETARY
trait_to_give = STATION_TRAIT_BRIGHT_DAY

/datum/station_trait/shuttle_sale
name = "Shuttle Firesale"
report_message = "The Nanotrasen Emergency Dispatch team is celebrating a record number of shuttle calls in the recent quarter. Some of your emergency shuttle options have been discounted!"
Expand Down
5 changes: 5 additions & 0 deletions code/game/area/areas/mining.dm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
name = "Icemoon Wastes"
outdoors = TRUE

/area/icemoon/surface/outdoors/Initialize(mapload)
if(HAS_TRAIT(SSstation, STATION_TRAIT_BRIGHT_DAY))
base_lighting_alpha = 145
return ..()

/area/icemoon/surface/outdoors/nospawn // this is the area you use for stuff to not spawn, but if you still want weather.

/area/icemoon/surface/outdoors/nospawn/New() // unless you roll forested trait lol
Expand Down

0 comments on commit 15fe98e

Please sign in to comment.