Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cev_eris.dme
Original file line number Diff line number Diff line change
Expand Up @@ -903,11 +903,11 @@
#include "code\game\machinery\excelsior\centor.dm"
#include "code\game\machinery\excelsior\diesel.dm"
#include "code\game\machinery\excelsior\emplacement.dm"
#include "code\game\machinery\excelsior\ex_shield.dm"
#include "code\game\machinery\excelsior\ex_teleporter.dm"
#include "code\game\machinery\excelsior\ex_turret.dm"
#include "code\game\machinery\excelsior\excelsior_debug_tools.dm"
#include "code\game\machinery\excelsior\excelsior_researches.dm"
#include "code\game\machinery\excelsior\field.dm"
#include "code\game\machinery\excelsior\implantmaker.dm"
#include "code\game\machinery\excelsior\node.dm"
#include "code\game\machinery\excelsior\redirector.dm"
Expand Down
27 changes: 27 additions & 0 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,33 @@ Turf and target are seperate in case you want to teleport some distance from a t
return EAST
if(NORTHWEST)
return SOUTHEAST
// Used in Excelsior [ex_shield.dm]
/proc/get_adjacent_dirs(dir)
switch(dir)
if(NORTH)
return list(NORTHEAST, NORTHWEST)
if(NORTHEAST)
return list(NORTH, EAST)
if(NORTHWEST)
return list(NORTH, WEST)
if(SOUTH)
return list(SOUTHEAST, SOUTHWEST)
if(SOUTHEAST)
return list(SOUTH, EAST)
if(SOUTHWEST)
return list(SOUTH, WEST)
if(EAST)
return list(NORTHEAST, SOUTHEAST)
if(NORTHEAST)
return list(NORTH, EAST)
if(SOUTHEAST)
return list(SOUTH, EAST)
if(WEST)
return list(NORTHWEST, SOUTHWEST)
if(NORTHWEST)
return list(NORTH, WEST)
if(SOUTHWEST)
return list(SOUTH, WEST)

/*
Checks if that loc and dir has a item on the wall
Expand Down
Loading
Loading