mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +00:00
Resolves #597 rscadd: "Non-wizards using wizard items may experience fun stuff." tweak: "Mental focus damage level's have returned to old-code, to better compete with Mutate." bugfix: "Mental focus staff has had its area of effect mode returned."
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
//////////////////////Scrying orb//////////////////////
|
|
|
|
/obj/item/weapon/scrying
|
|
name = "scrying orb"
|
|
desc = "An incandescent orb of otherworldly energy, staring into it gives you vision beyond mortal means."
|
|
icon = 'icons/obj/projectiles.dmi'
|
|
icon_state = "bluespace"
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
throwforce = 10
|
|
damtype = BURN
|
|
force = 10
|
|
hitsound = 'sound/items/welder2.ogg'
|
|
|
|
/obj/item/weapon/scrying/attack_self(mob/user as mob)
|
|
if(!(user.mind.assigned_role == "Space Wizard"))
|
|
if(istype(user, /mob/living/carbon/human))
|
|
//Save the users active hand
|
|
var/mob/living/carbon/human/H = user
|
|
var/obj/item/organ/E = H.internal_organs_by_name["eyes"]
|
|
user << "\red You stare deep into the abyss. . . and the abyss stares back."
|
|
sleep(10)
|
|
user << "\red Your eyes fill with painful light, and you feel a sharp burning sensation in your head!"
|
|
user.show_message("<b>[user]</b> screams in horror!",2)
|
|
playsound(user, 'sound/hallucinations/far_noise.ogg', 40, 1)
|
|
user.drop_item()
|
|
user.visible_message("<span class='danger'>Ashes pour out of [user]'s eye sockets!</span>")
|
|
new /obj/effect/decal/cleanable/ash(get_turf(user))
|
|
E.removed(user)
|
|
qdel(E)
|
|
H.adjustBrainLoss(60)
|
|
H.hallucination += 20
|
|
return
|
|
else
|
|
user << "<span class='info'>You can see... everything!</span>"
|
|
visible_message("<span class='danger'>[user] stares into [src], their eyes glazing over.</span>")
|
|
|
|
user.teleop = user.ghostize(1)
|
|
announce_ghost_joinleave(user.teleop, 1, "You feel that they used a powerful artifact to [pick("invade","disturb","disrupt","infest","taint","spoil","blight")] this place with their presence.")
|
|
return
|