Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string tmpStrValue = asLowerCaseString(strValue);
- if(tmpStrValue == "normal")
- mType->race = RACE_NORMAL;
- else if(tmpStrValue == "fire")
- mType->race = RACE_FIRE;
- else if(tmpStrValue == "fight")
- mType->race = RACE_FIGHTING;
- else if(tmpStrValue == "water")
- mType->race = RACE_WATER;
- else if(tmpStrValue == "flying")
- mType->race = RACE_FLYING;
- else if(tmpStrValue == "grass")
- mType->race = RACE_GRASS;
- else if(tmpStrValue == "poison")
- mType->race = RACE_POISON;
- else if(tmpStrValue == "electric")
- mType->race = RACE_ELECTRIC;
- else if(tmpStrValue == "ground")
- mType->race = RACE_GROUND;
- else if(tmpStrValue == "psychic")
- mType->race = RACE_PSYCHIC;
- else if(tmpStrValue == "rock")
- mType->race = RACE_ROCK;
- else if(tmpStrValue == "ice")
- mType->race = RACE_ICE;
- else if(tmpStrValue == "bug")
- mType->race = RACE_BUG;
- else if(tmpStrValue == "dragon")
- mType->race = RACE_DRAGON;
- else if(tmpStrValue == "ghost")
- mType->race = RACE_GHOST;
- else if(tmpStrValue == "dark")
- mType->race = RACE_DARK;
- else if(tmpStrValue == "stell")
- mType->race = RACE_STELL;
- else
- SHOW_XML_WARNING("Unknown race type " << strValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement