[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 <timothymtorres@gmail.com>
This commit is contained in:
SkyratBot
2021-07-28 23:28:23 +01:00
committed by GitHub
co-authored by Tim
parent f43d3334b2
commit 7d7e1fc891
+7 -6
View File
@@ -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!"))