Adds the Solar Storm event.

New Random Event: Solar Storms. Similar to a radiation storm, but anywhere inside the station is safe.
Also boosts solar panel output significantly for the duration.
This commit is contained in:
Techhead0
2016-06-06 17:42:06 -04:00
committed by Yoshax
parent 8d5560aa75
commit 111310ef32
5 changed files with 67 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#define SOLAR_MAX_DIST 40
#define SOLARGENRATE 1500
var/solar_gen_rate = 1500
var/list/solars_list = list()
/obj/machinery/power/solar
@@ -130,7 +130,7 @@ var/list/solars_list = list()
if(powernet == control.powernet)//check if the panel is still connected to the computer
if(obscured) //get no light from the sun, so don't generate power
return
var/sgen = SOLARGENRATE * sunfrac
var/sgen = solar_gen_rate * sunfrac
add_avail(sgen)
control.gen += sgen
else //if we're no longer on the same powernet, remove from control computer