Mob changes

This commit is contained in:
dingo
2026-01-20 15:11:05 -05:00
parent 749a71c098
commit d24479597c
3 changed files with 224 additions and 35 deletions
+8 -1
View File
@@ -156,9 +156,16 @@ public class MobInstance
// 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;
// Death loot - generated when mob dies, lootable by players
public List<LootDrop>? DeathLoot { get; set; }
public long DeathLootGold { get; set; }
/// <summary>Check if this mob has loot available</summary>
public bool HasDeathLoot => DeathLoot != null && (DeathLoot.Count > 0 || DeathLootGold > 0);
/// <summary>Current HP as percentage (0-1)</summary>
public float HpPercent => MaxHealth > 0 ? (float)Health / MaxHealth : 0f;