sight seeing upgrade

This commit is contained in:
Ellpeck 2020-06-03 15:13:41 +02:00
parent 820181044f
commit 97f9cdd6b0
5 changed files with 6 additions and 1 deletions

View file

@ -31,6 +31,8 @@ namespace TouchyTickets.Attractions {
// only apply dynamic upgrades here, static ones go into the type
if (Upgrade.FoodCourtModifier.IsActive() && this.GetSurrounding(map, position, AttractionType.FoodCourt).Any())
genRate *= 2;
if (Upgrade.SpiralSlideModifier.IsActive() && this.GetSurrounding(map, position, AttractionType.SpiralSlide).Any())
genRate *= 2;
this.ticketPercentage += genRate * (float) passed.TotalSeconds;
var amount = this.ticketPercentage.Floor();

View file

@ -40,5 +40,7 @@
"RollerCoasterModifier": "No Brakes",
"RollerCoasterModifierDescription": "Increases the speed of all car-based attractions, doubling their ticket sales.",
"ManualRideModifier": "Push and Shove",
"ManualRideModifierDescription": "Increases the amount of people allowed on manual (walking-based) rides, tripling their ticket sales."
"ManualRideModifierDescription": "Increases the amount of people allowed on manual (walking-based) rides, tripling their ticket sales.",
"SpiralSlideModifier": "Sightseeing",
"SpiralSlideModifierDescription": "Spiral slide visitors are given binoculars to look at adjacent rides, doubling their ticket sales."
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -13,6 +13,7 @@ namespace TouchyTickets {
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 static readonly Upgrade SpiralSlideModifier = Register(new Upgrade("SpiralSlideModifier", 2, Ui.Texture[5, 3]));
public readonly string Name;
public readonly int Price;