changed the way attraction modifiers are calculated

This commit is contained in:
Ellpeck 2020-07-09 03:03:50 +02:00
parent 019157ad34
commit eed0576d5a
2 changed files with 2865 additions and 2896 deletions

File diff suppressed because it is too large Load diff

View file

@ -59,8 +59,10 @@ namespace TouchyTickets.Attractions {
var genRate = this.Type.GetGenerationRate();
// apply attraction modifiers
var mod = 0D;
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
if (Upgrade.FerrisWheelModifier.IsActive() && this.GetSurrounding(map, position, FerrisWheel).Any())