mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
/obj/machinery/wish_granter
|
|
name = "Wish Granter"
|
|
desc = "You're not so sure about this, anymore..."
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "syndbeacon"
|
|
|
|
use_power = 0
|
|
anchored = 1
|
|
density = 1
|
|
|
|
var/charges = 1
|
|
var/insisting = 0
|
|
|
|
/obj/machinery/wish_granter/attack_hand(var/mob/user as mob)
|
|
usr.set_machine(src)
|
|
|
|
if(charges <= 0)
|
|
user << "The Wish Granter lies silent."
|
|
return
|
|
|
|
else if(!istype(user, /mob/living/carbon/human))
|
|
user << "You feel a dark stirring inside of the Wish Granter, something you want nothing of. Your instincts are better than any man's."
|
|
return
|
|
|
|
else if(is_special_character(user))
|
|
user << "Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away."
|
|
|
|
else if (!insisting)
|
|
user << "Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?"
|
|
insisting++
|
|
|
|
else
|
|
user << "You speak. [pick("I want the station to disappear","Humanity is corrupt, mankind must be destroyed","I want to be rich", "I want to rule the world","I want immortality.")]. The Wish Granter answers."
|
|
user << "Your head pounds for a moment, before your vision clears. You are the avatar of the Wish Granter, and your power is LIMITLESS! And it's all yours. You need to make sure no one can take it from you. No one can know, first."
|
|
|
|
charges--
|
|
insisting = 0
|
|
|
|
if (!(HULK in user.mutations))
|
|
user.mutations.Add(HULK)
|
|
|
|
if (!(LASER in user.mutations))
|
|
user.mutations.Add(LASER)
|
|
|
|
if (!(XRAY in user.mutations))
|
|
user.mutations.Add(XRAY)
|
|
user.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS)
|
|
user.see_in_dark = 8
|
|
user.see_invisible = SEE_INVISIBLE_LEVEL_TWO
|
|
|
|
if (!(COLD_RESISTANCE in user.mutations))
|
|
user.mutations.Add(COLD_RESISTANCE)
|
|
|
|
if (!(TK in user.mutations))
|
|
user.mutations.Add(TK)
|
|
|
|
if(!(HEAL in user.mutations))
|
|
user.mutations.Add(HEAL)
|
|
|
|
user.update_mutations()
|
|
|
|
ticker.mode.traitors += user.mind
|
|
user.mind.special_role = "Avatar of the Wish Granter"
|
|
|
|
var/datum/objective/silence/silence = new
|
|
silence.owner = user.mind
|
|
user.mind.objectives += silence
|
|
|
|
show_objectives(user.mind)
|
|
user << "You have a very bad feeling about this."
|
|
|
|
return |