verb/View_Card_Changes()
set src in usr
set category = null
usr << "<br><i>If you don't see the window, it might be off the right-hand side of your screen. Try dragging it on to the screen.</i><br>"
usr.currency_item_changes(src)
return
currency_item_changes(obj/items/currency/I)
set hidden = 1
if(!I) return
if(I.c_change.len)
var/list/item_cards = list()
var/list/currency_item = list()
currency_item += I
var/j_fuse = 0
if("*JADEN FUSION*" in I.c_change)
j_fuse = 1
for(var/obj/cards/C in cards)
if(C.name in I.c_change)
item_cards += C
else if(j_fuse)
if(C.fusion) if(findtext(C.name,"HERO"))
item_cards += C
for(var/obj/cards/C in item_cards)
var/c_dup_check = 0
for(var/obj/cards/CC in item_cards)
if(C.name == CC.name)
c_dup_check++
if(c_dup_check > 1)
item_cards -= CC
if(!item_cards.len)
usr << "<i>Can not find any cards in your item's change list. Report this.</i>"
else
usr.Currency_Change(item_cards,,,currency_item,1)
return
Error example...
on item /obj/items/currency/character/fd/yusei
(Name is "Yusei Fudo")
Sorry, the following is not valid: Yusei-Fudo
usage: View-Card-Changes obj in inventory
Problem description:
So I'm having some issues with verbs attached to objects all of a sudden.
I recently updated to the beta build and im not sure if this is causing the problem or not because this code has not been changed in months and has never given me any trouble in the past.
I will use the View_Card_Changes on an object via right-clicking on it. And sporadically the verb will just fail. Same obj. Same server. Same session. I can use it, it works just fine, then 5 seconds later use it again and I'll get the error.
usage: View-Card-Changes obj in inventory
Given this error message, it looks like the command Dream Seeker was issued was literally "Yusei-Fudo", rather than the verb that you defined. Hmm.
I'm not convinced that the currency_item_changes proc itself is relevant, here. Maybe Currency_Change is the culprit?
Can you reproduce the issue if you comment out these lines?