Particle accelerator will irradiate mobs again; adds COMSIG_CROSSED_MOVABLE signal

This commit is contained in:
Citinited
2019-10-25 00:50:42 +01:00
parent 22078ace9a
commit a0f7c9cacb
5 changed files with 31 additions and 40 deletions
@@ -457,12 +457,6 @@
popup.set_content(dat)
popup.open()
/mob/living/carbon/human/Crossed(atom/movable/AM, oldloc)
var/mob/living/simple_animal/bot/mulebot/MB = AM
if(istype(MB))
MB.RunOver(src)
// Get rank from ID, ID inside PDA, PDA, ID in wallet, etc.
/mob/living/carbon/human/proc/get_authentification_rank(var/if_no_id = "No id", var/if_no_job = "No job")
var/obj/item/pda/pda = wear_id
@@ -65,6 +65,7 @@
mulebot_count++
set_suffix(suffix ? suffix : "#[mulebot_count]")
RegisterSignal(src, COMSIG_CROSSED_MOVABLE, .proc/human_squish_check)
/mob/living/simple_animal/bot/mulebot/Destroy()
unload(0)
@@ -868,6 +869,11 @@
else
..()
/mob/living/simple_animal/bot/mulebot/proc/human_squish_check(src, atom/movable/AM)
if(!ishuman(AM))
return
RunOver(AM)
#undef SIGH
#undef ANNOYED
#undef DELIGHT