mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-24 09:03:57 +00:00
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
/mob/proc/get_all_in_bellies()
|
|
var/list/mobs_in_belly = list()
|
|
for (var/obj/belly/belly in contents) //dogborg sleeper, etc
|
|
for (var/mob/M in belly.contents)
|
|
mobs_in_belly |= M.get_all_in_bellies()
|
|
mobs_in_belly |= M
|
|
return mobs_in_belly
|
|
|
|
/atom/proc/get_ultimate_mob()
|
|
var/mob/ultimate_mob
|
|
var/atom/to_check = loc
|
|
var/n = 0
|
|
while (to_check && !isturf(to_check) && n++ < 16)
|
|
if (ismob(to_check))
|
|
ultimate_mob = to_check
|
|
to_check = to_check.loc
|
|
return ultimate_mob
|
|
|
|
/atom/proc/get_ultimate_belly()
|
|
var/obj/belly/ultimate_belly
|
|
var/atom/to_check = loc
|
|
var/n = 0
|
|
while (to_check && !isturf(to_check) && n++ < 16)
|
|
if (isbelly(to_check))
|
|
ultimate_belly = to_check
|
|
to_check = to_check.loc
|
|
return ultimate_belly
|
|
|
|
/atom/proc/is_inside_atom_recursive(var/atom/atom) //is this already a thing??
|
|
var/atom/to_check = loc
|
|
var/n = 0
|
|
while (to_check && !isturf(to_check) && n++ < 16)
|
|
if (to_check == atom)
|
|
return TRUE
|
|
to_check = to_check.loc
|
|
return FALSE
|
|
|
|
/mob/verb/me_verb_subtle_distanced(message as message) //This would normally go in say.dm
|
|
set name = "Subtle-Targeted"
|
|
set category = "IC"
|
|
set desc = "Emote to nearby people (and your pred/prey), picking from selected targets afterwards."
|
|
|
|
if(say_disabled) //This is here to try to identify lag problems
|
|
to_chat(usr, "Speech is currently admin-disabled.")
|
|
return
|
|
//VOREStation Addition Start
|
|
if(forced_psay)
|
|
pme(message)
|
|
return
|
|
//VOREStation Addition End
|
|
|
|
message = sanitize_or_reflect(message,src) //VOREStation Edit - Reflect too-long messages (within reason)
|
|
if(!message)
|
|
return
|
|
|
|
set_typing_indicator(FALSE)
|
|
if(use_me)
|
|
usr.custom_emote_vr(4,message,TRUE)
|