Adds fireworks and their launchers

This commit is contained in:
Casey
2022-12-26 02:05:31 +00:00
committed by CHOMPStation2
parent 5d3c349e16
commit 04f41aadb7
17 changed files with 641 additions and 16 deletions
+35 -9
View File
@@ -111,17 +111,19 @@ var/datum/planet/virgo3b/planet_virgo3b = null
WEATHER_EMBERFALL = new /datum/weather/virgo3b/emberfall(),
WEATHER_ASH_STORM = new /datum/weather/virgo3b/ash_storm(),
WEATHER_ASH_STORM_SAFE = new /datum/weather/virgo3b/ash_storm_safe(),
WEATHER_FALLOUT = new /datum/weather/virgo3b/fallout()
WEATHER_FALLOUT = new /datum/weather/virgo3b/fallout(),
WEATHER_FALLOUT_TEMP = new /datum/weather/virgo3b/fallout/temp(),
WEATHER_CONFETTI = new /datum/weather/virgo3b/confetti()
)
roundstart_weather_chances = list(
WEATHER_CLEAR = 30,
WEATHER_OVERCAST = 30,
WEATHER_LIGHT_SNOW = 20,
WEATHER_SNOW = 5,
WEATHER_BLIZZARD = 5,
WEATHER_RAIN = 5,
WEATHER_STORM = 2.5,
WEATHER_HAIL = 2.5
WEATHER_CLEAR = 60,
WEATHER_OVERCAST = 60,
WEATHER_LIGHT_SNOW = 40,
WEATHER_SNOW = 10,
WEATHER_BLIZZARD = 10,
WEATHER_RAIN = 10,
WEATHER_STORM = 5,
WEATHER_HAIL = 5
)
/datum/weather/virgo3b
@@ -550,3 +552,27 @@ var/datum/planet/virgo3b/planet_virgo3b = null
if(T.is_outdoors())
SSradiation.radiate(T, rand(fallout_rad_low, fallout_rad_high))
/datum/weather/virgo3b/fallout/temp
name = "short-term fallout"
transition_chances = list(
WEATHER_FALLOUT = 10,
WEATHER_RAIN = 50,
WEATHER_STORM = 20,
WEATHER_OVERCAST = 5
)
/datum/weather/virgo3b/confetti
name = "confetti"
icon = 'icons/effects/weather_vr.dmi'
icon_state = "confetti"
transition_chances = list(
WEATHER_CLEAR = 50,
WEATHER_OVERCAST = 20,
WEATHER_CONFETTI = 5
)
observed_message = "Confetti is raining from the sky."
transition_messages = list(
"Suddenly, colorful confetti starts raining from the sky."
)
+27 -1
View File
@@ -131,7 +131,9 @@ var/datum/planet/virgo3c/planet_virgo3c = null
WEATHER_EMBERFALL = new /datum/weather/virgo3c/emberfall(),
WEATHER_ASH_STORM = new /datum/weather/virgo3c/ash_storm(),
WEATHER_ASH_STORM_SAFE = new /datum/weather/virgo3c/ash_storm_safe(),
WEATHER_FALLOUT = new /datum/weather/virgo3c/fallout()
WEATHER_FALLOUT = new /datum/weather/virgo3c/fallout(),
WEATHER_FALLOUT_TEMP = new /datum/weather/virgo3c/fallout/temp(),
WEATHER_CONFETTI = new /datum/weather/virgo3c/confetti()
)
roundstart_weather_chances = list(
WEATHER_CLEAR = 50,
@@ -548,6 +550,30 @@ var/datum/planet/virgo3c/planet_virgo3c = null
if(T.is_outdoors())
SSradiation.radiate(T, rand(fallout_rad_low, fallout_rad_high))
/datum/weather/virgo3c/fallout/temp
name = "short-term fallout"
transition_chances = list(
WEATHER_FALLOUT = 10,
WEATHER_RAIN = 50,
WEATHER_STORM = 20,
WEATHER_OVERCAST = 5
)
/datum/weather/virgo3c/confetti
name = "confetti"
icon = 'icons/effects/weather_vr.dmi'
icon_state = "confetti"
transition_chances = list(
WEATHER_CLEAR = 50,
WEATHER_OVERCAST = 20,
WEATHER_CONFETTI = 5
)
observed_message = "Confetti is raining from the sky."
transition_messages = list(
"Suddenly, colorful confetti starts raining from the sky."
)
/turf/unsimulated/wall/planetary/virgo3c
name = "impassable rock"
desc = "It's quite impassable"
+27 -1
View File
@@ -110,7 +110,9 @@ var/datum/planet/virgo4/planet_virgo4 = null
WEATHER_EMBERFALL = new /datum/weather/virgo4/emberfall(),
WEATHER_ASH_STORM = new /datum/weather/virgo4/ash_storm(),
WEATHER_ASH_STORM_SAFE = new /datum/weather/virgo4/ash_storm_safe(),
WEATHER_FALLOUT = new /datum/weather/virgo4/fallout()
WEATHER_FALLOUT = new /datum/weather/virgo4/fallout(),
WEATHER_FALLOUT_TEMP = new /datum/weather/virgo4/fallout/temp(),
WEATHER_CONFETTI = new /datum/weather/virgo4/confetti()
)
roundstart_weather_chances = list(
WEATHER_CLEAR = 50,
@@ -524,6 +526,30 @@ var/datum/planet/virgo4/planet_virgo4 = null
if(T.is_outdoors())
SSradiation.radiate(T, rand(fallout_rad_low, fallout_rad_high))
/datum/weather/virgo4/fallout/temp
name = "short-term fallout"
transition_chances = list(
WEATHER_FALLOUT = 10,
WEATHER_RAIN = 50,
WEATHER_STORM = 20,
WEATHER_OVERCAST = 5
)
/datum/weather/virgo4/confetti
name = "confetti"
icon = 'icons/effects/weather_vr.dmi'
icon_state = "confetti"
transition_chances = list(
WEATHER_CLEAR = 50,
WEATHER_OVERCAST = 20,
WEATHER_CONFETTI = 5
)
observed_message = "Confetti is raining from the sky."
transition_messages = list(
"Suddenly, colorful confetti starts raining from the sky."
)
/turf/unsimulated/wall/planetary/normal/virgo4
name = "deep ocean"
alpha = 0
+3
View File
@@ -1,3 +1,6 @@
/datum/weather_holder
var/firework_override = FALSE
/datum/weather_holder/update_icon_effects()
..()
if(current_weather.icon)