Jeck - Basic set metadata support. Also a minor improvement to WGuiImage.

* Metadata is currently only used in exactly one place: the set's "Pretty Name" is displayed when the set is first unlocked. 
* WGuiImage now has a function to set scaling.
This commit is contained in:
wagic.jeck
2009-11-18 09:27:24 +00:00
parent 2f327edb6a
commit 37ad16d90e
16 changed files with 334 additions and 113 deletions

View File

@@ -43,22 +43,22 @@ int PriceList::getPrice(int cardId){
char rarity = collection->getCardById(cardId)->getRarity();
switch(rarity){
case Constants::RARITY_M:
return 3000;
return Constants::PRICE_1M;
break;
case Constants::RARITY_R:
return 500;
return Constants::PRICE_1R;
break;
case Constants::RARITY_U:
return 100;
return Constants::PRICE_1U;
break;
case Constants::RARITY_C:
return 20;
return Constants::PRICE_1C;
break;
case Constants::RARITY_L:
return 5;
return Constants::PRICE_1L;
break;
default:
return 20;
return Constants::PRICE_1C;
break;
}