| 155 | |
| 156 | |
| 157 | void AddToMap(const AString & a_Name, const AString & a_Value) |
| 158 | { |
| 159 | AStringVector Split = StringSplit(a_Value, ":"); |
| 160 | if (Split.size() == 1) |
| 161 | { |
| 162 | Split = StringSplit(a_Value, "^"); |
| 163 | } |
| 164 | if (Split.empty()) |
| 165 | { |
| 166 | return; |
| 167 | } |
| 168 | short ItemType = (short)atoi(Split[0].c_str()); |
| 169 | short ItemDamage = (Split.size() > 1) ? (short)atoi(Split[1].c_str()) : -1; |
| 170 | m_Map[a_Name] = std::make_pair(ItemType, ItemDamage); |
| 171 | } |
| 172 | } ; |
| 173 | |
| 174 |
nothing calls this directly
no test coverage detected