mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 11:07:46 +01:00
Merge pull request #14384 from Runa-Dacino/Custom-species-heat
Adds ability to customize discomfort
This commit is contained in:
@@ -90,10 +90,18 @@
|
||||
*/
|
||||
|
||||
var/discomfort_message
|
||||
var/list/custom_cold = H.custom_cold
|
||||
var/list/custom_heat = H.custom_heat
|
||||
if(msg_type == ENVIRONMENT_COMFORT_MARKER_COLD && length(cold_discomfort_strings) /*&& !covered*/)
|
||||
discomfort_message = pick(cold_discomfort_strings)
|
||||
if(custom_cold.len > 0)
|
||||
discomfort_message = pick(custom_cold)
|
||||
else
|
||||
discomfort_message = pick(cold_discomfort_strings)
|
||||
else if(msg_type == ENVIRONMENT_COMFORT_MARKER_HOT && length(heat_discomfort_strings) /*&& covered*/)
|
||||
discomfort_message = pick(heat_discomfort_strings)
|
||||
if(custom_heat.len > 0)
|
||||
discomfort_message = pick(custom_heat)
|
||||
else
|
||||
discomfort_message = pick(heat_discomfort_strings)
|
||||
|
||||
if(discomfort_message && prob(5))
|
||||
to_chat(H, SPAN_DANGER(discomfort_message))
|
||||
|
||||
@@ -10,4 +10,7 @@
|
||||
var/custom_say = null
|
||||
var/custom_ask = null
|
||||
var/custom_exclaim = null
|
||||
var/custom_whisper = null
|
||||
var/custom_whisper = null
|
||||
//custom temperature discomfort vars
|
||||
var/list/custom_heat = list()
|
||||
var/list/custom_cold = list()
|
||||
|
||||
Reference in New Issue
Block a user