Advertisement
dalvorsn

Untitled

Feb 10th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.37 KB | None | 0 0
  1.         std::string tmpStrValue = asLowerCaseString(strValue);     
  2.         if(tmpStrValue == "normal")
  3.              mType->race = RACE_NORMAL;
  4.         else if(tmpStrValue == "fire")     
  5.              mType->race = RACE_FIRE;
  6.         else if(tmpStrValue == "fight")                    
  7.              mType->race = RACE_FIGHTING;
  8.         else if(tmpStrValue == "water")
  9.              mType->race = RACE_WATER;
  10.         else if(tmpStrValue == "flying")
  11.              mType->race = RACE_FLYING;
  12.         else if(tmpStrValue == "grass")
  13.              mType->race = RACE_GRASS;
  14.         else if(tmpStrValue == "poison")
  15.              mType->race = RACE_POISON;
  16.         else if(tmpStrValue == "electric")
  17.              mType->race = RACE_ELECTRIC;
  18.         else if(tmpStrValue == "ground")
  19.              mType->race = RACE_GROUND;
  20.         else if(tmpStrValue == "psychic")
  21.              mType->race = RACE_PSYCHIC;
  22.         else if(tmpStrValue == "rock")
  23.              mType->race = RACE_ROCK;
  24.         else if(tmpStrValue == "ice")
  25.              mType->race = RACE_ICE;
  26.         else if(tmpStrValue == "bug")
  27.              mType->race = RACE_BUG;
  28.         else if(tmpStrValue == "dragon")
  29.              mType->race = RACE_DRAGON;
  30.         else if(tmpStrValue == "ghost")
  31.              mType->race = RACE_GHOST;
  32.         else if(tmpStrValue == "dark")
  33.              mType->race = RACE_DARK;
  34.         else if(tmpStrValue == "stell")
  35.              mType->race = RACE_STELL;
  36.         else
  37.             SHOW_XML_WARNING("Unknown race type " << strValue);
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement