Merge pull request #834 from eduardosmaniotto/bugfix/duplicate-rows

fix: duplicate rows in deserialized aggregate collections
(cherry picked from commit f95498770ea1af30530a164f868f571ec30052b5)
This commit is contained in:
sven-n
2026-07-21 22:09:15 +02:00
committed by Acentech Dev
parent 0e2c94b84b
commit b854565586
3 changed files with 53 additions and 40 deletions

View File

@@ -151,6 +151,7 @@ internal partial class NpcInitialization : Version095d.NpcInitialization
damagePowerUp.TargetAttribute = Stats.GreaterDamageBonus.GetPersistent(this.GameConfiguration);
damagePowerUp.Boost = this.Context.CreateNew<PowerUpDefinitionValue>();
damagePowerUp.Boost.ConstantValue.Value = 45;
damagePowerUp.Boost.ConstantValue.AggregateType = AggregateType.AddRaw;
var damagePerLevel = this.Context.CreateNew<AttributeRelationship>();
damagePerLevel.InputAttribute = Stats.Level.GetPersistent(this.GameConfiguration);
damagePerLevel.InputOperand = 1f / 3;