public ClaimListing(MineClaim claim, int price, int leasePrice, SurveyResults surveyResults) { this.claim = claim; Price = price; LeasePrice = leasePrice; Survey = surveyResults; }
public void ChipDigger_HavingSiteHardnessIsSoft_DurabilityDecreasesBetween0and1() { var mineClaim = new MineClaim(ChipDensity.Scarce, SiteHardness.Soft); var chipDigger = ChipDigger.StandardDigger(mineClaim); var scoop = chipDigger.Dig(TimeSpan.FromSeconds(20)); chipDigger.Durability.Current.ShouldBeGreaterThanOrEqualTo(0); chipDigger.Durability.Current.ShouldBeLessThanOrEqualTo(25); }
private ChipDigger EquipDigger(MineClaim mineClaim) { var digger = GameState.Miner.Inventory("standard_digger"); var newDigger = ChipDigger.StandardDigger(mineClaim); newDigger.Name = diggerName; digger.Count--; GameState.Miner.Diggers.Add(newDigger); Game.Write($"Digger {newDigger.Name} has been equipped on "); Game.Write($"{newDigger.MineClaim.ChipDensity.ToString()} density", PcmColor.Blue); Game.Write(" with a "); Game.Write($"{newDigger.MineClaim.Hardness.ToString()} hardness", PcmColor.Cyan); Game.WriteLine(string.Empty); return(newDigger); }
public ClaimLease(MineClaim claim, int price) { Claim = claim; Price = price; }
public static SurveyResults GetFromClaim(MineClaim claim) { return new SurveyResults(claim.ChipDensity.ToString(), claim.Hardness.ToString()); }