Added a "lights out" event.
 Flashlights
Red toolboxes now have only a 50% chance to spawn a flashlight (to add diversity and make the lights out event less easy to circumvent).
 Explosions
Explosions are now round. This is quite a big balance change, so it's subject to change in the future.
 Hydroponics
Hopefully fixed the bug with invading weeds etc being unharvestable.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1516 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-05-02 12:22:31 +00:00
parent f05a9843af
commit a2f55ddf6c
6 changed files with 6631 additions and 6583 deletions
+12 -1
View File
@@ -1,3 +1,5 @@
var/roundExplosions = 1
proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range, adminlog = 1)
if(!epicenter) return
spawn(0)
@@ -15,7 +17,16 @@ proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impa
E.set_up(epicenter)
E.start()
for(var/turf/T in range(light_impact_range, epicenter))
var/list/exTurfs = list()
if(roundExplosions)
for(var/turf/T in circlerange(epicenter,light_impact_range))
exTurfs += T
else
for(var/turf/T in range(light_impact_range, epicenter))
exTurfs += T
for(var/turf/T in exTurfs)
var/distance = get_dist(epicenter, T)
if(distance < 0)
distance = 0
+2 -1
View File
@@ -8,7 +8,8 @@
..()
new /obj/item/weapon/crowbar/red(src)
new /obj/item/weapon/extinguisher(src)
new /obj/item/device/flashlight(src)
if(prob(50))
new /obj/item/device/flashlight(src)
new /obj/item/device/radio(src)
/obj/item/weapon/storage/toolbox/mechanical/New()