Skip to content

Commit

Permalink
Update dropship_equipment.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
cuberound committed Dec 13, 2023
1 parent a14e52a commit fea0e22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/modules/cm_marines/dropship_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,10 @@
if(ship_base.base_category == DROPSHIP_WEAPON)
switch(dir)
if(NORTH)
if( istype(get_step(src, WEST), /turf/open) )
var step_contents = get_step(src, EAST).contents
if(locate(/obj/structure) in step_contents)
deployed_mg.pixel_x = 5
else if ( istype(get_step(src, EAST), /turf/open) )
else
deployed_mg.pixel_x = -5
if(EAST)
deployed_mg.pixel_y = 9
Expand All @@ -368,12 +369,11 @@
if(ship_base.base_category == DROPSHIP_WEAPON)
switch(dir)
if(NORTH)
if( istype(get_step(src, WEST), /turf/open) )
var step_contents = get_step(src, EAST).contents
if(locate(/obj/structure) in step_contents)
deployed_mg.forceMove(get_step(src, WEST))
else if ( istype(get_step(src, EAST), /turf/open) )
deployed_mg.forceMove(get_step(src, EAST))
else
deployed_mg.forceMove(get_step(src, NORTH))
deployed_mg.forceMove(get_step(src, EAST))
if(EAST)
deployed_mg.forceMove(get_step(src, SOUTH))
if(WEST)
Expand Down

0 comments on commit fea0e22

Please sign in to comment.