mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
#resetaa now covers the function of #resetaa and #refundaa
#resetaa will wipe all AA data, refund the spent points into the available points and send character to character select properly Removed #refundaa Removed a lot of debug code for blob conversion Changed status logging for loads/saves to Debug category
This commit is contained in:
+3
-7
@@ -478,7 +478,6 @@ void Client::ReportConnectingState() {
|
||||
}
|
||||
|
||||
bool Client::SaveAA(){
|
||||
clock_t t = std::clock(); /* Function timer start */
|
||||
int first_entry = 0;
|
||||
std::string rquery;
|
||||
/* Save Player AA */
|
||||
@@ -515,7 +514,6 @@ bool Client::SaveAA(){
|
||||
}
|
||||
}
|
||||
auto results = database.QueryDatabase(rquery);
|
||||
LogFile->write(EQEMuLog::Status, "Issuing Client AA Save... CID: %i Took %f seconds", character_id, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -523,8 +521,6 @@ bool Client::Save(uint8 iCommitNow) {
|
||||
if(!ClientDataLoaded())
|
||||
return false;
|
||||
|
||||
clock_t t = std::clock(); /* Function timer start */
|
||||
|
||||
/* Wrote current basics to PP for saves */
|
||||
m_pp.x = x_pos;
|
||||
m_pp.y = y_pos;
|
||||
@@ -584,7 +580,6 @@ bool Client::Save(uint8 iCommitNow) {
|
||||
SaveTaskState(); /* Save Character Task */
|
||||
database.SaveCharacterData(this->CharacterID(), this->AccountID(), &m_pp, &m_epp); /* Save Character Data */
|
||||
|
||||
LogFile->write(EQEMuLog::Status, "Client::Save %i, done... Took %f seconds", character_id, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -7968,7 +7963,7 @@ void Client::RefundAA() {
|
||||
for(int j = 0; j < cur; j++) {
|
||||
m_pp.aapoints += curaa->cost + (curaa->cost_inc * j);
|
||||
refunded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -7980,8 +7975,9 @@ void Client::RefundAA() {
|
||||
}
|
||||
|
||||
if(refunded) {
|
||||
SaveAA();
|
||||
Save();
|
||||
Kick();
|
||||
// Kick();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user