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