- Fix issue 291 (cantbeblockedby segfault)
- Fix some issues with pricing
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-03-13 09:34:20 +00:00
parent fa0d98988d
commit e7bb2caf29
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ int PriceList::setPrice(int cardId, int price){
return price;
}
int PriceList::getSellPrice(int cardid){
return getPurchasePrice(cardid) / 2;
return getPrice(cardid);
}
float PriceList::difficultyScalar(float price, int cardid){
float badluck = (float)(abs(cardid + randomKey) % 201) / 100; //Float between 0 and 2.