mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Tweaks to greed ruin and die of fate (#20737)
* Tweaks to greed ruin and die of fate * Delay between effects * moved and updaated traitor items * More tweaks to traitor item list * Update code/game/objects/items/weapons/dice.dm Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> * Sirryan review * Lets decrease the money even more * experimental KA instead of alien pistol * emp dmg for machines when interacting * brainloss * Code improvment * forcewall removal * Turning into a list --------- Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
//These objects are used in the cardinal sin-themed ruins (i.e. Gluttony, Pride...)
|
||||
|
||||
// Greed
|
||||
#define WIN_PROB 5
|
||||
|
||||
/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."
|
||||
@@ -8,7 +10,6 @@
|
||||
icon_state = "slots-off"
|
||||
anchored = TRUE
|
||||
density = TRUE
|
||||
var/win_prob = 5
|
||||
|
||||
/obj/structure/cursed_slot_machine/attack_hand(mob/user)
|
||||
interact(user)
|
||||
@@ -21,7 +22,11 @@
|
||||
return
|
||||
|
||||
in_use = TRUE
|
||||
user.adjustCloneLoss(20)
|
||||
if(!ismachineperson(user))
|
||||
user.adjustCloneLoss(20)
|
||||
else
|
||||
to_chat(user, "<span class='userdanger'>Your brain is sparking!</span>")
|
||||
user.adjustBrainLoss(15)
|
||||
if(user.stat)
|
||||
to_chat(user, "<span class='userdanger'>No... just one more try...</span>")
|
||||
user.gib()
|
||||
@@ -29,14 +34,14 @@
|
||||
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 = "slots-on"
|
||||
playsound(src, 'sound/lavaland/cursed_slot_machine.ogg', 50, 0)
|
||||
playsound(src, 'sound/lavaland/cursed_slot_machine.ogg', 50)
|
||||
addtimer(CALLBACK(src, PROC_REF(determine_victor), user), 50)
|
||||
|
||||
/obj/structure/cursed_slot_machine/proc/determine_victor(mob/living/user)
|
||||
icon_state = "slots-off"
|
||||
in_use = FALSE
|
||||
if(prob(win_prob))
|
||||
playsound(src, 'sound/lavaland/cursed_slot_machine_jackpot.ogg', 50, 0)
|
||||
if(prob(WIN_PROB))
|
||||
playsound(src, 'sound/lavaland/cursed_slot_machine_jackpot.ogg', 50)
|
||||
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>")
|
||||
@@ -45,6 +50,8 @@
|
||||
if(user)
|
||||
to_chat(user, "<span class='boldwarning'>Fucking machine! Must be rigged. Still... one more try couldn't hurt, right?</span>")
|
||||
|
||||
#undef WIN_PROB
|
||||
|
||||
/obj/structure/cursed_money
|
||||
name = "bag of money"
|
||||
desc = "RICH! YES! YOU KNEW IT WAS WORTH IT! YOU'RE RICH! RICH! RICH!"
|
||||
|
||||
Reference in New Issue
Block a user