Erwan
- bug fix in JGE++ audio (improve HBL compatibility) - Added new rewards in story mode: random card, card (either by "name" or id), specific set - Story mode: added possibility to choose music, and bg for duel. -- See "01. Where it all begins" for examples of new features
This commit is contained in:
@@ -426,6 +426,12 @@ MTGCard * MTGAllCards::_(int index){
|
||||
MTGCard * MTGAllCards::getCardByName(string name){
|
||||
if (!name.size()) return NULL;
|
||||
if (name[0] == '#') return NULL;
|
||||
|
||||
int cardnb = atoi(name.c_str());
|
||||
if (cardnb){
|
||||
return getCardById(cardnb);
|
||||
}
|
||||
|
||||
std::transform(name.begin(), name.end(), name.begin(),::tolower );
|
||||
int setId = -1;
|
||||
size_t found = name.find(" (");
|
||||
|
||||
Reference in New Issue
Block a user