Bug - Fixed to_coinmaster() returns string, not coinmaster!

Bale

Minion
coinmaster to_coinmaster( string )

Sadly the fucntion is actually: string to_coinmaster( string)
Ooops!

I was trying to run this very simple code:

Code:
foreach coin in $items[red class ring, blue class ring, white class ring, pink clay bead, purple clay bead, green clay bead]
	if(item_amount(coin) > 0) sell(to_coinmaster(coin.buyer), item_amount(coin), coin);

That would work easily if to_coinmaster() returned a coinmaster. It's a lot tougher and much less useful with the return value being a string.
 
Last edited:
Top