mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
[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:
@@ -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!"))
|
||||
|
||||
Reference in New Issue
Block a user