public override void FinishBill(RuneBill bill, Pawn pawn) { SocketComp socket = bill.itemToBeManipulated.TryGetComp <SocketComp>(); if (socket != null) { socket.SocketRune(bill.runeToManipulate); } }
public override IEnumerable <Toil> MakeWorkToils(Toil endToil) { yield return(Toils_General.Wait(100).WithProgressBarToilDelay(TargetIndex.A, false)); Toil workToil = new Toil(); workToil.initAction = delegate() { SocketComp socket = Item.TryGetComp <SocketComp>(); if (socket != null) { socket.SocketRune(RuneThing); } }; yield return(workToil); }