Exemplo n.º 1
0
        public decimal BaseInventionChance()
        {
            var typeId  = Product;
            var groupId = CommonQueries.GetGroupID(Product);

            if (groupId == GroupID.Battlecruiser || groupId == GroupID.Battleship ||
                typeId == CommonQueries.GetTypeID("Covetor"))
            {
                return(0.2m);
            }

            if (groupId == GroupID.Cruiser || groupId == GroupID.Industrial ||
                typeId == CommonQueries.GetTypeID("Retriever"))
            {
                return(0.25m);
            }

            if (groupId == GroupID.Frigate || groupId == GroupID.Destroyer ||
                groupId == GroupID.Freighter || typeId == CommonQueries.GetTypeID("Procurer"))
            {
                return(0.3m);
            }

            if (HasT2Version())
            {
                return(0.4m);
            }

            return(0);
        }
Exemplo n.º 2
0
 public BPMaterial(string typeName, long quantity, decimal damagePerJob = 1)
     : this(new MaterialID(CommonQueries.GetTypeID(typeName).ToInt()), quantity, damagePerJob)
 {
 }