mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +01:00
Merge pull request #14405 from Kole6738/patch-4
Prevent flipping a coin if wired
This commit is contained in:
@@ -341,6 +341,9 @@
|
||||
|
||||
/obj/item/weapon/coin/attack_self(mob/user)
|
||||
if(cooldown < world.time - 15)
|
||||
if(string_attached) //does the coin have a wire attached
|
||||
user << "<span class='warning'>The coin won't flip very well with something attached!</span>" //Tell user it will not flip
|
||||
return //do not flip the coin
|
||||
var/coinflip = pick(sideslist)
|
||||
cooldown = world.time
|
||||
flick("coin_[cmineral]_flip", src)
|
||||
@@ -350,5 +353,5 @@
|
||||
sleep(15)
|
||||
if(loc == oldloc && user && !user.incapacitated())
|
||||
user.visible_message("[user] has flipped [src]. It lands on [coinflip].", \
|
||||
"<span class='notice'>You flip [src]. It lands on [coinflip].</span>", \
|
||||
"<span class='italics'>You hear the clattering of loose change.</span>")
|
||||
"<span class='notice'>You flip [src]. It lands on [coinflip].</span>", \
|
||||
"<span class='italics'>You hear the clattering of loose change.</span>")
|
||||
|
||||
Reference in New Issue
Block a user