// Token: 0x06000023 RID: 35 RVA: 0x000029F0 File Offset: 0x00000BF0 public override void Tick() { base.Tick(); if (JPCooldownTicks > 0) { JPCooldownTicks--; } if (Settings.AllowSlowBurn) { if (Wearer == null) { JPSlowBurn = false; return; } if (!JPSlowBurn || !Wearer.Spawned || Wearer.GetPosture() == PawnPosture.LayingInBed || Wearer.GetPosture() == PawnPosture.LayingOnGroundFaceUp || Wearer.GetPosture() == PawnPosture.LayingOnGroundNormal) { return; } if (JPSlowBurnTicks > 0) { JPSlowBurnTicks--; return; } if (JPFuelAmount > 0) { JPFuelAmount--; JPSlowBurnTicks = JPUtility.GetSlowBurnTicks(JPFuelItem); return; } JPSlowBurn = false; Messages.Message( "JetPack.SBOutOfFuel".Translate(Wearer.LabelShort.CapitalizeFirst(), Label.CapitalizeFirst()), Wearer, MessageTypeDefOf.NeutralEvent, false); } else { JPSlowBurn = false; } }
// Token: 0x06000023 RID: 35 RVA: 0x000029F0 File Offset: 0x00000BF0 public override void Tick() { base.Tick(); if (this.JPCooldownTicks > 0) { this.JPCooldownTicks--; } if (Settings.AllowSlowBurn) { if (base.Wearer == null) { this.JPSlowBurn = false; return; } if (this.JPSlowBurn && base.Wearer.Spawned && PawnUtility.GetPosture(base.Wearer) != PawnPosture.LayingInBed && PawnUtility.GetPosture(base.Wearer) != PawnPosture.LayingOnGroundFaceUp && PawnUtility.GetPosture(base.Wearer) != PawnPosture.LayingOnGroundNormal) { if (this.JPSlowBurnTicks > 0) { this.JPSlowBurnTicks--; return; } if (this.JPFuelAmount > 0) { this.JPFuelAmount--; this.JPSlowBurnTicks = JPUtility.GetSlowBurnTicks(this.JPFuelItem); return; } this.JPSlowBurn = false; Messages.Message(TranslatorFormattedStringExtensions.Translate("JetPack.SBOutOfFuel", GenText.CapitalizeFirst(base.Wearer.LabelShort), GenText.CapitalizeFirst(this.Label)), base.Wearer, MessageTypeDefOf.NeutralEvent, false); return; } } else { this.JPSlowBurn = false; } }