Browse Source

Mini changes

Tigran 3 years ago
parent
commit
9f04f478f6

+ 2 - 2
CardCollector/Commands/CallbackQuery/ConfirmExchange.cs

@@ -19,9 +19,9 @@ namespace CardCollector.Commands.CallbackQuery
             else
             {
                 User.Cash.Gems -= module.EnteredExchangeSum;
-                User.Cash.Coins += module.EnteredExchangeSum * 150;
+                User.Cash.Coins += module.EnteredExchangeSum * 10;
                 await MessageController.EditMessage(User,
-                    $"{Messages.you_got} {module.EnteredExchangeSum * 150}{Text.coin} {Text.per} {module.EnteredExchangeSum}{Text.gem}");
+                    $"{Messages.you_got} {module.EnteredExchangeSum * 10}{Text.coin} {Text.per} {module.EnteredExchangeSum}{Text.gem}");
             }
         }
 

+ 1 - 1
CardCollector/Commands/CallbackQuery/SetExchangeSum.cs

@@ -18,7 +18,7 @@ namespace CardCollector.Commands.CallbackQuery
             await MessageController.EditMessage(User,
                 $"{Messages.exchange_mesage}" +
                 $"\n{Messages.gems_exchange_count} {module.EnteredExchangeSum}{Text.gem}" +
-                $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 150}{Text.coin}" +
+                $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 10}{Text.coin}" +
                 $"\n\n{Messages.confirm_exchange}",
                 Keyboard.BuyCoinsKeyboard(true));
         }

+ 2 - 2
CardCollector/Commands/CallbackQuery/SetGemsSum.cs

@@ -14,10 +14,10 @@ namespace CardCollector.Commands.CallbackQuery
         public override async Task Execute()
         {
             var count = int.Parse(CallbackData.Split('=')[1]);
-            var label = string.Format(Text.gems_title, count, count/50);
+            var label = string.Format(Text.gems_title, count, count / 100 * 69);
             var description = string.Format(Text.gems_description, count);
             await MessageController.SendInvoice(User, label, description, Command.buy_gems_item, 
-                new[] {new LabeledPrice(label, count*2)}, Keyboard.BuyGemsKeyboard(count));
+                new[] {new LabeledPrice(label, count*69)}, Keyboard.BuyGemsKeyboard(count), Currency.RUB);
         }
 
         public SetGemsSum() { }

+ 2 - 2
CardCollector/Commands/Message/EnterGemsExchange.cs

@@ -21,7 +21,7 @@ namespace CardCollector.Commands.Message
                 await MessageController.EditMessage(User,
                     $"{Messages.exchange_mesage}" +
                     $"\n{Messages.gems_exchange_count} {module.EnteredExchangeSum}{Text.gem}" +
-                    $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 150}{Text.coin}" +
+                    $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 10}{Text.coin}" +
                     $"\n\n{Messages.please_enter_integer}",
                     Keyboard.BuyCoinsKeyboard());
             else
@@ -30,7 +30,7 @@ namespace CardCollector.Commands.Message
                 await MessageController.EditMessage(User,
                     $"{Messages.exchange_mesage}" +
                     $"\n{Messages.gems_exchange_count} {module.EnteredExchangeSum}{Text.gem}" +
-                    $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 150}{Text.coin}" +
+                    $"\n{Messages.coins_exchange_count} {module.EnteredExchangeSum * 10}{Text.coin}" +
                     $"\n\n{Messages.confirm_exchange}",
                     Keyboard.BuyCoinsKeyboard());
                 Queue.Remove(User.Id);

+ 1 - 1
CardCollector/Commands/PreCheckoutQuery/BuyGems.cs

@@ -17,7 +17,7 @@ namespace CardCollector.Commands.PreCheckoutQuery
         public override async Task Execute()
         {
             await Bot.Client.AnswerPreCheckoutQueryAsync(PreCheckoutQueryId);
-            var gemsCount = 50 * Amount / 100;
+            var gemsCount = Amount / 69;
             User.Cash.Gems += gemsCount;
             await MessageController.EditMessage(User, Messages.thanks_for_buying_gems);
             if (User.Settings[UserSettingsEnum.ExpGain])

+ 1 - 1
CardCollector/Commands/PreCheckoutQueryCommand.cs

@@ -18,7 +18,7 @@ namespace CardCollector.Commands
             {
                 // Тестовая покупка
                 new Test(),
-                // Покупка 50 алмазов
+                // Покупка алмазов
                 new BuyGems(),
             };
 

+ 1 - 1
CardCollector/DataBase/Entity/PackEntity.cs

@@ -19,6 +19,6 @@ namespace CardCollector.DataBase.Entity
         [Column("opened_count"), MaxLength(127)] public long OpenedCount { get; set; } = 0;
 
         [NotMapped] public int PriceCoins => Id == 1 ? 1000 : -1;
-        [NotMapped] public int PriceGems => Id == 1 ? 80 : 100;
+        [NotMapped] public int PriceGems => 100/*Id == 1 ? 100 : 100*/;
     }
 }

