// Token: 0x06000011 RID: 17 RVA: 0x00002740 File Offset: 0x00000940
        public static void DrawCamoOverlay(Pawn pawn)
        {
            bool   flag = false;
            string text = "";

            if (CamoUtility.IsCamoActive(pawn, out Apparel apparel) && apparel != null)
            {
                float activeCamoEff = ThingCompUtility.TryGetComp <CompGearCamo>(apparel).Props.ActiveCamoEff;
                if (ThingCompUtility.TryGetComp <CompGearCamo>(apparel).Props.StealthCamoChance > 0 && activeCamoEff > 0f)
                {
                    text = "Mote_CASStealth";
                    flag = true;
                }
                else if (activeCamoEff > 0f)
                {
                    text = CamoDrawTools.GetMoteToUse(activeCamoEff);
                    flag = true;
                }
            }
            if (!flag && CamoGearUtility.GetCurCamoEff(pawn, out string text2, out float num) && num > 0f)
            {
                text = CamoDrawTools.GetMoteToUse(num);
                flag = true;
            }
            if (flag && text != "")
            {
                CamoDrawTools.DoCamoOverlay(pawn, text);
            }
        }
Пример #2
0
 // Token: 0x06000061 RID: 97 RVA: 0x000063A0 File Offset: 0x000045A0
 public override void CompTick()
 {
     base.CompTick();
     if (Controller.Settings.ShowOverlay && this.Pawn.IsColonist && this.Pawn.Drafted && Gen.IsHashIntervalTick(this.Pawn, 60))
     {
         Pawn pawn = this.Pawn;
         if ((pawn?.Map) != null && this.Pawn.Spawned && !this.Pawn.Map.fogGrid.IsFogged(this.Pawn.Position))
         {
             CamoDrawTools.DrawCamoOverlay(this.Pawn);
         }
     }
 }
Пример #3
0
        // Token: 0x06000061 RID: 97 RVA: 0x000063A0 File Offset: 0x000045A0
        public override void CompTick()
        {
            base.CompTick();
            if (!Controller.Settings.ShowOverlay || !Pawn.IsColonist || !Pawn.Drafted || !Pawn.IsHashIntervalTick(60))
            {
                return;
            }

            var pawn = Pawn;

            if (pawn?.Map != null && Pawn.Spawned && !Pawn.Map.fogGrid.IsFogged(Pawn.Position))
            {
                CamoDrawTools.DrawCamoOverlay(Pawn);
            }
        }