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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user