Merge pull request #14358 from faaaay/loaded-dice

Adds loaded dice + a custom item
This commit is contained in:
Heroman3003
2023-01-22 11:35:53 +10:00
committed by GitHub
5 changed files with 66 additions and 2 deletions
@@ -1556,3 +1556,17 @@
playsound(src, 'sound/items/drop/plushie.ogg', 25, 0)
visible_message("[src] says, \"[pokephrase]\"")
last_message = world.time
//Yeehawguvnah - Cephyra
/obj/item/weapon/dice/loaded/ceph
name = "engraved d6"
desc = "A die with six sides. It's fairly well-made, made of an unclear black material with silver pips. If you were to touch it, your hands tingle slightly as though from static. On closer inspection, it's finely engraved with curving, fractal patterns."
icon_state = "ceph_d66"
/obj/item/weapon/dice/loaded/ceph/rollDice(mob/user, silent)
..()
icon_state = "ceph_d6[result]"
/obj/item/weapon/dice/loaded/ceph/New()
icon_state = "ceph_d6[rand(1,sides)]"