mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Dice have to be thrown (#882)
tweak: "Dice now have to be physically thrown to work."
This commit is contained in:
@@ -16,7 +16,8 @@
|
||||
icon_state = "d2020"
|
||||
sides = 20
|
||||
|
||||
/obj/item/weapon/dice/attack_self(mob/user as mob)
|
||||
/obj/item/weapon/dice/throw_impact(atom/hit_atom)
|
||||
..()
|
||||
var/result = rand(1, sides)
|
||||
var/comment = ""
|
||||
if(sides == 20 && result == 20)
|
||||
@@ -24,6 +25,4 @@
|
||||
else if(sides == 20 && result == 1)
|
||||
comment = "Ouch, bad luck."
|
||||
icon_state = "[name][result]"
|
||||
user.visible_message("<span class='notice'>[user] has thrown [src]. It lands on [result]. [comment]</span>", \
|
||||
"<span class='notice'>You throw [src]. It lands on a [result]. [comment]</span>", \
|
||||
"<span class='notice'>You hear [src] landing on a [result]. [comment]</span>")
|
||||
src.visible_message("<span class='notice'>\The [name] lands on [result]. [comment]</span>")
|
||||
|
||||
Reference in New Issue
Block a user