mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Maybe this will deal with the broken calculation?
This commit is contained in:
@@ -516,7 +516,11 @@ public static class Money
|
|||||||
Time = DateTimeOffset.UtcNow,
|
Time = DateTimeOffset.UtcNow,
|
||||||
Payout = payout,
|
Payout = payout,
|
||||||
}, ct);
|
}, ct);
|
||||||
gambler.NextVipLevelWagerRequirement = nextVipLevel.WagerRequirement;
|
var nextNextLevel = GetNextVipLevel(nextVipLevel.WagerRequirement + 1);
|
||||||
|
if (nextNextLevel != null)
|
||||||
|
{
|
||||||
|
gambler.NextVipLevelWagerRequirement = nextNextLevel.WagerRequirement;
|
||||||
|
}
|
||||||
await db.SaveChangesAsync(ct);
|
await db.SaveChangesAsync(ct);
|
||||||
await ModifyBalanceAsync(gamblerId, payout, TransactionSourceEventType.Bonus,
|
await ModifyBalanceAsync(gamblerId, payout, TransactionSourceEventType.Bonus,
|
||||||
$"VIP Level '{nextVipLevel.VipLevel.Icon} {nextVipLevel.VipLevel.Name}' Tier {nextVipLevel.Tier} level up bonus", ct: ct);
|
$"VIP Level '{nextVipLevel.VipLevel.Icon} {nextVipLevel.VipLevel.Name}' Tier {nextVipLevel.Tier} level up bonus", ct: ct);
|
||||||
|
|||||||
Reference in New Issue
Block a user