Fixes shelter lighting when deployed in lighting-unsimulated area

This commit is contained in:
Heroman3003
2019-09-26 10:15:19 +10:00
parent 6af8e16f28
commit dfb6ce947b
2 changed files with 6 additions and 0 deletions

View File

@@ -77,6 +77,7 @@
template.add_roof(above_location)
template.annihilate_plants(deploy_location)
template.load(deploy_location, centered = TRUE)
template.update_lighting(deploy_location)
qdel(src)
/obj/item/device/survivalcapsule/luxury

View File

@@ -42,6 +42,11 @@
qdel(AM)
admin_notice("<span class='danger'>Annihilated [deleted_atoms] plants.</span>", R_DEBUG)
/datum/map_template/shelter/proc/update_lighting(turf/deploy_location)
var/affected = get_affected_turfs(deploy_location, centered=TRUE)
for(var/turf/T in affected)
T.lighting_build_overlay()
/datum/map_template/shelter/alpha
name = "Shelter Alpha"
shelter_id = "shelter_alpha"