public CannaOil(ISolvent solvent, string name) : base(string.Format("Pure {0} Honey Oil", name), string.Format("Honey oil made with {0}.", name), (solvent as IItem).Weight, (solvent as IItem).Value) { Solvent = solvent; Quality = solvent.Quality; Type = ItemType.CannaOil; Yield = solvent.Yield * 0.25; Weight = Yield; }
public CannaOil(ISolvent solvent, string name) : base(string.Format("Pure {0} Honey Oil", name), string.Format("Honey oil made with {0}.", name), (solvent as IItem).Weight, (solvent as IItem).Value) { Solvent = solvent; Quality = solvent.Quality; Type = ItemType.CannaOil; Yield = solvent.Yield * 0.25; Weight = Yield; }
// SolventMix is a mix of Weed-leaves and chemical(s). public SolventMix(IChronic chronic, IChemical chemical) : base(chronic.Name + " " + chemical.Name, chronic.Description + " " + chemical.Description, chronic.Weight + chemical.Weight, chronic.Value) { Type = ItemType.SolventMix; _extractedOils = new Random().NextDouble() * (0.85 - 0.75) + 0.75; Chronic = chronic; Chemical = chemical; Solvent = new Solvent(Chronic, Chemical); }
public ISolvent Add(ISolvent toAdd) { Quality = (Quality + toAdd.Quality) / 2; Yield = (Yield + toAdd.Yield) / 2; Weight += toAdd.Weight; // Set toAdd's values to zero, since it's added to the main solvent. toAdd.ImproveYield(0); toAdd.ImproveQuality(0); toAdd.ImproveWeight(0); return(this); }
public FilterResult(IChronic chronic, ISolvent solvent) { Chronic = chronic; Solvent = solvent; }
// The components of SolventMix that are called to be cloned. protected SolventMix(SolventMix other) : base(other) { Chronic = other.Chronic; Chemical = other.Chemical; Solvent = other.Solvent; }