public DwarfBux ComputeValue(ResourceLibrary.ResourceType Resource) { var resource = ResourceLibrary.GetResourceByName(Resource); if (SourceEnvoy.OwnerFaction.Race.CommonResources.Any(r => resource.Tags.Contains(r))) { return(resource.MoneyValue * 0.75m); } if (SourceEnvoy.OwnerFaction.Race.RareResources.Any(r => resource.Tags.Contains(r))) { return(resource.MoneyValue * 1.25m); } return(resource.MoneyValue); }
public float ComputeValue(ResourceLibrary.ResourceType Resource) { // Todo: Account for rare or common items. return(ResourceLibrary.GetResourceByName(Resource).MoneyValue); }
public float ComputeValue(ResourceLibrary.ResourceType Resource) { return(ResourceLibrary.GetResourceByName(Resource).MoneyValue); }