mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] Primitive Colorgrading (#11062)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4e57ac73d4
commit
c97ec96e61
@@ -160,6 +160,7 @@
|
||||
if(!T.is_outdoors())
|
||||
continue
|
||||
to_chat(M, message)
|
||||
M.update_client_color() // Passively done here instead of its own loop, the only issue is that if you enter an outdoor area to an indoor turf you won't get a blend update till your first message.
|
||||
|
||||
/datum/weather_holder/proc/get_weather_datum(desired_type)
|
||||
return allowed_weather_types[desired_type]
|
||||
@@ -204,6 +205,8 @@
|
||||
var/indoor_sounds_type = null
|
||||
var/effect_flags = NONE
|
||||
|
||||
VAR_PRIVATE/color_grading = null // Color blending for weather to feel hotter, colder, or stranger
|
||||
|
||||
/datum/weather/New()
|
||||
if(outdoor_sounds_type)
|
||||
outdoor_sounds = new outdoor_sounds_type(list(), FALSE, TRUE)
|
||||
@@ -305,6 +308,10 @@
|
||||
return
|
||||
indoor_sounds.output_atoms -= M
|
||||
|
||||
/// Gets a hex color value for blending with a player's client.color.
|
||||
/datum/weather/proc/get_color_tint()
|
||||
return color_grading
|
||||
|
||||
// All this does is hold the weather icon.
|
||||
/atom/movable/weather_visuals
|
||||
icon = 'icons/effects/weather.dmi'
|
||||
|
||||
Reference in New Issue
Block a user