private void TryFinishProspecting() { ProportionalWheelSelection RollOreIndex = new ProportionalWheelSelection(); OreIndex = RollOreIndex.SelectItem(PropsMine.mineableList); Messages.Message(String.Format("New ore was found! It is {0}", PropsMine.mineableList[OreIndex].thingDef.label.ToString()), new TargetInfo(parent.InteractionCell, parent.Map, false), MessageTypeDefOf.PositiveEvent); this.depletionLevel = 0f; ProspectMode = false; prospectingNeeded += Verse.Rand.Range(0, 1000) * 10; }
public void AssignResource() { Oreindex = ProportionalWheelSelection.SelectItem(GetComp.PropsMine.mineableList); }