mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[12069] Cleanup comment style
This commit is contained in:
parent
5efb3867f5
commit
835d1c7479
205 changed files with 2835 additions and 2835 deletions
|
|
@ -137,7 +137,7 @@ void WorldSession::HandleAutostoreLootItemOpcode(WorldPacket& recv_data)
|
|||
if (qitem)
|
||||
{
|
||||
qitem->is_looted = true;
|
||||
//freeforall is 1 if everyone's supposed to get the quest item.
|
||||
// freeforall is 1 if everyone's supposed to get the quest item.
|
||||
if (item->freeforall || loot->GetPlayerQuestItems().size() == 1)
|
||||
player->SendNotifyLootItemRemoved(lootSlot);
|
||||
else
|
||||
|
|
@ -147,20 +147,20 @@ void WorldSession::HandleAutostoreLootItemOpcode(WorldPacket& recv_data)
|
|||
{
|
||||
if (ffaitem)
|
||||
{
|
||||
//freeforall case, notify only one player of the removal
|
||||
// freeforall case, notify only one player of the removal
|
||||
ffaitem->is_looted = true;
|
||||
player->SendNotifyLootItemRemoved(lootSlot);
|
||||
}
|
||||
else
|
||||
{
|
||||
//not freeforall, notify everyone
|
||||
// not freeforall, notify everyone
|
||||
if (conditem)
|
||||
conditem->is_looted = true;
|
||||
loot->NotifyItemRemoved(lootSlot);
|
||||
}
|
||||
}
|
||||
|
||||
//if only one person is supposed to loot the item, then set it to looted
|
||||
// if only one person is supposed to loot the item, then set it to looted
|
||||
if (!item->freeforall)
|
||||
item->is_looted = true;
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ void WorldSession::HandleLootMoneyOpcode(WorldPacket& /*recv_data*/)
|
|||
{
|
||||
pLoot->NotifyMoneyRemoved();
|
||||
|
||||
if (!guid.IsItem() && player->GetGroup()) //item can be looted only single player
|
||||
if (!guid.IsItem() && player->GetGroup()) // item can be looted only single player
|
||||
{
|
||||
Group* group = player->GetGroup();
|
||||
|
||||
|
|
@ -373,22 +373,22 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
{
|
||||
go->SetLootState(GO_READY);
|
||||
}
|
||||
else // not have more uses
|
||||
else // not have more uses
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
}
|
||||
else // 100% chance until min uses
|
||||
else // 100% chance until min uses
|
||||
go->SetLootState(GO_READY);
|
||||
}
|
||||
else // max uses already
|
||||
else // max uses already
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
}
|
||||
else // not vein
|
||||
else // not vein
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
}
|
||||
else if (go->GetGoType() == GAMEOBJECT_TYPE_FISHINGHOLE)
|
||||
{
|
||||
// The fishing hole used once more
|
||||
go->AddUse(); // if the max usage is reached, will be despawned at next tick
|
||||
go->AddUse(); // if the max usage is reached, will be despawned at next tick
|
||||
if (go->GetUseCount() >= urand(go->GetGOInfo()->fishinghole.minSuccessOpens, go->GetGOInfo()->fishinghole.maxSuccessOpens))
|
||||
{
|
||||
go->SetLootState(GO_JUST_DEACTIVATED);
|
||||
|
|
@ -503,7 +503,7 @@ void WorldSession::DoLootRelease(ObjectGuid lguid)
|
|||
}
|
||||
}
|
||||
|
||||
//Player is not looking at loot list, he doesn't need to see updates on the loot list
|
||||
// Player is not looking at loot list, he doesn't need to see updates on the loot list
|
||||
loot->RemoveLooter(player->GetObjectGuid());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue