New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow actors to target terrain without force-fire #21124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few nits
e0eca7d
to
516b9ff
Compare
@@ -55,6 +55,10 @@ public abstract class AttackBaseInfo : PausableConditionalTraitInfo | |||
[Desc("Tolerance for attack angle. Range [0, 512], 512 covers 360 degrees.")] | |||
public readonly WAngle FacingTolerance = new(512); | |||
|
|||
[Desc("Show the target cursor even on empty terrain cells when enabled.", | |||
"Any traits implementing IMove must be absent or disabled for this to work.")] | |||
public readonly bool TargetsTerrain = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public readonly bool TargetsTerrain = false; | |
public readonly bool TargetsTerrain = false; |
We were discussing on discord that this needs a rename. It's almost sounds as if by having it false the unit won't be able to target terrain at all
Personally I don't have suggestions, sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to TargetTerrainWithoutForceFire
. Any better?
516b9ff
to
535f178
Compare
535f178
to
7ccbee6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is a small addition to
AttackBase
. It should be useful for things like mortars, artillery or ballistic missiles.