Faction Test 100.11.0.0

This commit is contained in:
Markus Isberg
2022-12-09 20:08:17 +02:00
parent e0c3754621
commit 1650735468
24 changed files with 210 additions and 457 deletions
@@ -240,6 +240,7 @@ namespace Barotrauma
public bool CanCharacterBuy()
{
if (DefaultPrice == null) { return false; }
if (!DefaultPrice.RequiresUnlock) { return true; }
return Character.Controlled is not null && Character.Controlled.HasStoreAccessForItem(this);
}