Make some coins lucky. (#33886)

* Make some minted coins lucky.

* Added shiny overlay for potentially lucky coins.
This commit is contained in:
TJ
2023-02-10 15:51:43 -05:00
committed by GitHub
parent 14a91bf4b3
commit ccfc9de9db
2 changed files with 16 additions and 0 deletions

View File

@@ -398,6 +398,17 @@
pixel_x = rand(-8, 8) * PIXEL_MULTIPLIER
pixel_y = rand(-8, 0) * PIXEL_MULTIPLIER
add_component(/datum/component/coinflip)
if (prob(1))
// Something about this coin stands out...
luckiness_validity = LUCKINESS_WHEN_GENERAL_RECURSIVE
overlays += image('icons/obj/items.dmi', "shine")
if (prob(20))
// Sometimes it's very lucky!
luckiness = 500 * credits
else
// But most of the time, it's just our imagination.
luckiness = 0
/obj/item/weapon/coin/recycle(var/datum/materials/rec)
if(material==null)
@@ -534,6 +545,11 @@
else
..()
/obj/item/weapon/coin/examine(mob/user)
..()
if(!isnull(luckiness))
to_chat(user, "<span class='notice'>Something is [pick("peculiar", "exceptional", "interesting")] about it...</span>")
///////////////////////////////////////////////////////////
/obj/item/weapon/coin/pomf

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 112 KiB