Skip to content

Commit

Permalink
Default values for hold fire
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDorob committed Nov 30, 2024
1 parent 8a20185 commit 1ddbee5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public VerbProperties_CIWSProjectile()
{
this.verbClass = typeof(VerbCIWSProjectile);
this.holdFireIcon = "UI/Buttons/CE_CIWS_Projectile";
this.holdFireLabel = "HoldCloseInProjectilesFire";
this.holdFireDesc = "HoldCloseInProjectilesFireDesc";
}
public override bool Interceptable(ThingDef targetDef) => targetDef.projectile.speed < maximumSpeed && targetDef.projectile.flyOverhead && base.Interceptable(targetDef);
public float maximumSpeed = 80;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public VerbProperties_CIWSSkyfaller()
{
this.verbClass = typeof(VerbCIWSSkyfaller);
this.holdFireIcon = "UI/Buttons/CE_CIWS_Skyfaller";
this.holdFireLabel = "HoldCloseInSkyfallersFire";
this.holdFireDesc = "HoldCloseInSkyfallersFireDesc";
}
protected override IEnumerable<ThingDef> InitAllTargets() => DefDatabase<ThingDef>.AllDefsListForReading.Where(x => (typeof(Skyfaller).IsAssignableFrom(x.thingClass) && typeof(IActiveDropPod).IsAssignableFrom(x.thingClass)));
}
Expand Down

0 comments on commit 1ddbee5

Please sign in to comment.