2019-08-10 04:07:56 -04:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
2020-04-02 22:40:27 -05:00
|
|
|
using ACE.Entity.Models;
|
2019-08-10 04:07:56 -04:00
|
|
|
|
|
|
|
|
namespace ACE.Server.Entity
|
|
|
|
|
{
|
|
|
|
|
public class CreateListSet
|
|
|
|
|
{
|
2020-04-02 22:40:27 -05:00
|
|
|
public List<PropertiesCreateList> Items;
|
2019-08-10 04:07:56 -04:00
|
|
|
|
2020-04-02 22:40:27 -05:00
|
|
|
public List<PropertiesCreateList> Trophies => Items.Where(i => i.WeenieClassId != 0).ToList();
|
2019-08-10 04:07:56 -04:00
|
|
|
|
2020-04-02 22:40:27 -05:00
|
|
|
public List<PropertiesCreateList> None => Items.Where(i => i.WeenieClassId == 0).ToList();
|
2019-08-10 04:07:56 -04:00
|
|
|
|
|
|
|
|
public float TotalProbability => Items.Sum(i => i.Shade);
|
|
|
|
|
|
|
|
|
|
public float TrophyProbability => Trophies.Sum(i => i.Shade);
|
|
|
|
|
|
|
|
|
|
public float NoneProbability => None.Sum(i => i.Shade);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public CreateListSet()
|
|
|
|
|
{
|
2020-04-02 22:40:27 -05:00
|
|
|
Items = new List<PropertiesCreateList>();
|
2019-08-10 04:07:56 -04:00
|
|
|
}
|
|
|
|
|
|
2020-04-02 22:40:27 -05:00
|
|
|
public void Add(PropertiesCreateList item)
|
2019-08-10 04:07:56 -04:00
|
|
|
{
|
|
|
|
|
Items.Add(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|