public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { CompBloodProduct compBloodProduct = ingredients[0].TryGetComp<CompBloodProduct>(); if (compBloodProduct != null) BloodBankUtilities.AdministerBooster(pawn, compBloodProduct); else Log.Error($"Blood Bank - Give booster operation failed (ingredients[0] ({ingredients[0].def.defName}) has no CompBloodProduct)"); }
public override void DoEffect(Pawn pawn) { BloodBankUtilities.AdministerBooster(pawn, parent.GetComp <CompBloodProduct>()); base.DoEffect(pawn); }