engine/items/source/InitialItemSelector.cpp
// Pick the racial item ID that corresponds to the provided race ID.
// If it doesn't exist, return an empty string.
Pick the racial item ID that corresponds to the provided race ID.
If it doesn't exist, return an empty string.
Pick the racial item ID that corresponds to the provided race ID . If it doesn ' t exist return an empty string .
pair<string, uint> InitialItemSelector::get_racial_item_details(const string& race_id, const InitialItem& initial_item) const
{
  pair<string, uint> race_item_details;
  map<string, pair<string, Dice>> racial_ids = initial_item.get_racial_item_ids();
  map<string, pair<string, Dice>>::const_iterator i_it = racial_ids.find(race_id);
  if (i_it != racial_ids.end())
  {
    race_item_details.first = i_it->second.first;
    race_item_details.second = RNG::dice(i_it->second.second);
  }
  return race_item_details;
}
pair < string , uint > InitialItemSelector :: get_racial_item_details ( const string & race_id , const InitialItem & initial_item ) const { pair < string , uint > race_item_details ; map < string , pair < string , Dice > > racial_ids = initial_item . get_racial_item_ids ( ) ; map < string , pair < string , Dice > > :: const_iterator i_it = racial_ids . find ( race_id ) ; if ( i_it != racial_ids . end ( ) ) { race_item_details . first = i_it -> second . first ; race_item_details . second = RNG :: dice ( i_it -> second . second ) ; } return race_item_details ; }
Pick the racial item ID that corresponds to the provided race ID.
Pick the racial item ID that corresponds to the provided race ID .