Improved Fake PMC offer count fluctuations #527

Added fake PMC offer count index to `RagfairOfferHolder` and made use of it when checking if offer count is over desired count
This commit is contained in:
Chomp
2025-08-02 11:22:27 +01:00
parent 0f1bea6151
commit 08815da10d
4 changed files with 75 additions and 40 deletions
@@ -45,4 +45,19 @@ public static class RagfairOfferExtensions
return false;
}
/// <summary>
/// Was this offer created by a fake player
/// </summary>
/// <param name="offer"></param>
/// <returns></returns>
public static bool IsFakePlayerOffer(this RagfairOffer offer)
{
if (offer.CreatedBy is not null)
{
return offer.CreatedBy == OfferCreator.FakePlayer;
}
return false;
}
}