one way or another im gonna find you
This commit is contained in:
@@ -720,29 +720,16 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
||||
else
|
||||
return zone
|
||||
|
||||
|
||||
//Gets the turf this atom inhabits
|
||||
|
||||
/proc/get_turf(atom/A)
|
||||
if (!istype(A))
|
||||
return
|
||||
for(A, A && !isturf(A), A=A.loc); //semicolon is for the empty statement
|
||||
return A
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Gets the turf this atom's *ICON* appears to inhabit
|
||||
It takes into account:
|
||||
* Pixel_x/y
|
||||
* Matrix x/y
|
||||
|
||||
NOTE: if your atom has non-standard bounds then this proc
|
||||
will handle it, but:
|
||||
* if the bounds are even, then there are an even amount of "middle" turfs, the one to the EAST, NORTH, or BOTH is picked
|
||||
(this may seem bad, but you're atleast as close to the center of the atom as possible, better than byond's default loc being all the way off)
|
||||
* if the bounds are odd, the true middle turf of the atom is returned
|
||||
|
||||
*/
|
||||
|
||||
/proc/get_turf_pixel(atom/movable/AM)
|
||||
@@ -1015,7 +1002,6 @@ var/list/WALLITEMS_INVERSE = list(
|
||||
|
||||
/*
|
||||
rough example of the "cone" made by the 3 dirs checked
|
||||
|
||||
B
|
||||
\
|
||||
\
|
||||
@@ -1031,7 +1017,6 @@ B --><-- A
|
||||
/
|
||||
/
|
||||
B
|
||||
|
||||
*/
|
||||
|
||||
|
||||
@@ -1409,4 +1394,11 @@ proc/pick_closest_path(value)
|
||||
admins_warned = 1
|
||||
spawn(25)
|
||||
message_admins(msg)
|
||||
stack_trace(msg)
|
||||
stack_trace(msg)
|
||||
|
||||
/proc/random_nukecode()
|
||||
var/val = rand(0, 99999)
|
||||
var/str = "[val]"
|
||||
while(length(str) < 5)
|
||||
str = "0" + str
|
||||
. = str
|
||||
@@ -409,7 +409,7 @@
|
||||
if("body_markings")
|
||||
S = body_markings_list[H.dna.features["body_markings"]]
|
||||
if("mam_body_markings")
|
||||
S = body_markings_list[H.dna.features["mam_body_markings"]]
|
||||
S = mam_body_markings_list[H.dna.features["mam_body_markings"]]
|
||||
if("wings")
|
||||
S = wings_list[H.dna.features["wings"]]
|
||||
if("wingsopen")
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 55 KiB |
Reference in New Issue
Block a user