change the way star gain works
This commit is contained in:
parent
9cfa7df215
commit
77ed4e05ec
4 changed files with 12 additions and 12 deletions
|
@ -2,10 +2,10 @@
|
||||||
"Back": "Back",
|
"Back": "Back",
|
||||||
"Place": "Place",
|
"Place": "Place",
|
||||||
"EarnStar": "Earn <i star>",
|
"EarnStar": "Earn <i star>",
|
||||||
"ReallyEarnStar": "Are you sure that you want to earn a <i star>? This will remove all placed attractions and reset your <i ticket>!",
|
"ReallyEarnStar": "Cashing in your <i ticket> now would earn you {0}<i star>. It will also remove all placed attractions and reset your <i ticket>. Are you sure?",
|
||||||
"Yes": "Yes",
|
"Yes": "Yes",
|
||||||
"Okay": "Okay",
|
"Okay": "Okay",
|
||||||
"RequiresTickets": "Requires {0}<i ticket>",
|
"RequiresTickets": "1<i star> requires {0}<i ticket>",
|
||||||
"Tutorial1": "Hi! Welcome to Touchy Tickets. To start the game, simply tap the ticket booth to sell a <i ticket>. Start by racking up 50<i ticket>!",
|
"Tutorial1": "Hi! Welcome to Touchy Tickets. To start the game, simply tap the ticket booth to sell a <i ticket>. Start by racking up 50<i ticket>!",
|
||||||
"Tutorial2": "Great! Now, you can buy your first attraction. Access the menu on the right by swiping and purchase a carousel.",
|
"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.",
|
"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 <i ticket> manually by tapping, but the longer you play, the more <i ticket> you'll be able to accumulate automatically.",
|
"Tutorial5": "You'll still be able to sell <i ticket> manually by tapping, but the longer you play, the more <i ticket> you'll be able to accumulate automatically.",
|
||||||
"Tutorial6": "While the game is closed or in the background, you'll sell <i ticket> at half the regular speed.",
|
"Tutorial6": "While the game is closed or in the background, you'll sell <i ticket> at half the regular speed.",
|
||||||
"Tutorial7": "Looks like you finally sold enough <i ticket> to exchange them for a <i star>! Once you're ready, access the menu on the left by swiping and earn a <i star>.",
|
"Tutorial7": "Looks like you finally sold enough <i ticket> to exchange them for a <i star>! Once you're ready, access the menu on the left by swiping and earn a <i star>.",
|
||||||
"Tutorial8": "Now that you have a <i star>, you also have to restart the game. But don't worry - <i star> give you the ability to purchase some great permanent upgrades for your attractions.",
|
"Tutorial8": "Now that you have a <i star>, you also have to restart the game. But don't worry: <i star> give you the ability to purchase some great permanent upgrades for your attractions.",
|
||||||
"Tutorial9": "Now, you can rack up more <i ticket> even faster to earn more <i star> to rack up more <i ticket>... you get the point. Have fun!",
|
"Tutorial9": "Now, you can rack up more <i ticket> even faster to earn more <i star> to rack up more <i ticket>... you get the point. Have fun!",
|
||||||
"Carousel": "Carousel",
|
"Carousel": "Carousel",
|
||||||
"FoodCourt": "Food Court",
|
"FoodCourt": "Food Court",
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace TouchyTickets {
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigInteger GetStarPrice() {
|
public BigInteger GetStarPrice() {
|
||||||
return 1000000 * BigInteger.Pow(10, this.TimesRestarted / 2);
|
return 1000000 * BigInteger.Pow(10, this.TimesRestarted);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ namespace TouchyTickets {
|
||||||
OnDrawn = (e2, time, batch, alpha) => batch.Draw(batch.GetBlankTexture(), e2.DisplayArea, Color.Black * 0.35F)
|
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));
|
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")) {
|
panel.AddChild(new Button(Anchor.AutoLeft, new Vector2(0.5F, 30), Localization.Get("Back")) {
|
||||||
OnPressed = e2 => this.uiSystem.Remove(e2.Root.Name)
|
OnPressed = e2 => this.uiSystem.Remove(e2.Root.Name)
|
||||||
});
|
});
|
||||||
|
@ -189,10 +189,10 @@ namespace TouchyTickets {
|
||||||
OnPressed = e2 => {
|
OnPressed = e2 => {
|
||||||
this.uiSystem.Remove(e2.Root.Name);
|
this.uiSystem.Remove(e2.Root.Name);
|
||||||
var game = GameImpl.Instance;
|
var game = GameImpl.Instance;
|
||||||
|
game.Stars += (int) (game.Tickets / game.GetStarPrice());
|
||||||
game.TimesRestarted++;
|
game.TimesRestarted++;
|
||||||
game.Stars++;
|
|
||||||
game.Map = new ParkMap(game.Map.Width, game.Map.Height);
|
|
||||||
game.Tickets = 0;
|
game.Tickets = 0;
|
||||||
|
game.Map = new ParkMap(game.Map.Width, game.Map.Height);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.uiSystem.Add("ReallyEarnStarBox", infoBox);
|
this.uiSystem.Add("ReallyEarnStarBox", infoBox);
|
||||||
|
@ -210,7 +210,7 @@ namespace TouchyTickets {
|
||||||
PositionOffset = new Vector2(0, 1),
|
PositionOffset = new Vector2(0, 1),
|
||||||
ChildPadding = new Vector2(4),
|
ChildPadding = new Vector2(4),
|
||||||
OnPressed = e => {
|
OnPressed = e => {
|
||||||
GameImpl.Instance.Stars--;
|
GameImpl.Instance.Stars -= upgrade.Price;
|
||||||
GameImpl.Instance.AppliedUpgrades.Add(upgrade);
|
GameImpl.Instance.AppliedUpgrades.Add(upgrade);
|
||||||
upgrade.OnApplied();
|
upgrade.OnApplied();
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,11 @@ namespace TouchyTickets {
|
||||||
public class Upgrade {
|
public class Upgrade {
|
||||||
|
|
||||||
public static readonly Dictionary<string, Upgrade> Upgrades = new Dictionary<string, Upgrade>();
|
public static readonly Dictionary<string, Upgrade> Upgrades = new Dictionary<string, Upgrade>();
|
||||||
public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 0.5F, Ui.Texture[0, 3]);
|
public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 1, Ui.Texture[0, 3]);
|
||||||
public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 1, Ui.Texture[1, 3]));
|
|
||||||
public static readonly Upgrade FerrisWheelModifier = Register(new Upgrade("FerrisWheelModifier", 1, Ui.Texture[2, 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 FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 3]));
|
||||||
public static readonly Upgrade ManualRideModifier = Register(new Upgrade("ManualRideModifier", 1, Ui.Texture[4, 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 string Name;
|
||||||
public readonly int Price;
|
public readonly int Price;
|
||||||
|
|
Loading…
Reference in a new issue