DeathLoot

This commit is contained in:
dingo
2025-12-17 10:33:22 -05:00
parent d47ede3ed9
commit 959590b030
9 changed files with 1874 additions and 0 deletions
+25
View File
@@ -3,6 +3,23 @@ using Server.Data.Enums;
namespace Server.Game.Dungeon;
/// <summary>
/// Loot carried by a mob from killing a player
/// </summary>
public class CarriedLoot
{
public ulong VictimCharacterId { get; set; }
public string VictimName { get; set; } = "";
public List<CarriedLootItem> Items { get; set; } = new();
public long Gold { get; set; }
}
public class CarriedLootItem
{
public int ItemDefinitionId { get; set; }
public int Quantity { get; set; }
}
/// <summary>
/// Runtime instance of a mob in a dungeon
/// </summary>
@@ -34,6 +51,14 @@ public class MobInstance
public int SpriteWidth { get; set; } = 32;
public int SpriteHeight { get; set; } = 32;
public string TintColor { get; set; } = "#ffffff";
// Carried loot from player kills
public List<CarriedLoot> CarriedPlayerLoot { get; set; } = new();
/// <summary>
/// Check if this mob is carrying loot from player kills
/// </summary>
public bool HasCarriedLoot => CarriedPlayerLoot.Count > 0;
}
public enum MobState