ServUO Loot Generation

From UO Mayhem
Revision as of 00:28, 3 January 2024 by Basket (talk | contribs)
Jump to navigation Jump to search


Loot Generation Order

  1. BaseCreature.cs, OnBeforeDeath(Mobile from, ref int totalDamage, DamageType type)
    • calls GenerateLoot(false)
  1. BaseCreature.cs, GenerateLoot(bool spawning)
    • If !spawning then m_KillersLuck = killer/highest-damage-dealers luck
    • calls BaseCreature.cs GenerateLoot()
      • MOBILE.cs has public override void GenerateLoot() which will AddLoot() all LootPack
    • if m_Paragon (mobile is paragon) then add extra AddLoot() based on fame (from Meager to UltraRich)
  • BaseCreature.cs AddLoot(LootPack pack)