diff --git a/TouchyTickets/Content/Localization/Localization.json b/TouchyTickets/Content/Localization/Localization.json index 436e6f1..ae65e80 100644 --- a/TouchyTickets/Content/Localization/Localization.json +++ b/TouchyTickets/Content/Localization/Localization.json @@ -2,10 +2,10 @@ "Back": "Back", "Place": "Place", "EarnStar": "Earn ", - "ReallyEarnStar": "Are you sure that you want to earn a ? This will remove all placed attractions and reset your !", + "ReallyEarnStar": "Cashing in your now would earn you {0}. It will also remove all placed attractions and reset your . Are you sure?", "Yes": "Yes", "Okay": "Okay", - "RequiresTickets": "Requires {0}", + "RequiresTickets": "1 requires {0}", "Tutorial1": "Hi! Welcome to Touchy Tickets. To start the game, simply tap the ticket booth to sell a . Start by racking up 50!", "Tutorial2": "Great! Now, you can buy your first attraction. Access the menu on the right by swiping and purchase a carousel.", "Tutorial3": "This is your park map. The area inside the fence is what belongs to you. Place the carousel by dragging it to the perfect location and then pressing the button below.", @@ -13,7 +13,7 @@ "Tutorial5": "You'll still be able to sell manually by tapping, but the longer you play, the more you'll be able to accumulate automatically.", "Tutorial6": "While the game is closed or in the background, you'll sell at half the regular speed.", "Tutorial7": "Looks like you finally sold enough to exchange them for a ! Once you're ready, access the menu on the left by swiping and earn a .", - "Tutorial8": "Now that you have a , you also have to restart the game. But don't worry - give you the ability to purchase some great permanent upgrades for your attractions.", + "Tutorial8": "Now that you have a , you also have to restart the game. But don't worry: give you the ability to purchase some great permanent upgrades for your attractions.", "Tutorial9": "Now, you can rack up more even faster to earn more to rack up more ... you get the point. Have fun!", "Carousel": "Carousel", "FoodCourt": "Food Court", diff --git a/TouchyTickets/GameImpl.cs b/TouchyTickets/GameImpl.cs index 170e819..56363e1 100644 --- a/TouchyTickets/GameImpl.cs +++ b/TouchyTickets/GameImpl.cs @@ -83,7 +83,7 @@ namespace TouchyTickets { } public BigInteger GetStarPrice() { - return 1000000 * BigInteger.Pow(10, this.TimesRestarted / 2); + return 1000000 * BigInteger.Pow(10, this.TimesRestarted); } } diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index b843359..5e9278f 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -181,7 +181,7 @@ namespace TouchyTickets { OnDrawn = (e2, time, batch, alpha) => batch.Draw(batch.GetBlankTexture(), e2.DisplayArea, Color.Black * 0.35F) }; var panel = infoBox.AddChild(new Panel(Anchor.Center, new Vector2(0.8F), Vector2.Zero, true)); - panel.AddChild(new Paragraph(Anchor.AutoLeft, 1, Localization.Get("ReallyEarnStar"))); + panel.AddChild(new Paragraph(Anchor.AutoLeft, 1, string.Format(Localization.Get("ReallyEarnStar"), GameImpl.Instance.Tickets / GameImpl.Instance.GetStarPrice()))); panel.AddChild(new Button(Anchor.AutoLeft, new Vector2(0.5F, 30), Localization.Get("Back")) { OnPressed = e2 => this.uiSystem.Remove(e2.Root.Name) }); @@ -189,10 +189,10 @@ namespace TouchyTickets { OnPressed = e2 => { this.uiSystem.Remove(e2.Root.Name); var game = GameImpl.Instance; + game.Stars += (int) (game.Tickets / game.GetStarPrice()); game.TimesRestarted++; - game.Stars++; - game.Map = new ParkMap(game.Map.Width, game.Map.Height); game.Tickets = 0; + game.Map = new ParkMap(game.Map.Width, game.Map.Height); } }); this.uiSystem.Add("ReallyEarnStarBox", infoBox); @@ -210,7 +210,7 @@ namespace TouchyTickets { PositionOffset = new Vector2(0, 1), ChildPadding = new Vector2(4), OnPressed = e => { - GameImpl.Instance.Stars--; + GameImpl.Instance.Stars -= upgrade.Price; GameImpl.Instance.AppliedUpgrades.Add(upgrade); upgrade.OnApplied(); } diff --git a/TouchyTickets/Upgrade.cs b/TouchyTickets/Upgrade.cs index 050880d..0a4d9e6 100644 --- a/TouchyTickets/Upgrade.cs +++ b/TouchyTickets/Upgrade.cs @@ -8,11 +8,11 @@ namespace TouchyTickets { public class Upgrade { public static readonly Dictionary Upgrades = new Dictionary(); - public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 0.5F, Ui.Texture[0, 3]); - public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 1, Ui.Texture[1, 3])); + public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 1, Ui.Texture[0, 3]); public static readonly Upgrade FerrisWheelModifier = Register(new Upgrade("FerrisWheelModifier", 1, Ui.Texture[2, 3])); - public static readonly Upgrade RollerCoasterModifier = Register(new Upgrade("RollerCoasterModifier", 1, Ui.Texture[3, 3])); - public static readonly Upgrade ManualRideModifier = Register(new Upgrade("ManualRideModifier", 1, Ui.Texture[4, 3])); + public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 3])); + public static readonly Upgrade RollerCoasterModifier = Register(new Upgrade("RollerCoasterModifier", 2, Ui.Texture[3, 3])); + public static readonly Upgrade ManualRideModifier = Register(new Upgrade("ManualRideModifier", 2, Ui.Texture[4, 3])); public readonly string Name; public readonly int Price;