mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Port Bay's Catwalks
This commit is contained in:
@@ -223,6 +223,7 @@
|
||||
if(istype(W))
|
||||
W.update_connections(1)
|
||||
if(success)
|
||||
<<<<<<< HEAD
|
||||
break
|
||||
if(success)
|
||||
break
|
||||
@@ -242,6 +243,24 @@
|
||||
break
|
||||
if(success)
|
||||
break
|
||||
=======
|
||||
break // breaks inner loop
|
||||
if(!success)
|
||||
blend_obj_loop:
|
||||
for(var/obj/O in T)
|
||||
for(var/b_type in blend_objects)
|
||||
if(istype(O, b_type))
|
||||
success = 1
|
||||
for(var/obj/structure/S in T)
|
||||
if(istype(S, src))
|
||||
success = 0
|
||||
for(var/nb_type in noblend_objects)
|
||||
if(istype(O, nb_type))
|
||||
success = 0
|
||||
|
||||
if(success)
|
||||
break blend_obj_loop // breaks outer loop
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
|
||||
if(success)
|
||||
dirs += get_dir(src, T)
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
/obj/structure/catwalk/Destroy()
|
||||
redraw_nearby_catwalks()
|
||||
<<<<<<< HEAD
|
||||
update_falling()
|
||||
return ..()
|
||||
|
||||
@@ -43,7 +44,31 @@
|
||||
if(L)
|
||||
L.update_connections()
|
||||
L.update_icon() //so siding get updated properly
|
||||
=======
|
||||
return ..()
|
||||
|
||||
/obj/structure/catwalk/proc/redraw_nearby_catwalks()
|
||||
for(var/direction in alldirs)
|
||||
var/obj/structure/catwalk/L = locate() in get_step(src, direction)
|
||||
if(L)
|
||||
L.update_connections()
|
||||
L.update_icon() //so siding get updated properly
|
||||
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
|
||||
/obj/structure/catwalk/update_icon()
|
||||
update_connections()
|
||||
cut_overlays()
|
||||
icon_state = ""
|
||||
var/image/I
|
||||
if(!hatch_open)
|
||||
for(var/i = 1 to 4)
|
||||
I = image(icon, "catwalk[connections[i]]", dir = 1<<(i-1))
|
||||
add_overlay(I)
|
||||
if(plating_color)
|
||||
I = image(icon, "plated")
|
||||
I.color = plating_color
|
||||
add_overlay(I)
|
||||
|
||||
/obj/structure/catwalk/update_icon()
|
||||
update_connections()
|
||||
@@ -63,10 +88,17 @@
|
||||
switch(severity)
|
||||
if(1)
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
<<<<<<< HEAD
|
||||
qdel(src)
|
||||
if(2)
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
qdel(src)
|
||||
=======
|
||||
qdel(src)
|
||||
if(2)
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
qdel(src)
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
|
||||
/obj/structure/catwalk/attack_robot(var/mob/user)
|
||||
if(Adjacent(user))
|
||||
@@ -78,7 +110,11 @@
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
new /obj/item/stack/rods(src.loc)
|
||||
//Lattice would delete itself, but let's save ourselves a new obj
|
||||
<<<<<<< HEAD
|
||||
if(istype(src.loc, /turf/space) || istype(src.loc, /turf/simulated/open))
|
||||
=======
|
||||
if(isspace(loc) || isopenspace(loc))
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
new /obj/structure/lattice/(src.loc)
|
||||
if(plated_tile)
|
||||
new plated_tile(src.loc)
|
||||
@@ -95,7 +131,10 @@
|
||||
if(hatch_open)
|
||||
playsound(src, 'sound/items/Crowbar.ogg', 100, 2)
|
||||
to_chat(user, "<span class='notice'>You pry open \the [src]'s maintenance hatch.</span>")
|
||||
<<<<<<< HEAD
|
||||
update_falling()
|
||||
=======
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
else
|
||||
playsound(src, 'sound/items/Deconstruct.ogg', 100, 2)
|
||||
to_chat(user, "<span class='notice'>You shut \the [src]'s maintenance hatch.</span>")
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
else
|
||||
to_chat(src, "<span class='warning'>You gave up on pulling yourself up.</span>")
|
||||
return 0
|
||||
<<<<<<< HEAD
|
||||
else if(ismob(src)) //VOREStation Edit Start. Are they a mob, and are they currently flying??
|
||||
var/mob/H = src
|
||||
if(H.flying)
|
||||
@@ -91,6 +92,8 @@
|
||||
else
|
||||
to_chat(src, "<span class='warning'>Gravity stops you from moving upward.</span>")
|
||||
return 0 //VOREStation Edit End.
|
||||
=======
|
||||
>>>>>>> c62de50... Port Bay's Catwalks (#7083)
|
||||
else
|
||||
to_chat(src, "<span class='warning'>Gravity stops you from moving upward.</span>")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user