mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Make some coins lucky. (#33886)
* Make some minted coins lucky. * Added shiny overlay for potentially lucky coins.
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user