mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-27 18:42:44 +00:00
Fix startends
This commit is contained in:
@@ -177,6 +177,10 @@
|
|||||||
|
|
||||||
midsections -= SE
|
midsections -= SE
|
||||||
|
|
||||||
|
//Some unhandled error state
|
||||||
|
for(var/obj/effect/shield/SE in midsections)
|
||||||
|
SE.icon_state = "arrow" //Error state/unhandled
|
||||||
|
|
||||||
//Corners
|
//Corners
|
||||||
for(var/obj/effect/shield/S in corners)
|
for(var/obj/effect/shield/S in corners)
|
||||||
var/adjacent = corners[S]
|
var/adjacent = corners[S]
|
||||||
@@ -214,8 +218,15 @@
|
|||||||
// Not actually a corner... It has MULTIPLE!
|
// Not actually a corner... It has MULTIPLE!
|
||||||
S.icon_state = "arrow" //Error state/unhandled
|
S.icon_state = "arrow" //Error state/unhandled
|
||||||
|
|
||||||
for(var/obj/effect/shield/SE in midsections)
|
for(var/obj/effect/shield/S in startends)
|
||||||
SE.icon_state = "arrow" //Error state/unhandled
|
var/adjacent = startends[S]
|
||||||
|
var/turf/T = get_step(S, adjacent)
|
||||||
|
var/obj/effect/shield/SO = locate() in T
|
||||||
|
S.set_dir(SO.dir)
|
||||||
|
if(S.dir == adjacent) //Flowing into them
|
||||||
|
S.icon_state = "shield_start"
|
||||||
|
else
|
||||||
|
S.icon_state = "shield_end"
|
||||||
|
|
||||||
for(var/obj/effect/shield/SE in field_segments)
|
for(var/obj/effect/shield/SE in field_segments)
|
||||||
SE.update_visuals()
|
SE.update_visuals()
|
||||||
|
|||||||
Reference in New Issue
Block a user