mob/proc/Show_Cards()
for(var/obj/Card/C in src.client.screen)
src.client.screen-=C
var/x_loc=4
var/tx_loc=32
var/ty_loc=16
var/y_loc=1
for(var/obj/Card/C in src.Hand)
x_loc++
tx_loc-=6
C.screen_loc="[x_loc]:[tx_loc],[y_loc]:[ty_loc]"
src.client.screen+=C
return
Problem description:when duelign and u draw 2 of the same cards it leaves a space and makes one dissapear were u cant see it is there a way for u to have as many of the same cards in your hand showing at once if so someone please help
I will really appreciate it
~Grand~
for instance if you have
when the input() pops up it will only say "1" and "2"
but that doesn't mean that all the other 2's aren't there. But messes up things like:
if(src.favnum == numbers[3])
since numbers[3] is stacked with numbers[2] you'll get a nice (runtime) error about wrong input type or something around there.
Anyway, as for fixing your problem. All I can suggest is change the name of the card based on the location in the deck for instance:
That works as far as I tested. Try it out and see if you can get it to work with your thing. As for quality of coding, who knows I made it pretty fast and oh well. =P upgrade it if you can and just make yourself a better code then if its not up to your par.