mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Renamed SetPKItem to SetPlayerKillItemID
Renamed AllowMobLoot to AllowPlayerLoot Renamed DepopCorpse (PC) to DepopPlayerCorpse Renamed GetPKItem to GetPlayerKillItem Renamed Corpse class variable 'orgname' to 'corpse_name' Renamed CompleteRezz to CompleteResurrection Renamed GetDBID to GetCorpseDBID Removed CorpseToServerSlot as it is unnecessary Removed ServerToCorpseSlot as it is unnecessary Reogrganized corpse.h header
This commit is contained in:
+5
-5
@@ -1606,7 +1606,7 @@ Corpse *EntityList::GetCorpseByDBID(uint32 dbid)
|
||||
{
|
||||
auto it = corpse_list.begin();
|
||||
while (it != corpse_list.end()) {
|
||||
if (it->second->GetDBID() == dbid)
|
||||
if (it->second->GetCorpseDBID() == dbid)
|
||||
return it->second;
|
||||
++it;
|
||||
}
|
||||
@@ -1660,7 +1660,7 @@ void EntityList::RemoveCorpseByDBID(uint32 dbid)
|
||||
{
|
||||
auto it = corpse_list.begin();
|
||||
while (it != corpse_list.end()) {
|
||||
if (it->second->GetDBID() == dbid) {
|
||||
if (it->second->GetCorpseDBID() == dbid) {
|
||||
safe_delete(it->second);
|
||||
free_ids.push(it->first);
|
||||
it = corpse_list.erase(it);
|
||||
@@ -1677,9 +1677,9 @@ int EntityList::RezzAllCorpsesByCharID(uint32 charid)
|
||||
auto it = corpse_list.begin();
|
||||
while (it != corpse_list.end()) {
|
||||
if (it->second->GetCharID() == charid) {
|
||||
RezzExp += it->second->GetRezzExp();
|
||||
RezzExp += it->second->GetRezExp();
|
||||
it->second->IsRezzed(true);
|
||||
it->second->CompleteRezz();
|
||||
it->second->CompleteResurrection();
|
||||
}
|
||||
++it;
|
||||
}
|
||||
@@ -2655,7 +2655,7 @@ int32 EntityList::DeleteNPCCorpses()
|
||||
auto it = corpse_list.begin();
|
||||
while (it != corpse_list.end()) {
|
||||
if (it->second->IsNPCCorpse()) {
|
||||
it->second->Depop();
|
||||
it->second->DepopNPCCorpse();
|
||||
x++;
|
||||
}
|
||||
++it;
|
||||
|
||||
Reference in New Issue
Block a user