mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-06 15:42:06 +00:00
add more tests
This commit is contained in:
@@ -331,12 +331,10 @@ void CharacterComponent::UpdateXml(tinyxml2::XMLDocument& doc) {
|
||||
if (m_ClaimCodes[2] != 0) character->SetAttribute("co2", m_ClaimCodes[2]);
|
||||
if (m_ClaimCodes[3] != 0) character->SetAttribute("co3", m_ClaimCodes[3]);
|
||||
|
||||
// Tests have been written up to here
|
||||
|
||||
character->SetAttribute("ls", m_Uscore);
|
||||
// Custom attribute to keep track of reputation.
|
||||
character->SetAttribute("rpt", GetReputation());
|
||||
character->SetAttribute("stt", StatisticsToString().c_str()); // and also this already tested :)
|
||||
character->SetAttribute("stt", StatisticsToString().c_str());
|
||||
|
||||
// Set the zone statistics of the form <zs><s/> ... <s/></zs>
|
||||
auto zoneStatistics = character->FirstChildElement("zs");
|
||||
@@ -358,6 +356,7 @@ void CharacterComponent::UpdateXml(tinyxml2::XMLDocument& doc) {
|
||||
|
||||
character->LinkEndChild(zoneStatistics);
|
||||
|
||||
// Tests have been written up to here
|
||||
if (!m_LastRocketConfig.empty()) {
|
||||
std::string config = GeneralUtils::UTF16ToWTF8(m_LastRocketConfig);
|
||||
character->SetAttribute("lcbp", config.c_str());
|
||||
|
||||
Reference in New Issue
Block a user