whitevo
Feeling good, thats what I do.
TFS 1.0 races
But you can make custom races fairly easily in LUA
Code:
if ((attr = monsterNode.attribute("race"))) {
std::string tmpStrValue = asLowerCaseString(attr.as_string());
uint16_t tmpInt = pugi::cast<uint16_t>(attr.value());
if (tmpStrValue == "venom" || tmpInt == 1) {
mType->race = RACE_VENOM;
} else if (tmpStrValue == "blood" || tmpInt == 2) {
mType->race = RACE_BLOOD;
} else if (tmpStrValue == "undead" || tmpInt == 3) {
mType->race = RACE_UNDEAD;
} else if (tmpStrValue == "fire" || tmpInt == 4) {
mType->race = RACE_FIRE;
} else if (tmpStrValue == "energy" || tmpInt == 5) {
mType->race = RACE_ENERGY;
} else {
std::cout << "[Warning - Monsters::loadMonster] Unknown race type " << attr.as_string() << ". " << file << std::endl;
}
}
Code:
--________________--
--- MONSTER RACES --
--================--
monsterRaces = {
["white deer"] = "beast",
["deer"] = "beast",
["rabbit"] = "beast",
["bear"] = "beast",
["dummy"] = "undead",
["wolf"] = "beast",
["boar"] = "beast",
["squirrel"] = "beast",
["bandit mage"] = "human",
["bandit knight"] = "human",
["bandit druid"] = "human",
["bandit hunter"] = "human",
["training pole"] = "object",
["archanos"] = "human",
["cyclops"] = "human",
["big daddy"] = "human",
}