コード例 #1
0
 public Industry(String name, BigInteger price, BigInteger sell, int outnum, Scalar scale)
 {
     this.saveName   = name;
     unlocalizedName = "item." + name;
     cost            = price;
     value           = sell;
     output          = outnum;
     productType     = scale;
     inputs          = new List <IndustryInput>();
     GameRegistry.RegisterIndustry(this);
     industryItem = new Item(this);
     industryItem.isConsumable = isConsumableItem;
     pow50 = Math.Pow(productType.amount, 50);
     pow10 = Math.Pow(productType.amount, 10);
     pow1  = productType.amount;
 }