mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 09:02:27 +00:00
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly; All << is converted into to_chat().
68 lines
2.4 KiB
Plaintext
68 lines
2.4 KiB
Plaintext
/spell/targeted/mindcontrol
|
|
name = "Mind Bend"
|
|
desc = "Bend the mind and soul of a mortal to serve your purposes, making them your slave. You will need some way to hold them still during the process, however."
|
|
feedback = "MB"
|
|
school = "cleric"
|
|
charge_max = 10000
|
|
spell_flags = SELECTABLE | NEEDSCLOTHES
|
|
invocation = "In'gs'oc"
|
|
invocation_type = SpI_SHOUT
|
|
range = 1
|
|
max_targets = 1
|
|
|
|
cast_sound = 'sound/magic/Charge.ogg'
|
|
|
|
hud_state = "rend_mind"
|
|
|
|
holder_var_type = "brainloss"
|
|
holder_var_amount = 15
|
|
|
|
compatible_mobs = list(/mob/living/carbon/human)
|
|
|
|
/spell/targeted/mindcontrol/cast(list/targets, mob/user)
|
|
..()
|
|
for(var/mob/living/target in targets)
|
|
var/mob/living/carbon/human/H = target
|
|
|
|
if(H.stat == DEAD || (H.status_flags & FAKEDEATH))
|
|
to_chat(user, "<span class='warning'>\The [H] is dead!</span>")
|
|
return FALSE
|
|
|
|
if(is_special_character(H))
|
|
to_chat(user, "<span class='warning'>\The [H]'s mind is too strong to be affected by this spell!</span>")
|
|
return FALSE
|
|
|
|
if(!H.mind || !H.key)
|
|
to_chat(user, "<span class='warning'>\The [H] is mindless!</span>")
|
|
return FALSE
|
|
|
|
var/obj/item/organ/brain/F = H.internal_organs_by_name["brain"]
|
|
|
|
if(isnull(F))
|
|
to_chat(user, "<span class='warning'>\The [H] is brainless!</span>")
|
|
return FALSE
|
|
|
|
for (var/obj/item/weapon/implant/loyalty/I in H)
|
|
if (I.implanted)
|
|
to_chat(src, "<span class='warning'>[H]'s mind is shielded against your powers!</span>")
|
|
return FALSE
|
|
|
|
user.visible_message("<span class='danger'>\The [user] seizes the head of \the [H] in both hands...</span>")
|
|
to_chat(user, "<span class='warning'>You invade the mind of \the [H]!</span>")
|
|
to_chat(H, "<span class='danger'>Your mind is invaded by the presence of \the [user]! They are trying to make you a slave!</span>")
|
|
|
|
if (!do_mob(user, H, 80))
|
|
to_chat(user, "<span class='warning'>Your concentration is broken!</span>")
|
|
return FALSE
|
|
|
|
F.lobotomize()
|
|
|
|
if(wizards.add_antagonist_mind(target.mind,1,"Wizard Slave","<b>You are a slave to \the [user], obey them at all costs!</b>"))
|
|
to_chat(user, "<span class='danger'>You sear through \the [H]'s mind, reshaping as you see fit and leaving them subservient to your will!</span>")
|
|
H.mind.assigned_role = "Wizard Slave"
|
|
to_chat(H, "<span class='danger'>Your defenses have eroded away and \the [user] has made you their mindslave.</span>")
|
|
H.faction = "Space Wizard"
|
|
wizards.add_antagonist_mind(H.mind,1)
|
|
|
|
return TRUE
|