add: timely now has an option in gambling whether to use no protection, captcha, or button.

fix: grpc api fix for dashy
This commit is contained in:
Kwoth
2024-11-04 14:35:59 +00:00
parent b5d1469df1
commit 96c9b47da2
5 changed files with 88 additions and 15 deletions

View File

@@ -144,9 +144,9 @@ public sealed class GamblingConfigService : ConfigServiceBase<GamblingConfig>
ConfigPrinters.ToString,
val => val >= 0);
AddParsedProp("timely.btn",
gs => gs.Timely.HasButton,
bool.TryParse,
AddParsedProp("timely.prot",
gs => gs.Timely.ProtType,
ConfigParsers.InsensitiveEnum,
ConfigPrinters.ToString);
Migrate();
@@ -189,11 +189,11 @@ public sealed class GamblingConfigService : ConfigServiceBase<GamblingConfig>
});
}
if (data.Version < 10)
if (data.Version < 11)
{
ModifyConfig(c =>
{
c.Version = 10;
c.Version = 11;
});
}
}