mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Events
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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user