OpenPerpetuum / PerpetuumServer

The Open Perpetuum Project's fork of the Perpetuum Standalone Server
https://openperpetuum.com
Other
44 stars 21 forks source link

Bound max loot can on loot split to top hostiles #424

Open MikeJeffers opened 2 years ago

MikeJeffers commented 2 years ago

https://github.com/OpenPerpetuum/PerpetuumServer/blob/Development/src/Perpetuum/Zones/NpcSystem/Npc.cs#L1002-L1011 It is possible that this could be a very expensive transaction if there are countless many on the threat table of a boss. This tends to really lock up tables when all these entities are divided and created into many loot cans which then need to be sent to all players (which will also mutually see other loot cans as they are all visible to other units).

A safe upper limit would be a good MVP (64? 32?) Anything other than none.. Even better if the loot is given to the top participants if these maximum is reached that would be even better. Sort the Hostiles by Threat value to indicate this.