mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 11:07:46 +01:00
You can now flip coins,AKA the D2
This commit is contained in:
@@ -150,3 +150,14 @@
|
||||
string_attached = null
|
||||
user << "\blue You detach the string from the coin."
|
||||
else ..()
|
||||
|
||||
/obj/item/weapon/coin/attack_self(mob/user as mob)
|
||||
var/result = rand(1, sides)
|
||||
var/comment = ""
|
||||
if(result == 1)
|
||||
comment = "tails"
|
||||
else if(result == 2)
|
||||
comment = "heads"
|
||||
user.visible_message("<span class='notice'>[user] has thrown [src]. It lands on [comment]! </span>", \
|
||||
"<span class='notice'>You throw [src]. It lands on [comment]! </span>", \
|
||||
"<span class='notice'>You hear [src] landing on [comment]! </span>")
|
||||
|
||||
Reference in New Issue
Block a user