Merge pull request #820 from nolt/feature-bots
(cherry picked from commit b10de0645a869485fbb5771a739abd06b5708c2d)
This commit is contained in:
@@ -34,6 +34,14 @@ internal sealed class ZenConsumptionHandler
|
||||
/// <returns><c>true</c> if the player can continue; <c>false</c> if insufficient Zen.</returns>
|
||||
public async ValueTask<bool> DeductZenAsync()
|
||||
{
|
||||
// Bots are exempt from the PC-Cafe fee: they don't accumulate Zen fast enough
|
||||
// to cover it and would otherwise go bankrupt and stop. Human offline-leveling
|
||||
// players (IsBot == false) keep paying as before.
|
||||
if (this._player.Account?.IsBot == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (DateTime.UtcNow - this._lastPayTimestamp < this._configuration.PayInterval)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user