Updated Gambling module

This commit is contained in:
Toastie (DCS Team) 2024-09-21 14:40:47 +12:00
parent a079333d8c
commit 3c1b994ab5
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
5 changed files with 5 additions and 5 deletions

View file

@ -111,7 +111,7 @@ public sealed class AnimalRace : IDisposable
_ = OnStarted?.Invoke(this); _ = OnStarted?.Invoke(this);
_ = Task.Run(async () => _ = Task.Run(async () =>
{ {
var rng = new NadekoRandom(); var rng = new EllieRandom();
while (!_users.All(x => x.Progress >= 60)) while (!_users.All(x => x.Progress >= 60))
{ {
foreach (var user in _users) foreach (var user in _users)

View file

@ -54,7 +54,7 @@ public sealed partial class GamblingConfig : ICloneable<GamblingConfig>
[Comment(""" [Comment("""
Amount of currency selfhosters will get PER pledged dollar CENT. Amount of currency selfhosters will get PER pledged dollar CENT.
1 = 100 currency per $. Used almost exclusively on public nadeko. 1 = 100 currency per $. Used almost exclusively on public ellie.
""")] """)]
public decimal PatreonCurrencyPerCent { get; set; } = 1; public decimal PatreonCurrencyPerCent { get; set; } = 1;

View file

@ -126,7 +126,7 @@ public class GamblingService : IEService, IReadyExecutor
} }
} }
private static readonly TypedKey<EconomyResult> _ecoKey = new("nadeko:economy"); private static readonly TypedKey<EconomyResult> _ecoKey = new("ellie:economy");
private static readonly SemaphoreSlim _timelyLock = new(1, 1); private static readonly SemaphoreSlim _timelyLock = new(1, 1);

View file

@ -72,7 +72,7 @@ public partial class Gambling
[Cmd] [Cmd]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
[UserPerm(GuildPerm.ManageMessages)] [UserPerm(GuildPerm.ManageMessages)]
#if GLOBAL_NADEKO #if GLOBAL_ELLIE
[OwnerOnly] [OwnerOnly]
#endif #endif
public async Task GenCurrency() public async Task GenCurrency()

View file

@ -34,7 +34,7 @@ public class RollDuelGame
private readonly ICurrencyService _cs; private readonly ICurrencyService _cs;
private readonly Timer _timeoutTimer; private readonly Timer _timeoutTimer;
private readonly NadekoRandom _rng = new(); private readonly EllieRandom _rng = new();
private readonly SemaphoreSlim _locker = new(1, 1); private readonly SemaphoreSlim _locker = new(1, 1);
public RollDuelGame( public RollDuelGame(