// Token: 0x06000080 RID: 128 RVA: 0x00004EC4 File Offset: 0x000030C4 public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false) { JobDef feeddef = DefDatabase <JobDef> .GetNamed("AQFeeding", false); Thing feed = AQUtility.GetClosestFeed(pawn, t); Job newJob = null; if (feeddef != null && feed != null) { newJob = new Job(feeddef, t, feed); } return(newJob); }
// Token: 0x0600007F RID: 127 RVA: 0x00004E68 File Offset: 0x00003068 public override bool HasJobOnThing(Pawn pawn, Thing t, bool forced = false) { if (pawn.CanReserveAndReach(t, PathEndMode.Touch, Danger.None, 1, -1, null, false)) { CompAquarium CA = t.TryGetComp <CompAquarium>(); if (CA != null) { float trigger = Controller.Settings.RespondFood / 100f; if (CA.foodPct <= trigger && CA.numFish > 0 && AQUtility.GetClosestFeed(pawn, t) != null) { return(true); } } } return(false); }