fix: Hireables should not drop their pack (#1503)

This commit is contained in:
sp1r17 2023-09-17 19:24:59 -05:00 • committed by GitHub
parent 856db6a64c
commit 11e1b425d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -1762,7 +1762,11 @@ public abstract class BaseAI
}
m_Mobile.BeginDeleteTimer();
m_Mobile.DropBackpack();
if (m_Mobile.CanDrop)
{
m_Mobile.DropBackpack();
}
return true;
}

View file

@ -49,6 +49,9 @@ public partial class BaseHire : BaseCreature
public override bool IsBondable => false;
public override bool KeepsItemsOnDeath => true;
// Ensure we cannot drop if we are a hireable
public override bool CanDrop => false;
[AfterDeserialization]
private void AfterDeserialization()
{