Adds Planetary Meteors (Again) (For Real)

Planetary meteor showers can occur.
Hull shield generators made Smarter for planetary use.
This commit is contained in:
Mechoid
2023-03-05 05:27:29 -08:00
parent 186dc1cdba
commit ca2f68bf14
7 changed files with 82 additions and 8 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ var/global/list/meteors_catastrophic = list(
var/obj/effect/meteor/M = new Me(pickedstart)
if(M.planetary && !pickedgoal.outdoors)
var/list/Targ = check_trajectory(pickedgoal, pickedstart, PASSTABLE)
var/list/Targ = check_trajectory(pickedgoal, pickedstart, PASSTABLE|PASSTREE)
if(LAZYLEN(Targ))
var/turf/TargetTurf = get_step(get_turf(Targ[1]), get_dir(pickedgoal, pickedstart))
if(get_dist(pickedstart, Targ[1]) < get_dist(pickedstart, pickedgoal))
@@ -239,7 +239,7 @@ var/global/list/meteors_catastrophic = list(
Move(EndTurf, delay)
if(get_turf(src) == StartTurf) // If it doesn't move, IE, is blocked by something, take a hit.
get_hit()
if(allow_recursion)
if(!QDELETED(src))
addtimer(CALLBACK(src, .proc/move_toward, target, delay, allow_recursion), delay)