mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-20 20:54:35 +01:00
[MIRROR] Some more Init and Destroy issues (#10317)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e90dd067f
commit
5aad34f339
@@ -71,9 +71,9 @@
|
||||
|
||||
if(T.density && !T.ignore_oregen)
|
||||
if(map[current_cell] == DOOR_CHAR)
|
||||
T.make_ore()
|
||||
T.turf_resource_types |= TURF_HAS_ORE
|
||||
else if(map[current_cell] == EMPTY_CHAR)
|
||||
T.make_ore(1)
|
||||
T.turf_resource_types |= TURF_HAS_RARE_ORE
|
||||
get_additional_spawns(map[current_cell],T,get_spawn_dir(x, y))
|
||||
//VOREStation Edit End
|
||||
return T
|
||||
|
||||
@@ -25,15 +25,16 @@
|
||||
|
||||
/obj/structure/droppod_door/attack_hand(var/mob/user)
|
||||
if(deploying) return
|
||||
deploying = TRUE
|
||||
to_chat(user, span_danger("You prime the explosive bolts. Better get clear!"))
|
||||
sleep(30)
|
||||
deploy()
|
||||
addtimer(CALLBACK(src, PROC_REF(deploy)), 3 SECONDS, TIMER_DELETE_ME)
|
||||
|
||||
/obj/structure/droppod_door/proc/deploy()
|
||||
if(deployed)
|
||||
return
|
||||
|
||||
deployed = 1
|
||||
deploying = FALSE
|
||||
deployed = TRUE
|
||||
visible_message(span_danger("The explosive bolts on \the [src] detonate, throwing it open!"))
|
||||
playsound(src, 'sound/effects/bang.ogg', 50, 1, 5)
|
||||
|
||||
@@ -72,7 +73,7 @@
|
||||
set_opacity(0)
|
||||
icon_state = "ramptop"
|
||||
var/obj/structure/droppod_door/door_bottom = new(T)
|
||||
door_bottom.deployed = 1
|
||||
door_bottom.deployed = TRUE
|
||||
door_bottom.density = FALSE
|
||||
door_bottom.set_opacity(0)
|
||||
door_bottom.dir = src.dir
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
for(var/i=0,i<chunk_size,i++)
|
||||
for(var/j=0,j<chunk_size,j++)
|
||||
var/turf/simulated/T = locate(tx+j, ty+i, origin_z)
|
||||
if(!istype(T) || !T.has_resources)
|
||||
if(!istype(T) || !(T.turf_resource_types & TURF_HAS_MINERALS))
|
||||
continue
|
||||
if(!priority_process) sleep(-1)
|
||||
T.resources = list()
|
||||
|
||||
Reference in New Issue
Block a user