void load_attributes_cfg() { load_packaged_cfgs( "attributes.cfg", "Attribute", load_attribute_entry ); Core::gamestate.numAttributes = static_cast<unsigned int>( Core::gamestate.attributes.size() ); Core::gamestate.pAttrStrength = Attribute::FindAttribute( "Strength" ); Core::gamestate.pAttrIntelligence = Attribute::FindAttribute( "Intelligence" ); Core::gamestate.pAttrDexterity = Attribute::FindAttribute( "Dexterity" ); Core::gamestate.pAttrParry = Attribute::FindAttribute( "Parry" ); Core::gamestate.pAttrTactics = Attribute::FindAttribute( "Tactics" ); passert_always( Core::gamestate.pAttrStrength ); passert_always( Core::gamestate.pAttrIntelligence ); passert_always( Core::gamestate.pAttrDexterity ); passert_always( Core::gamestate.pAttrParry ); passert_always( Core::gamestate.pAttrTactics ); }
void load_vitals_cfg() { checkpoint( "load_vitals_cfg: load_packed_cfgs" ); load_packaged_cfgs( "vitals.cfg", "Vital", load_vital_entry ); gamestate.numVitals = static_cast<unsigned int>( gamestate.vitals.size() ); checkpoint( "load_vitals_cfg: find Life vital" ); gamestate.pVitalLife = FindVital( "Life" ); checkpoint( "load_vitals_cfg: find Stamina vital" ); gamestate.pVitalStamina = FindVital( "Stamina" ); checkpoint( "load_vitals_cfg: find Mana vital" ); gamestate.pVitalMana = FindVital( "Mana" ); checkpoint( "load_vitals_cfg: verify vital vitals" ); passert_always( gamestate.pVitalLife ); passert_always( gamestate.pVitalStamina ); passert_always( gamestate.pVitalMana ); }
void load_uoskills_cfg() { load_packaged_cfgs( "uoskills.cfg", "Skill", load_skill_entry ); }
void load_aux_services() { load_packaged_cfgs( "auxsvc.cfg", "AuxService", load_auxservice_entry ); }
void load_uoclient_cfg() { load_packaged_cfgs( "uoclient.cfg", "general protocol listener", load_uoclient_entry ); }