fixed the new modifiers being broken lol
This commit is contained in:
parent
eed0576d5a
commit
5322ced801
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ namespace TouchyTickets.Attractions {
|
||||||
var genRate = this.Type.GetGenerationRate();
|
var genRate = this.Type.GetGenerationRate();
|
||||||
|
|
||||||
// apply attraction modifiers
|
// apply attraction modifiers
|
||||||
var mod = 0D;
|
var mod = 1D;
|
||||||
foreach (var modifier in this.Modifiers)
|
foreach (var modifier in this.Modifiers)
|
||||||
mod += Math.Pow(modifier.Modifier.Multiplier, modifier.Amount);
|
mod += Math.Pow(modifier.Modifier.Multiplier, modifier.Amount) - 1;
|
||||||
genRate *= mod;
|
genRate *= mod;
|
||||||
|
|
||||||
// apply star upgrades
|
// apply star upgrades
|
||||||
|
|
Loading…
Reference in a new issue