[MIRROR] Fluff item (#9494)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2024-11-17 06:06:05 -07:00
committed by GitHub
parent 48244f5e04
commit 4ad41869ea
4 changed files with 72 additions and 5 deletions

View File

@@ -657,6 +657,12 @@
ckeywhitelist = list("john.wayne9392")
character_name = list("Harmony Pretchl")
/datum/gear/fluff/vox_dylo_pills
path = /obj/item/storage/pill_bottle/dylovene
display_name = "Dylovene pill bottle"
ckeywhitelist = list("jparker890")
character_name = list("Krey-Timinine")
/datum/gear/fluff/koyo_box
path = /obj/item/storage/box/fluff/koyoakimomi
display_name = "Koyo's Box"
@@ -1173,6 +1179,13 @@
ckeywhitelist = list("satinisle")
character_name = list("Parriz Tavakdavi")
/datum/gear/fluff/dark_tarot
path = /obj/item/deck/dark_tarot
display_name = "dark rose tarot deck"
ckeywhitelist = list("satinisle")
character_name = list("Millie Orlen")
// T CKEYS
/datum/gear/fluff/ascian_medal
path = /obj/item/clothing/accessory/medal/silver/unity/tabiranth

View File

@@ -211,8 +211,8 @@
..()
/obj/item/deck/attack_self()
shuffle()
/obj/item/deck/attack_self(mob/user)
shuffle(user)
/obj/item/deck/verb/verb_shuffle()
@@ -220,10 +220,9 @@
set name = "Shuffle"
set desc = "Shuffle the cards in the deck."
set src in view(1)
shuffle()
shuffle(usr)
/obj/item/deck/proc/shuffle()
var/mob/living/user = usr
/obj/item/deck/proc/shuffle(mob/user)
if (cooldown < world.time - 10) // 15 ticks cooldown
var/list/newcards = list()
while(cards.len)

View File

@@ -41,3 +41,58 @@
cooldown = world.time
else
return
///Fluff item, using a separate item rather than a subitem to customise New()
/obj/item/deck/dark_tarot
name = "dark rose tarot deck"
desc = "A limited edition tarot deck for the scene-girl inclined!"
icon_state = "dark_tarot"
/obj/item/deck/dark_tarot/New()
..()
var/datum/playingcard/P
for(var/name in list("fool","magician","high priestess","empress","emperor","hierophant","lovers","chariot","strength","hermit","wheel of fortune","justice","hanged man","death","temperance","devil","tower","star","moon","sun","judgement","world","white dragon with blue eyes","charred lizard","dark lotus","bash","reverse","rules","acid","abyss","maw"))
P = new()
P.name = "[name]"
if(name == "high priestess")
P.card_icon = "dark_high_priestess"
else if(name == "wheel of fortune")
P.card_icon = "dark_wheel"
else if(name == "hanged man")
P.card_icon = "dark_hanged"
else if(name == "white dragon with blue eyes")
P.card_icon = "dark_dragon"
else if(name == "charred lizard")
P.card_icon = "dark_lizard"
else if(name == "dark lotus")
P.card_icon = "dark_lotus"
else
P.card_icon = "dark_[name]"
P.back_icon = "dark_back_tarot"
cards += P
for(var/suit in list("wands","pentacles","cups","swords"))
for(var/number in list("ace","two","three","four","five","six","seven","eight","nine","ten","page","knight","queen","king"))
P = new()
P.name = "[number] of [suit]"
P.card_icon = "dark_[suit]"
P.back_icon = "dark_back_tarot"
cards += P
/obj/item/deck/dark_tarot/shuffle(mob/user)
if (cooldown < world.time - 10)
var/list/newcards = list()
while(cards.len)
var/datum/playingcard/P = pick(cards)
P.name = replacetext(P.name," reversed","")
if(prob(50))
P.name += " reversed"
newcards += P
cards -= P
cards = newcards
playsound(src, 'sound/items/cardshuffle.ogg', 50, 1)
user.visible_message("\The [user] shuffles [src].")
cooldown = world.time
else
return

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB