Esempio n. 1
0
 public static EquipStats ComputeStatsForLevel(SchemaConstants.Rarity base_rarity, EquipStats base_stats, EquipStats max_stats, byte target_level)
 {
     return new EquipStats
     {
         Acc = ComputeStatForLevel(base_rarity, base_stats.Acc, max_stats.Acc, target_level),
         Atk = ComputeStatForLevel(base_rarity, base_stats.Atk, max_stats.Atk, target_level),
         Def = ComputeStatForLevel(base_rarity, base_stats.Def, max_stats.Def, target_level),
         Res = ComputeStatForLevel(base_rarity, base_stats.Res, max_stats.Res, target_level),
         Eva = ComputeStatForLevel(base_rarity, base_stats.Eva, max_stats.Eva, target_level),
         Mag = ComputeStatForLevel(base_rarity, base_stats.Mag, max_stats.Mag, target_level),
         Mnd = ComputeStatForLevel(base_rarity, base_stats.Mnd, max_stats.Mnd, target_level)
     };
 }
Esempio n. 2
0
 public static EquipStats ComputeStatsForLevel(
     SchemaConstants.Rarity base_rarity,
     EquipStats base_stats,
     EquipStats max_stats,
     byte target_level)
 {
     return(new EquipStats()
     {
         Acc = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Acc, max_stats.Acc, target_level)),
         Atk = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Atk, max_stats.Atk, target_level)),
         Def = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Def, max_stats.Def, target_level)),
         Res = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Res, max_stats.Res, target_level)),
         Eva = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Eva, max_stats.Eva, target_level)),
         Mag = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Mag, max_stats.Mag, target_level)),
         Mnd = new short?(StatCalculator.ComputeStatForLevel(base_rarity, base_stats.Mnd, max_stats.Mnd, target_level))
     });
 }
Esempio n. 3
0
 public static EquipStats ComputeStatsForLevel(SchemaConstants.Rarity base_rarity, EquipStats base_stats, EquipStats max_stats, byte target_level)
 {
     return(new EquipStats
     {
         Acc = ComputeStatForLevel(base_rarity, base_stats.Acc, max_stats.Acc, target_level),
         Atk = ComputeStatForLevel(base_rarity, base_stats.Atk, max_stats.Atk, target_level),
         Def = ComputeStatForLevel(base_rarity, base_stats.Def, max_stats.Def, target_level),
         Res = ComputeStatForLevel(base_rarity, base_stats.Res, max_stats.Res, target_level),
         Eva = ComputeStatForLevel(base_rarity, base_stats.Eva, max_stats.Eva, target_level),
         Mag = ComputeStatForLevel(base_rarity, base_stats.Mag, max_stats.Mag, target_level),
         Mnd = ComputeStatForLevel(base_rarity, base_stats.Mnd, max_stats.Mnd, target_level)
     });
 }