mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
I was really overthinking this, but thanks AA, this works now
This commit is contained in:
+11
-11
@@ -200,20 +200,20 @@
|
||||
deckshuffle()
|
||||
|
||||
/obj/item/deck/verb/verb_shuffle()
|
||||
set category = "Object"
|
||||
set name = "Shuffle"
|
||||
set desc = "Shuffle the cards in the deck."
|
||||
set src in view(1)
|
||||
deckshuffle()
|
||||
if(!isobserver(usr))
|
||||
set category = "Object"
|
||||
set name = "Shuffle"
|
||||
set desc = "Shuffle the cards in the deck."
|
||||
set src in view(1)
|
||||
deckshuffle()
|
||||
|
||||
/obj/item/deck/proc/deckshuffle()
|
||||
var/mob/living/user = usr
|
||||
if(!isobserver(user))
|
||||
if(cooldown < world.time - 5 SECONDS)
|
||||
cards = shuffle(cards)
|
||||
user.visible_message("<span class='notice'>[user] shuffles [src].</span>")
|
||||
playsound(user, 'sound/items/cardshuffle.ogg', 50, 1)
|
||||
cooldown = world.time
|
||||
if(cooldown < world.time - 5 SECONDS)
|
||||
cards = shuffle(cards)
|
||||
user.visible_message("<span class='notice'>[user] shuffles [src].</span>")
|
||||
playsound(user, 'sound/items/cardshuffle.ogg', 50, 1)
|
||||
cooldown = world.time
|
||||
|
||||
|
||||
/obj/item/deck/MouseDrop(atom/over_object) // Code from Paper bin, so you can still pick up the deck
|
||||
|
||||
Reference in New Issue
Block a user