added modifier placement upgrade
This commit is contained in:
parent
28550a8edf
commit
731cc1e727
7 changed files with 37 additions and 9 deletions
|
@ -73,6 +73,12 @@
|
||||||
"TapIncrease2Description": "Erhöht den <i ticket>-Verkauf durch Tippen auf 10.",
|
"TapIncrease2Description": "Erhöht den <i ticket>-Verkauf durch Tippen auf 10.",
|
||||||
"TapIncrease3": "Hyper Tap",
|
"TapIncrease3": "Hyper Tap",
|
||||||
"TapIncrease3Description": "Erhöht den <i ticket>-Verkauf durch Tippen auf 50.",
|
"TapIncrease3Description": "Erhöht den <i ticket>-Verkauf durch Tippen auf 50.",
|
||||||
|
"ModifierIncrease1": "Modifiziert",
|
||||||
|
"ModifierIncrease1Description": "Sorgt dafür, dass 3 Modifikationen gleichzeitig platziert werden.",
|
||||||
|
"ModifierIncrease2": "Mehr Modifiziert",
|
||||||
|
"ModifierIncrease2Description": "Sorgt dafür, dass 5 Modifikationen gleichzeitig platziert werden.",
|
||||||
|
"ModifierIncrease3": "Meist Modifiziert",
|
||||||
|
"ModifierIncrease3Description": "Sorgt dafür, dass 10 Modifikationen gleichzeitig platziert werden.",
|
||||||
"FoodCourtModifier": "Leckere Leckereien",
|
"FoodCourtModifier": "Leckere Leckereien",
|
||||||
"FoodCourtModifierDescription": "Verdoppelt Ticketverkäufe für alle Attraktionen neben Fressmeilen.",
|
"FoodCourtModifierDescription": "Verdoppelt Ticketverkäufe für alle Attraktionen neben Fressmeilen.",
|
||||||
"FerrisWheelModifier": "Enge Gondeln",
|
"FerrisWheelModifier": "Enge Gondeln",
|
||||||
|
|
|
@ -68,11 +68,17 @@
|
||||||
"MapSize5": "Biggestest Park",
|
"MapSize5": "Biggestest Park",
|
||||||
"MapSize5Description": "Increases your park's buildable area to the maximum. Existing attractions are not removed.",
|
"MapSize5Description": "Increases your park's buildable area to the maximum. Existing attractions are not removed.",
|
||||||
"TapIncrease1": "Super Tap",
|
"TapIncrease1": "Super Tap",
|
||||||
"TapIncrease1Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 5",
|
"TapIncrease1Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 5.",
|
||||||
"TapIncrease2": "Mega Tap",
|
"TapIncrease2": "Mega Tap",
|
||||||
"TapIncrease2Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 10",
|
"TapIncrease2Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 10.",
|
||||||
"TapIncrease3": "Hyper Tap",
|
"TapIncrease3": "Hyper Tap",
|
||||||
"TapIncrease3Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 50",
|
"TapIncrease3Description": "Increases the amount of <i ticket> gained by tapping the ticket booth to 50.",
|
||||||
|
"ModifierIncrease1": "Modified",
|
||||||
|
"ModifierIncrease1Description": "Increases the amount of ride modifiers placed at once to 3.",
|
||||||
|
"ModifierIncrease2": "Modified More",
|
||||||
|
"ModifierIncrease2Description": "Increases the amount of ride modifiers placed at once to 5.",
|
||||||
|
"ModifierIncrease3": "Modified Most",
|
||||||
|
"ModifierIncrease3Description": "Increases the amount of ride modifiers placed at once to 10.",
|
||||||
"FoodCourtModifier": "Tasty Treats",
|
"FoodCourtModifier": "Tasty Treats",
|
||||||
"FoodCourtModifierDescription": "Doubles <i ticket> sales for all attractions adjacent to food courts.",
|
"FoodCourtModifierDescription": "Doubles <i ticket> sales for all attractions adjacent to food courts.",
|
||||||
"FerrisWheelModifier": "Crowded Pods",
|
"FerrisWheelModifier": "Crowded Pods",
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.4 KiB |
|
@ -32,7 +32,7 @@ namespace TouchyTickets {
|
||||||
protected override void LoadContent() {
|
protected override void LoadContent() {
|
||||||
base.LoadContent();
|
base.LoadContent();
|
||||||
Options.Load();
|
Options.Load();
|
||||||
|
|
||||||
// start the load sequence
|
// start the load sequence
|
||||||
Ui.SetupUiSystem(this.UiSystem);
|
Ui.SetupUiSystem(this.UiSystem);
|
||||||
CoroutineHandler.Start(Ui.DisplaySplash(this.LoadGame));
|
CoroutineHandler.Start(Ui.DisplaySplash(this.LoadGame));
|
||||||
|
@ -109,6 +109,9 @@ namespace TouchyTickets {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GetBuyableStars() {
|
public int GetBuyableStars() {
|
||||||
|
#if DEBUG
|
||||||
|
return 3;
|
||||||
|
#endif
|
||||||
return Math.Min(3, (int) (this.Tickets / this.GetStarPrice()));
|
return Math.Min(3, (int) (this.Tickets / this.GetStarPrice()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -240,11 +240,23 @@ namespace TouchyTickets {
|
||||||
return;
|
return;
|
||||||
var attraction = map.GetAttractionAt(map.SelectedPosition.Value);
|
var attraction = map.GetAttractionAt(map.SelectedPosition.Value);
|
||||||
|
|
||||||
var price = attraction.GetModifierPrice(map.PlacingModifier);
|
var placeAmount = 1;
|
||||||
GameImpl.Instance.Tickets -= price;
|
if (Upgrade.ModifierIncrease[2].IsActive()) {
|
||||||
GameImpl.Instance.Platform.AddResourceEvent(true, "Tickets", price, "Modifier", modifier.Name);
|
placeAmount = 10;
|
||||||
|
} else if (Upgrade.ModifierIncrease[1].IsActive()) {
|
||||||
|
placeAmount = 5;
|
||||||
|
} else if (Upgrade.ModifierIncrease[0].IsActive()) {
|
||||||
|
placeAmount = 3;
|
||||||
|
}
|
||||||
|
|
||||||
attraction.ApplyModifier(map.PlacingModifier);
|
for (var i = 0; i < placeAmount; i++) {
|
||||||
|
var price = attraction.GetModifierPrice(map.PlacingModifier);
|
||||||
|
if (GameImpl.Instance.Tickets < price)
|
||||||
|
break;
|
||||||
|
GameImpl.Instance.Tickets -= price;
|
||||||
|
GameImpl.Instance.Platform.AddResourceEvent(true, "Tickets", price, "Modifier", modifier.Name);
|
||||||
|
attraction.ApplyModifier(map.PlacingModifier);
|
||||||
|
}
|
||||||
attraction.Wobble();
|
attraction.Wobble();
|
||||||
},
|
},
|
||||||
OnUpdated = (e2, time) => {
|
OnUpdated = (e2, time) => {
|
||||||
|
@ -312,7 +324,7 @@ namespace TouchyTickets {
|
||||||
upgradeHeader.AddChild(new Button(Anchor.AutoCenter, new Vector2(0.8F, 30), Localization.Get("EarnStar")) {
|
upgradeHeader.AddChild(new Button(Anchor.AutoCenter, new Vector2(0.8F, 30), Localization.Get("EarnStar")) {
|
||||||
PositionOffset = new Vector2(0, 4),
|
PositionOffset = new Vector2(0, 4),
|
||||||
ActionSound = new SoundEffectInfo(MlemGame.LoadContent<SoundEffect>("Sounds/StarBuy")),
|
ActionSound = new SoundEffectInfo(MlemGame.LoadContent<SoundEffect>("Sounds/StarBuy")),
|
||||||
OnUpdated = (e, time) => ((Button) e).IsDisabled = GameImpl.Instance.Tickets < GameImpl.Instance.GetStarPrice(),
|
OnUpdated = (e, time) => ((Button) e).IsDisabled = GameImpl.Instance.GetBuyableStars() <= 0,
|
||||||
OnPressed = e => {
|
OnPressed = e => {
|
||||||
var infoBox = new Group(Anchor.TopLeft, Vector2.One, false) {
|
var infoBox = new Group(Anchor.TopLeft, Vector2.One, false) {
|
||||||
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)
|
||||||
|
|
|
@ -10,6 +10,7 @@ namespace TouchyTickets {
|
||||||
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, 1, Ui.Texture[0, 3]);
|
public static readonly Upgrade[] MapSize = RegisterTiers("MapSize", 5, 1, 1, Ui.Texture[0, 3]);
|
||||||
public static readonly Upgrade[] TapIncrease = RegisterTiers("TapIncrease", 3, 1, 0.5F, Ui.Texture[6, 3]);
|
public static readonly Upgrade[] TapIncrease = RegisterTiers("TapIncrease", 3, 1, 0.5F, Ui.Texture[6, 3]);
|
||||||
|
public static readonly Upgrade[] ModifierIncrease = RegisterTiers("ModifierIncrease", 3, 1, 1.5F, Ui.Texture[9, 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 NatureModifier = Register(new Upgrade("NatureModifier", 1, Ui.Texture[8, 3]));
|
public static readonly Upgrade NatureModifier = Register(new Upgrade("NatureModifier", 1, Ui.Texture[8, 3]));
|
||||||
public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 3]));
|
public static readonly Upgrade FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 3]));
|
||||||
|
|
Loading…
Reference in a new issue