Dice have to be thrown (#882)

tweak: "Dice now have to be physically thrown to work."
This commit is contained in:
Bedshaped
2016-09-10 22:45:56 +03:00
committed by skull132
parent 2b789725e0
commit 0c7bc66c5f
2 changed files with 9 additions and 4 deletions
+3 -4
View File
@@ -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>")
+6
View File
@@ -0,0 +1,6 @@
author: Bedshaped
delete-after: True
changes:
- tweak: "Dice now have to be physically thrown to work."