changed the way attraction modifiers are calculated
This commit is contained in:
parent
019157ad34
commit
eed0576d5a
2 changed files with 2865 additions and 2896 deletions
5757
Android/Resources/Resource.Designer.cs
generated
5757
Android/Resources/Resource.Designer.cs
generated
File diff suppressed because it is too large
Load diff
|
@ -59,8 +59,10 @@ namespace TouchyTickets.Attractions {
|
||||||
var genRate = this.Type.GetGenerationRate();
|
var genRate = this.Type.GetGenerationRate();
|
||||||
|
|
||||||
// apply attraction modifiers
|
// apply attraction modifiers
|
||||||
|
var mod = 0D;
|
||||||
foreach (var modifier in this.Modifiers)
|
foreach (var modifier in this.Modifiers)
|
||||||
genRate *= Math.Pow(modifier.Modifier.Multiplier, modifier.Amount);
|
mod += Math.Pow(modifier.Modifier.Multiplier, modifier.Amount);
|
||||||
|
genRate *= mod;
|
||||||
|
|
||||||
// apply star upgrades
|
// apply star upgrades
|
||||||
if (Upgrade.FerrisWheelModifier.IsActive() && this.GetSurrounding(map, position, FerrisWheel).Any())
|
if (Upgrade.FerrisWheelModifier.IsActive() && this.GetSurrounding(map, position, FerrisWheel).Any())
|
||||||
|
|
Loading…
Reference in a new issue