Merge branch 'master' of https://github.com/tgstation/tgstation into misc_span_fixes1

# Conflicts:
#	code/game/objects/items/devices/PDA/PDA.dm
#	code/modules/mob/dead/new_player/new_player.dm
This commit is contained in:
kingofkosmos
2019-10-13 15:21:17 +03:00
78 changed files with 634 additions and 246 deletions
@@ -0,0 +1,32 @@
/obj/effect/proc_holder/spell/targeted/personality_commune
name = "Personality Commune"
desc = "Sends thoughts to your alternate consciousness."
charge_max = 0
clothes_req = FALSE
range = -1
include_user = TRUE
action_icon_state = "telepathy"
action_background_icon_state = "bg_spell"
var/datum/brain_trauma/severe/split_personality/trauma
var/flufftext = "You hear an echoing voice in the back of your head..."
/obj/effect/proc_holder/spell/targeted/personality_commune/New(datum/brain_trauma/severe/split_personality/T)
. = ..()
trauma = T
// Pillaged and adapted from telepathy code
/obj/effect/proc_holder/spell/targeted/personality_commune/cast(list/targets, mob/user)
if(!istype(trauma))
to_chat(user, "<span class='warning'>Something is wrong; Either due a bug or admemes, you are trying to cast this spell without a split personality!</span>")
return
var/msg = stripped_input(usr, "What would you like to tell your other self?", null , "")
if(!msg)
charge_counter = charge_max
return
to_chat(user, "<span class='boldnotice'>You concentrate and send thoughts to your other self:</span> <span class='notice'>[msg]</span>")
to_chat(trauma.owner, "<span class='boldnotice'>[flufftext]</span> <span class='notice'>[msg]</span>")
log_directed_talk(user, trauma.owner, msg, LOG_SAY ,"[name]")
for(var/ded in GLOB.dead_mob_list)
if(!isobserver(ded))
continue
to_chat(ded, "[FOLLOW_LINK(ded, user)] <span class='boldnotice'>[user] [name]:</span> <span class='notice'>\"[msg]\" to</span><span class='name'>[trauma]</span>")
@@ -259,7 +259,9 @@
/obj/effect/proc_holder/spell/targeted/genetic/blind
mutations = list(BLINDMUT)
duration = 300
charge_max = 400 // needs to be higher than the duration or it'll be permanent
sound = 'sound/magic/blind.ogg'
/obj/effect/proc_holder/spell/aoe_turf/repulse
name = "Repulse"
desc = "This spell throws everything around the user away."