Added the initial framework for the new Money system.

Includes
- 5 new tables: Gamblers, Transactions, Wagers, Exclusions, Perks
- Still heavily WIP and not ready to be enabled, no games present and a lot of missing functionality
- For now it's completely disabled until it's ready to be used.
This commit is contained in:
barelyprofessional
2025-08-20 14:59:09 -05:00
parent 8d100b013b
commit 6ca1cf055c
15 changed files with 1831 additions and 14 deletions

View File

@@ -936,9 +936,38 @@ public static class BuiltIn
Description = "Whether to respond to Bossman impersonations",
Default = "true",
ValueType = SettingValueType.Boolean,
Regex = "(true|false)"
Regex = BooleanRegex
},
new BuiltInSettingsModel
{
Key = Keys.MoneySymbolSuffix,
Description = "What is the symbol of the bot's currency when used as a suffix for an amount",
Default = "KKK",
ValueType = SettingValueType.Text
},
new BuiltInSettingsModel
{
Key = Keys.MoneySymbolPrefix,
Description = "What is the symbol of the bot's currency when used as a prefix for an amount",
Default = "KKK$",
ValueType = SettingValueType.Text
},
new BuiltInSettingsModel
{
Key = Keys.MoneyEnabled,
Description = "Whether the monetary system is enabled at all. " +
"If disabled, the bot won't answer any commands related to balance, transactions, gambling, etc.",
Default = "false",
ValueType = SettingValueType.Boolean,
Regex = BooleanRegex
},
new BuiltInSettingsModel
{
Key = Keys.MoneyInitialBalance,
Description = "Gambler's initial balance on creation",
Default = "100",
ValueType = SettingValueType.Text,
Regex = WholeNumberRegex
}
];
@@ -1048,5 +1077,6 @@ public static class BuiltIn
public static string MoneySymbolSuffix = "Money.SymbolSuffix";
public static string MoneySymbolPrefix = "Money.SymbolPrefix";
public static string MoneyEnabled = "Money.Enabled";
public static string MoneyInitialBalance = "Money.InitialBalance";
}
}