There's a bounty for this right? i spent nearly two full days at this

This commit is contained in:
SandPoot
2021-10-05 18:10:32 -03:00
parent 59f33198f1
commit 5aa12b4716
270 changed files with 770 additions and 779 deletions
+4 -4
View File
@@ -214,11 +214,11 @@
result = show_radial_menu(user, src, possible_actions, require_near = TRUE, tooltips = TRUE)
switch(result)
if("Health")
card_datum.health = input(user, "What do you want health to be?", "Changing [src]'s health") as num|null
card_datum.health = tgui_input_num(user, "What do you want health to be?", "Changing [src]'s health", card_datum.health)
if("Attack")
card_datum.attack = input(user, "What do you want attack to be?", "Changing [src]'s attack") as num|null
card_datum.attack = tgui_input_num(user, "What do you want attack to be?", "Changing [src]'s attack", card_datum.attack)
if("Mana")
card_datum.mana_cost = input(user, "What do you want mana cost to be?", "Changing [src]'s mana cost") as num|null
card_datum.mana_cost = tgui_input_num(user, "What do you want mana cost to be?", "Changing [src]'s mana cost", card_datum.mana_cost)
user.visible_message("<span class='notice'>[user] changes [src]'s [result].</span>")
/obj/item/tcg_card/equipped(mob/user, slot, initial)
@@ -575,7 +575,7 @@
qdel(I)
if(istype(I, /obj/item/tcgcard_deck))
var/obj/item/tcgcard_deck/deck = I
var/named = input(user, "How will this deck be named? Leave this field empty if you don't want to save this deck.")
var/named = tgui_input_text(user, "How will this deck be named? Leave this field empty if you don't want to save this deck.")
if(named)
decks[named] = list()
for(var/obj/item/tcg_card/card in deck.contents)