mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Take wager off of your limbo win as it's pretty much infinite money right now
This commit is contained in:
@@ -81,26 +81,24 @@ public class LimboCommand : ICommand
|
|||||||
{
|
{
|
||||||
//you win
|
//you win
|
||||||
colorToUse = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value!;
|
colorToUse = settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value!;
|
||||||
newBalance = await Money.NewWagerAsync(gambler.Id, wager, wager * limboNumber, WagerGame.Limbo, ct: ctx);
|
var win = wager * limboNumber - wager;
|
||||||
var win = await (wager * limboNumber).FormatKasinoCurrencyAsync();
|
newBalance = await Money.NewWagerAsync(gambler.Id, wager, win, WagerGame.Limbo, ct: ctx);
|
||||||
await botInstance.SendChatMessageAsync($"[b][color={colorToUse}] {casinoNumbers[1]:N2}[/color][/b][br]{user.FormatUsername()}, you " +
|
await botInstance.SendChatMessageAsync($"[b][color={colorToUse}] {casinoNumbers[1]:N2}[/color][/b][br]{user.FormatUsername()}, you " +
|
||||||
$"[color={settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value}] won {win}![/color] " +
|
$"[color={settings[BuiltIn.Keys.KiwiFarmsGreenColor].Value}] won {await win.FormatKasinoCurrencyAsync()}![/color] " +
|
||||||
$"Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}!", true, autoDeleteAfter: cleanupDelay);
|
$"Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}!", true, autoDeleteAfter: cleanupDelay);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
if (limboNumber < casinoNumbers[1] / 2) colorToUse = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value!; //use red for the number if you're not close
|
||||||
else
|
else if (limboNumber > casinoNumbers[1] * 3 / 4)
|
||||||
{
|
colorToUse = "yellow"; //use yellow for the number if you're pretty close
|
||||||
if (limboNumber < casinoNumbers[1] / 2) colorToUse = settings[BuiltIn.Keys.KiwiFarmsRedColor].Value!; //use red for the number if you're not close
|
else colorToUse = "orange"; //use orange for mid range guess
|
||||||
else if (limboNumber > casinoNumbers[1] * 3 / 4)
|
//you lose
|
||||||
colorToUse = "yellow"; //use yellow for the number if you're pretty close
|
newBalance = await Money.NewWagerAsync(gambler.Id, wager, -wager, WagerGame.Limbo, ct: ctx);
|
||||||
else colorToUse = "orange"; //use orange for mid range guess
|
await botInstance.SendChatMessageAsync(
|
||||||
//you lose
|
$"[b][color={colorToUse}] {casinoNumbers[1]:N2}[/color][/b][br]{user.FormatUsername()}, you [color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value}]" +
|
||||||
newBalance = await Money.NewWagerAsync(gambler.Id, wager, -wager, WagerGame.Limbo, ct: ctx);
|
$"lost {await wager.FormatKasinoCurrencyAsync()}[/color]. Your balance is now: {await newBalance.FormatKasinoCurrencyAsync()}.",
|
||||||
await botInstance.SendChatMessageAsync(
|
true, autoDeleteAfter: cleanupDelay);
|
||||||
$"[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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user