diff --git a/code/__DEFINES/maths.dm b/code/__DEFINES/maths.dm index 01a295634f..cd731c2c3b 100644 --- a/code/__DEFINES/maths.dm +++ b/code/__DEFINES/maths.dm @@ -108,7 +108,8 @@ #define TORADIANS(degrees) ((degrees) * 0.0174532925) /// Gets shift x that would be required the bitflag (1<[C] is dead!") return else - C.goodbye(C) //sandstorm punish and ends here. + C.goodbye() //sandstorm punish and ends here. if(ADMIN_PUNISHMENT_TABLETIDESTATIONWIDE) //SPLURT punishments start here priority_announce(html_decode("[target] has brought the wrath of the gods upon themselves and is now being tableslammed across the station. Please stand by."), null, 'sound/misc/announce.ogg', "CentCom") var/list/areas = list() diff --git a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm index 9d77f25c47..d76d4ffb75 100644 --- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm +++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm @@ -766,9 +766,9 @@ background_icon_state = "bg_alien" var/datum/species/jelly/stargazer/species -/datum/action/innate/link_minds/New(_species) +/datum/action/innate/link_minds/New(species) ..() - species = _species + src.species = species /datum/action/innate/link_minds/Destroy() species = null @@ -796,3 +796,7 @@ else to_chat(H, "You can't seem to link [target]'s mind...") to_chat(target, "The foreign presence leaves your mind.") + +/datum/action/innate/link_minds/Destroy() + species = null + return ..() diff --git a/code/modules/spells/spell_types/ethereal_jaunt.dm b/code/modules/spells/spell_types/ethereal_jaunt.dm index ce398f3e2a..8f0d0fd6c0 100644 --- a/code/modules/spells/spell_types/ethereal_jaunt.dm +++ b/code/modules/spells/spell_types/ethereal_jaunt.dm @@ -55,7 +55,7 @@ if(T) if(target.Move(T)) break - REMOVE_TRAIT(target, TRAIT_MOBILITY_NOMOVE, src) + REMOVE_TRAIT(target, TRAIT_MOBILITY_NOMOVE, MAGIC_TRAIT) target.update_mobility() /obj/effect/proc_holder/spell/targeted/ethereal_jaunt/proc/jaunt_steam(mobloc) diff --git a/modular_sand/code/modules/mob/living/living.dm b/modular_sand/code/modules/mob/living/living.dm index 59c460efa7..d334af9829 100644 --- a/modular_sand/code/modules/mob/living/living.dm +++ b/modular_sand/code/modules/mob/living/living.dm @@ -35,26 +35,26 @@ if(1.21 to INFINITY) mob_size = MOB_SIZE_LARGE -//It's here so it doesn't make a big mess on randomverbs.dm, -//also because of this you can proccall it, why would you if you have smite? +// It's here so it doesn't make a big mess on randomverbs.dm, +// also because of this you can proccall it, why would you if you have smite? // This code was bad. For future reference, stoplag() and sleep() are very different and not at all interchangeable. // You can also use animate() to cleanly animate variables like alpha. // Finally, NEVER call Destroy() directly. -/mob/living/proc/goodbye(C) +/mob/living/proc/goodbye() set waitfor = FALSE - if(isanimal(C)) - var/mob/living/simple_animal/D = C - D.toggle_ai(AI_OFF) - AllImmobility(900, TRUE, TRUE) // Complete 15 minutes of stun, hopefully they shouldn't take that long - playsound(C, "modular_sand/sound/effects/admin_punish/changetheworld.ogg", 100, FALSE) + if(isanimal(src)) + var/mob/living/simple_animal/simple_animal = src + simple_animal.toggle_ai(AI_OFF) + AllImmobility(INFINITY, TRUE, TRUE) + playsound(src, "modular_sand/sound/effects/admin_punish/changetheworld.ogg", 100, FALSE) say("Change the world") sleep(20) - playsound(C, "modular_sand/sound/effects/admin_punish/myfinalmessage.ogg", 100, FALSE) + playsound(src, "modular_sand/sound/effects/admin_punish/myfinalmessage.ogg", 100, FALSE) say("My final message") sleep(20) - playsound(C, "modular_sand/sound/effects/admin_punish/goodbye.ogg", 100, FALSE) + playsound(src, "modular_sand/sound/effects/admin_punish/goodbye.ogg", 100, FALSE) say("Goodbye.") sleep(20) - playsound(C, "modular_sand/sound/effects/admin_punish/endjingle.ogg", 100, FALSE) + playsound(src, "modular_sand/sound/effects/admin_punish/endjingle.ogg", 100, FALSE) animate(src, alpha = 10, 3.5 SECONDS) QDEL_IN(src, 2)