Constants.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using Telegram.Bot.Types.Payments;
  4. // ReSharper disable UnreachableCode
  5. // ReSharper disable InconsistentNaming
  6. namespace MafiaTelegramBot.Resources
  7. {
  8. public static class Constants
  9. {
  10. public const bool DEBUG = true;
  11. public const int PLAYER_LIMITS_MIN = DEBUG ? 1 : 6;
  12. public const int MEMORY_CLEANER_INTERVAL = DEBUG ? 20 * 1000 : 30 * 60 * 1000;
  13. public const int MEMORY_CLEANER_PLAYERS_COUNT = DEBUG ? 1 : 6;
  14. public static readonly TimeSpan PLAYER_INACTIVE_INTERVAL = new(0, 40, 0);
  15. public const int MINUTES_UNTIL_DISSOLVE = 10;
  16. public const int MAX_SHOWING_ROOMS = 10;
  17. public const int TIME_TO_DECIDE = DEBUG ? 20*1000 : 30 * 1000;
  18. public const int ACTIVE_MAFIA_CHANCE = 30;
  19. public const int ACTIVE_VILLAGER_CHANCE = 50;
  20. public const int PLAYERS_TO_START_FAST_GAME = DEBUG ? 7 : 10;
  21. public const string SHOP_CURRENCY = "RUB";
  22. public static List<LabeledPrice> RANDOM_ROLE_PRICE = new()
  23. {
  24. new LabeledPrice {Label = "100 рублей", Amount = 10000}
  25. };
  26. public const bool ENABLE_AUTO_VOTING = !DEBUG;
  27. public const int FIRST_NIGHT_INTERVAL = DEBUG ? 1*1000 : 10 * 1000;
  28. public const int PUT_UP_VOTE_INTERVAL = DEBUG ? 20*1000 : 20 * 1000;
  29. public const int VOTE_KILL_INTERVAL = DEBUG ? 20*1000 : 20 * 1000;
  30. public const int NIGHT_ACTION_INTERVAL = DEBUG ? 20*1000 : 60 * 1000;
  31. public const int DEFENCE_INTERVAL = DEBUG ? 1*1000 : 30 * 1000;
  32. public const int DAY_SPEAK_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  33. public const int DISPATCH_SPEAK_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  34. public const int DISCUSSION_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  35. public const int ROOM_CODE_LENGTH = 6;
  36. public const int PUBLIC = 0;
  37. public const int PRIVATE = 1;
  38. public const int STANDARD = 0;
  39. public const int EXTENDED = 1;
  40. public const int NORMAL = 0;
  41. public const int RANKING = 1;
  42. }
  43. }