mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 04:02:31 +00:00
Fixes shelter lighting when deployed in lighting-unsimulated area
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
template.add_roof(above_location)
|
template.add_roof(above_location)
|
||||||
template.annihilate_plants(deploy_location)
|
template.annihilate_plants(deploy_location)
|
||||||
template.load(deploy_location, centered = TRUE)
|
template.load(deploy_location, centered = TRUE)
|
||||||
|
template.update_lighting(deploy_location)
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/obj/item/device/survivalcapsule/luxury
|
/obj/item/device/survivalcapsule/luxury
|
||||||
|
|||||||
@@ -42,6 +42,11 @@
|
|||||||
qdel(AM)
|
qdel(AM)
|
||||||
admin_notice("<span class='danger'>Annihilated [deleted_atoms] plants.</span>", R_DEBUG)
|
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
|
/datum/map_template/shelter/alpha
|
||||||
name = "Shelter Alpha"
|
name = "Shelter Alpha"
|
||||||
shelter_id = "shelter_alpha"
|
shelter_id = "shelter_alpha"
|
||||||
|
|||||||
Reference in New Issue
Block a user