Beispiel #1
0
    private void UpdateStatusEffectList(StatusEffectAsset statusEffectAsset)
    {
        AggregateStatusEffectMetaData newData = this.statusEffectMetaData.Find(x => x.statusEffect.statusEffectName == statusEffectAsset.statusEffectName);

        if (newData == null)
        {
            this.statusEffectMetaData.Add(new AggregateStatusEffectMetaData(statusEffectAsset, statusEffectAsset.level));
        }
        else
        {
            newData.aggregateLevel += statusEffectAsset.level;
        }
    }
Beispiel #2
0
 public AggregateStatusEffectMetaData(StatusEffectAsset statusEffect, int level)
 {
     this.aggregateLevel = level;
     this.statusEffect   = statusEffect;
 }