+ 4 - 4
CardCollector/Resources/Keyboard.cs

@@ -33,9 +33,9 @@ namespace CardCollector.Resources
             {
                 new[]
                 {
-                    InlineKeyboardButton.WithCallbackData($"300{Text.coin}", $"{Command.set_exchange_sum}=2"),
-                    InlineKeyboardButton.WithCallbackData($"600{Text.coin}", $"{Command.set_exchange_sum}=4"),
-                    InlineKeyboardButton.WithCallbackData($"900{Text.coin}", $"{Command.set_exchange_sum}=6")
+                    InlineKeyboardButton.WithCallbackData($"300{Text.coin}", $"{Command.set_exchange_sum}=30"),
+                    InlineKeyboardButton.WithCallbackData($"600{Text.coin}", $"{Command.set_exchange_sum}=60"),
+                    InlineKeyboardButton.WithCallbackData($"900{Text.coin}", $"{Command.set_exchange_sum}=90")
                 }
             };
             if (confirmButton) keyboard.Add(new[] {InlineKeyboardButton.WithCallbackData(Text.confirm_exchange,
@@ -176,7 +176,7 @@ namespace CardCollector.Resources
         {
             return new InlineKeyboardMarkup(new[]
             {
-                new[] {InlineKeyboardButton.WithPayment($"{Text.buy} {count}{Text.gem} {Text.per} ${count/50}")},
+                new[] {InlineKeyboardButton.WithPayment($"{Text.buy} {count}{Text.gem} {Text.per} ₽{count * 69 / 100}")},
                 new[] {InlineKeyboardButton.WithCallbackData(Text.back, Command.back)},
             });
         }

+ 2 - 2
CardCollector/Resources/Messages.Designer.cs

@@ -124,7 +124,7 @@ namespace CardCollector.Resources {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Покупка алмазов производится по курсу $1 = 50💎
+        ///   Looks up a localized string similar to Покупка алмазов производится по курсу ₽69 = 100💎
         ///
         ///Выберите одну из опций ниже:.
         /// </summary>
@@ -486,7 +486,7 @@ namespace CardCollector.Resources {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Покупка монет производится за алмазы, 1💎 = 150💰..
+        ///   Looks up a localized string similar to Покупка монет производится за алмазы, 1💎 = 10💰..
         /// </summary>
         internal static string exchange_mesage {
             get {

+ 2 - 2
CardCollector/Resources/Messages.resx

@@ -234,7 +234,7 @@
         <value>Список доступных специальных предложений:</value>
     </data>
     <data name="exchange_mesage" xml:space="preserve">
-        <value>Покупка монет производится за алмазы, 1💎 = 150💰.</value>
+        <value>Покупка монет производится за алмазы, 1💎 = 10💰.</value>
     </data>
     <data name="confirm_exchange" xml:space="preserve">
         <value>Подтвердите обмен:</value>
@@ -332,7 +332,7 @@ https://telegra.ph/help-11-04-4</value>
         <value>Выберите желаемое количество монет:</value>
     </data>
     <data name="buy_gems" xml:space="preserve">
-        <value>Покупка алмазов производится по курсу $1 = 50💎
+        <value>Покупка алмазов производится по курсу ₽69 = 100💎
 
 Выберите одну из опций ниже:</value>
     </data>

+ 1 - 1
CardCollector/StickerEffects/EffectTranslations.Designer.cs

@@ -106,7 +106,7 @@ namespace CardCollector.StickerEffects {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to За каждый такой стикер в коллекции, вы будете получать 1 случайный стикер 1-го тира каждые 3 дня!.
+        ///   Looks up a localized string similar to За каждый такой стикер в коллекции, вы будете получать 1 случайный стикер 1-го тира каждые 2 дня!.
         /// </summary>
         internal static string _6 {
             get {

+ 1 - 1
CardCollector/StickerEffects/EffectTranslations.resx

@@ -34,6 +34,6 @@
         <value>За каждый такой стикер в коллекции, вы будете получать 1 случайный стикер 2-го тира каждые 3 дня!</value>
     </data>
     <data name="6" xml:space="preserve">
-        <value>За каждый такой стикер в коллекции, вы будете получать 1 случайный стикер 1-го тира каждые 3 дня!</value>
+        <value>За каждый такой стикер в коллекции, вы будете получать 1 случайный стикер 1-го тира каждые 2 дня!</value>
     </data>
 </root>

+ 1 - 1
CardCollector/StickerEffects/RandomSticker1Tier3Day.cs → CardCollector/StickerEffects/RandomSticker1Tier2Day.cs

@@ -10,7 +10,7 @@ namespace CardCollector.StickerEffects
 {
     public class RandomSticker1Tier3Day
     {
-        public static int Interval = 3;
+        public static int Interval = 2;
 
         public static async Task<int> GetStickersCount(Dictionary<string, UserStickerRelationEntity> stickers)
         {