mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
kasino shop updated all chat message id to uuid (#95)
* Update KasinoMines.cs * Update SlotsCommand.cs * Update MinesCommand.cs * Update PlinkoCommand.cs * Update PlinkoCommand.cs * Update PlinkoCommand.cs * Update PlanesCommand.cs * Update LimboCommand.cs * Update KenoCommand.cs * Update KasinoUserCommands.cs * Update KasinoRain.cs * Create KasinoShop.cs * Create ShopCommands.cs * Update BotServices.cs * Update MoneyDbModels.cs
This commit is contained in:
@@ -83,6 +83,14 @@ public class LimboCommand : ICommand
|
||||
RateLimitService.RemoveMostRecentEntry(user, this);
|
||||
return;
|
||||
}
|
||||
|
||||
//KasinoShop stuff -------------------------------------------------------------------------
|
||||
if (botInstance.BotServices.KasinoShop != null)
|
||||
{
|
||||
await GlobalShopFunctions.CheckProfile(botInstance, user, gambler);
|
||||
HOUSE_EDGE += botInstance.BotServices.KasinoShop.Gambler_Profiles[user.KfId].HouseEdgeModifier;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------
|
||||
|
||||
if (!arguments.TryGetValue("number", out var number))
|
||||
{
|
||||
@@ -110,6 +118,13 @@ public class LimboCommand : ICommand
|
||||
await botInstance.SendChatMessageAsync($"[b][color={colorToUse}] {casinoNumbers[1]:N2}[/color][/b][br]{user.FormatUsername()}, you " +
|
||||
$"[color={settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value}] won {await win.FormatKasinoCurrencyAsync()}![/color] " +
|
||||
$"Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}!", true, autoDeleteAfter: cleanupDelay);
|
||||
//Kasino Shop stuff----------------------------------------------------------------------
|
||||
if (botInstance.BotServices.KasinoShop != null)
|
||||
{
|
||||
await GlobalShopFunctions.CheckProfile(botInstance, user, gambler);
|
||||
await botInstance.BotServices.KasinoShop.ProcessWagerTracking(gambler, WagerGame.Limbo, wager, win, newBalance);
|
||||
}
|
||||
//---------------------------------------------------------------------------------------
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -123,6 +138,13 @@ public class LimboCommand : ICommand
|
||||
$"[b][color={colorToUse}] {casinoNumbers[1]:N2}[/color][/b][br]{user.FormatUsername()}, you [color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value}]" +
|
||||
$"lost {await wager.FormatKasinoCurrencyAsync()}[/color]. Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}.",
|
||||
true, autoDeleteAfter: cleanupDelay);
|
||||
//Kasino Shop stuff----------------------------------------------------------------------
|
||||
if (botInstance.BotServices.KasinoShop != null)
|
||||
{
|
||||
await GlobalShopFunctions.CheckProfile(botInstance, user, gambler);
|
||||
await botInstance.BotServices.KasinoShop.ProcessWagerTracking(gambler, WagerGame.Limbo, wager, -wager, newBalance);
|
||||
}
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user