mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
135 lines
4.9 KiB
Plaintext
135 lines
4.9 KiB
Plaintext
//These objects are used in the cardinal sin-themed ruins (i.e. Gluttony, Pride...)
|
|
|
|
/obj/structure/cursed_slot_machine //Greed's slot machine: Used in the Greed ruin. Deals clone damage on each use, with a successful use giving a d20 of fate.
|
|
name = "greed's slot machine"
|
|
desc = "High stakes, high rewards."
|
|
icon = 'icons/obj/economy.dmi'
|
|
icon_state = "slots1"
|
|
anchored = TRUE
|
|
density = TRUE
|
|
var/win_prob = 5
|
|
|
|
/obj/structure/cursed_slot_machine/attack_hand(mob/living/carbon/human/user)
|
|
if(!istype(user))
|
|
return
|
|
if(in_use)
|
|
return
|
|
in_use = TRUE
|
|
user.adjustCloneLoss(20)
|
|
if(user.stat)
|
|
to_chat(user, "<span class='userdanger'>No... just one more try...</span>")
|
|
user.gib()
|
|
else
|
|
user.visible_message("<span class='warning'>[user] pulls [src]'s lever with a glint in [user.p_their()] eyes!</span>", "<span class='warning'>You feel a draining as you pull the lever, but you \
|
|
know it'll be worth it.</span>")
|
|
icon_state = "slots2"
|
|
playsound(src, 'sound/lavaland/cursed_slot_machine.ogg', 50, 0)
|
|
sleep(50)
|
|
icon_state = "slots1"
|
|
in_use = FALSE
|
|
if(prob(win_prob))
|
|
playsound(src, 'sound/lavaland/cursed_slot_machine_jackpot.ogg', 50, 0)
|
|
new/obj/structure/cursed_money(get_turf(src))
|
|
if(user)
|
|
to_chat(user, "<span class='boldwarning'>You've hit jackpot. Laughter echoes around you as your reward appears in the machine's place.</span>")
|
|
qdel(src)
|
|
else
|
|
if(user)
|
|
to_chat(user, "<span class='boldwarning'>Fucking machine! Must be rigged. Still... one more try couldn't hurt, right?</span>")
|
|
|
|
/obj/structure/cursed_money
|
|
name = "bag of money"
|
|
desc = "RICH! YES! YOU KNEW IT WAS WORTH IT! YOU'RE RICH! RICH! RICH!"
|
|
icon = 'icons/obj/storage.dmi'
|
|
icon_state = "moneybag"
|
|
anchored = FALSE
|
|
density = TRUE
|
|
|
|
/obj/structure/cursed_money/Initialize()
|
|
. = ..()
|
|
addtimer(CALLBACK(src, .proc/collapse), 600)
|
|
|
|
/obj/structure/cursed_money/proc/collapse()
|
|
visible_message("<span class='warning'>[src] falls in on itself, \
|
|
canvas rotting away and contents vanishing.</span>")
|
|
qdel(src)
|
|
|
|
/obj/structure/cursed_money/attack_hand(mob/living/user)
|
|
user.visible_message("<span class='warning'>[user] opens the bag and \
|
|
and removes a die. The bag then vanishes.</span>",
|
|
"<span class='boldwarning'>You open the bag...!</span>\n\
|
|
<span class='danger'>And see a bag full of dice. Confused, \
|
|
you take one... and the bag vanishes.</span>")
|
|
var/turf/T = get_turf(user)
|
|
var/obj/item/weapon/dice/d20/fate/one_use/critical_fail = new(T)
|
|
user.put_in_hands(critical_fail)
|
|
qdel(src)
|
|
|
|
|
|
|
|
/obj/effect/gluttony //Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through.
|
|
name = "gluttony's wall"
|
|
desc = "Only those who truly indulge may pass."
|
|
anchored = TRUE
|
|
density = TRUE
|
|
icon_state = "blob"
|
|
icon = 'icons/mob/blob.dmi'
|
|
color = rgb(145, 150, 0)
|
|
|
|
/obj/effect/gluttony/CanPass(atom/movable/mover, turf/target)//So bullets will fly over and stuff.
|
|
if(ishuman(mover))
|
|
var/mob/living/carbon/human/H = mover
|
|
if(H.nutrition >= NUTRITION_LEVEL_FAT)
|
|
H.visible_message("<span class='warning'>[H] pushes through [src]!</span>", "<span class='notice'>You've seen and eaten worse than this.</span>")
|
|
return 1
|
|
else
|
|
to_chat(H, "<span class='warning'>You're repulsed by even looking at [src]. Only a pig could force themselves to go through it.</span>")
|
|
if(istype(mover, /mob/living/simple_animal/hostile/morph))
|
|
return 1
|
|
else
|
|
return 0
|
|
|
|
|
|
|
|
/obj/structure/mirror/magic/pride //Pride's mirror: Used in the Pride ruin.
|
|
name = "pride's mirror"
|
|
desc = "Pride cometh before the..."
|
|
icon_state = "magic_mirror"
|
|
|
|
/obj/structure/mirror/magic/pride/curse(mob/user)
|
|
user.visible_message("<span class='danger'><B>The ground splits beneath [user] as [user.p_their()] hand leaves the mirror!</B></span>", \
|
|
"<span class='notice'>Perfect. Much better! Now <i>nobody</i> will be able to resist yo-</span>")
|
|
var/turf/T = get_turf(user)
|
|
T.ChangeTurf(/turf/open/chasm/straight_down)
|
|
var/turf/open/chasm/straight_down/C = T
|
|
C.drop(user)
|
|
|
|
//can't be bothered to do sloth right now, will make later
|
|
|
|
/obj/item/weapon/kitchen/knife/envy //Envy's knife: Found in the Envy ruin. Attackers take on the appearance of whoever they strike.
|
|
name = "envy's knife"
|
|
desc = "Their success will be yours."
|
|
icon = 'icons/obj/wizard.dmi'
|
|
icon_state = "render"
|
|
item_state = "render"
|
|
force = 18
|
|
throwforce = 10
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
hitsound = 'sound/weapons/bladeslice.ogg'
|
|
|
|
/obj/item/weapon/kitchen/knife/envy/afterattack(atom/movable/AM, mob/living/carbon/human/user, proximity)
|
|
..()
|
|
if(!proximity)
|
|
return
|
|
if(!istype(user))
|
|
return
|
|
if(ishuman(AM))
|
|
var/mob/living/carbon/human/H = AM
|
|
if(user.real_name != H.dna.real_name)
|
|
user.real_name = H.dna.real_name
|
|
H.dna.transfer_identity(user, transfer_SE=1)
|
|
user.updateappearance(mutcolor_update=1)
|
|
user.domutcheck()
|
|
user.visible_message("<span class='warning'>[user]'s appearance shifts into [H]'s!</span>", \
|
|
"<span class='boldannounce'>They think they're <i>sooo</i> much better than you. Not anymore, they won't.</span>")
|