added tap increase upgrade
This commit is contained in:
parent
b062655a19
commit
5f09262b6b
5 changed files with 17 additions and 3 deletions
|
@ -39,6 +39,12 @@
|
||||||
"MapSize4Description": "Increases your park's buildable area even more. Existing attractions are not removed.",
|
"MapSize4Description": "Increases your park's buildable area even more. Existing attractions are not removed.",
|
||||||
"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",
|
||||||
|
"TapIncrease1Description": "Increases the amount of tickets gained by tapping the ticket booth to 5",
|
||||||
|
"TapIncrease2": "Mega Tap",
|
||||||
|
"TapIncrease2Description": "Increases the amount of tickets gained by tapping the ticket booth to 10",
|
||||||
|
"TapIncrease3": "Hyper Tap",
|
||||||
|
"TapIncrease3Description": "Increases the amount of tickets gained by tapping the ticket booth to 50",
|
||||||
"FoodCourtModifier": "Tasty Treats",
|
"FoodCourtModifier": "Tasty Treats",
|
||||||
"FoodCourtModifierDescription": "Doubles ticket sales for all attractions adjacent to food courts.",
|
"FoodCourtModifierDescription": "Doubles 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: 3.3 KiB After Width: | Height: | Size: 3.5 KiB |
|
@ -89,11 +89,18 @@ namespace TouchyTickets {
|
||||||
});
|
});
|
||||||
storeGroup.AddChild(new Image(Anchor.TopLeft, Vector2.One, Texture[0, 0, 2, 3]) {
|
storeGroup.AddChild(new Image(Anchor.TopLeft, Vector2.One, Texture[0, 0, 2, 3]) {
|
||||||
OnPressed = e => {
|
OnPressed = e => {
|
||||||
|
var rate = 1;
|
||||||
|
if (Upgrade.TapIncrease[2].IsActive()) {
|
||||||
|
rate = 50;
|
||||||
|
} else if (Upgrade.TapIncrease[1].IsActive()) {
|
||||||
|
rate = 10;
|
||||||
|
} else if (Upgrade.TapIncrease[0].IsActive()) {
|
||||||
|
rate = 5;
|
||||||
|
}
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
GameImpl.Instance.Tickets += 500000;
|
rate = 500000;
|
||||||
#else
|
|
||||||
GameImpl.Instance.Tickets++;
|
|
||||||
#endif
|
#endif
|
||||||
|
GameImpl.Instance.Tickets += rate;
|
||||||
},
|
},
|
||||||
CanBeSelected = true,
|
CanBeSelected = true,
|
||||||
CanBeMoused = true
|
CanBeMoused = true
|
||||||
|
|
|
@ -9,6 +9,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 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 FoodCourtModifier = Register(new Upgrade("FoodCourtModifier", 2, Ui.Texture[1, 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 RollerCoasterModifier = Register(new Upgrade("RollerCoasterModifier", 2, Ui.Texture[3, 3]));
|
||||||
|
|
Loading…
Reference in a new issue