From 7d7e1fc89182fa12da3bc04fc5e9f352fc4c1a11 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 29 Jul 2021 00:28:23 +0200 Subject: [PATCH] [MIRROR] Fix spectral instruments gifted probability (#7206) * Fix spectral instruments gifted probability (#60451) This fixes #60350. Spectral instruments are now gifted at the correct intended values. 90% chance of an instrument spawning, with a 1/3 chance of each instrument. * Fix spectral instruments gifted probability Co-authored-by: Tim --- code/datums/elements/spooky.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/datums/elements/spooky.dm b/code/datums/elements/spooky.dm index 5162dd3f2d0..3643bac10db 100644 --- a/code/datums/elements/spooky.dm +++ b/code/datums/elements/spooky.dm @@ -53,12 +53,13 @@ H.visible_message(span_warning("[H] has given up on life as a mortal.")) var/T = get_turf(H) if(too_spooky) - if(prob(30)) - new/obj/item/instrument/saxophone/spectral(T) - else if(prob(30)) - new/obj/item/instrument/trumpet/spectral(T) - else if(prob(30)) - new/obj/item/instrument/trombone/spectral(T) + if(prob(90)) + var/obj/item/instrument = pick( + /obj/item/instrument/saxophone/spectral, + /obj/item/instrument/trumpet/spectral, + /obj/item/instrument/trombone/spectral, + ) + new instrument(T) else to_chat(H, span_boldwarning("The spooky gods forgot to ship your instrument. Better luck next unlife.")) to_chat(H, span_boldnotice("You are the spooky skeleton!"))