mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
70 lines
3.1 KiB
Plaintext
70 lines
3.1 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"
|
|
|
|
anchored = 1
|
|
density = 1
|
|
use_power = USE_POWER_OFF
|
|
|
|
var/chargesa = 1
|
|
var/insistinga = 0
|
|
|
|
/obj/machinery/wish_granter/attack_hand(var/mob/living/carbon/human/user as mob)
|
|
user.set_machine(src)
|
|
|
|
if(chargesa <= 0)
|
|
to_chat(user, span_infoplain("The Wish Granter lies silent."))
|
|
return
|
|
|
|
else if(!ishuman(user))
|
|
to_chat(user, span_infoplain("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))
|
|
to_chat(user, span_infoplain("Even to a heart as dark as yours, you know nothing good will come of this. Something instinctual makes you pull away."))
|
|
|
|
else if (!insistinga)
|
|
to_chat(user, span_infoplain("Your first touch makes the Wish Granter stir, listening to you. Are you really sure you want to do this?"))
|
|
insistinga++
|
|
|
|
else
|
|
chargesa--
|
|
insistinga = 0
|
|
var/wish = tgui_input_list(user, "You want...","Wish", list("Power","Wealth","Immortality","To Kill","Peace"))
|
|
switch(wish)
|
|
if("Power")
|
|
to_chat(user, span_boldwarning("Your wish is granted, but at a terrible cost..."))
|
|
to_chat(user, span_warning("The Wish Granter punishes you for your selfishness, claiming your soul."))
|
|
if (!(LASER in user.mutations))
|
|
user.mutations.Add(LASER)
|
|
to_chat(user, span_notice("You feel pressure building behind your eyes."))
|
|
if (!(COLD_RESISTANCE in user.mutations))
|
|
user.mutations.Add(COLD_RESISTANCE)
|
|
to_chat(user, span_notice("Your body feels warm."))
|
|
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
|
|
to_chat(user, span_notice("The walls suddenly disappear."))
|
|
if("Wealth")
|
|
to_chat(user, span_boldwarning("Your wish is granted, but at a terrible cost..."))
|
|
to_chat(user, span_warning("The Wish Granter punishes you for your selfishness, claiming your soul."))
|
|
new /obj/structure/closet/syndicate/resources/everything(loc)
|
|
if("To Kill")
|
|
to_chat(user, span_boldwarning("Your wish is granted, but at a terrible cost..."))
|
|
to_chat(user, span_danger("The Wish Granter is outraged at your excessive wickedness, yet grants you your wish regardless. Someone will be killed soon."))
|
|
spawn(100)
|
|
if(user)
|
|
to_chat(user, span_bolddanger("Suddenly, you feel as though you are being torn to countless shreds! Your wish is coming true!"))
|
|
user.gib()
|
|
if("Peace")
|
|
to_chat(user, span_infoplain(span_bold("Whatever alien sentience that the Wish Granter possesses is satisfied with your wish. There is a distant wailing as the last of the Faithless begin to die, then silence.")))
|
|
to_chat(user, span_infoplain("You feel as if you just narrowly avoided a terrible fate..."))
|
|
for(var/mob/living/simple_mob/faithless/F in GLOB.living_mob_list)
|
|
F.health = -10
|
|
F.set_stat(DEAD)
|
|
F.icon_state = "faithless_dead"
|