Mining Cut 3 fix: launchers do not count toward rock reach (Q12 A)
Weapon.CanMine is the one mining predicate; LockWeapon overrides it to false. Entity.VisibleChunksInReach counts only weapons that can mine. Tests: LaunchersDoNotCountTowardChunkReach (a launcher-only ship is offered no rock; a gun of 200 beside a launcher of 400 is offered the near rock only) and AnOfflineWeaponAddsNoReach (Soul F8: reach reads Active, not Enabled). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
55ca6d3d22
commit
f88d1fc1b3
4 changed files with 84 additions and 4 deletions
|
|
@ -65,6 +65,9 @@ public class LockWeapon : InstantWeapon
|
|||
// before a shot is ever attempted.
|
||||
public bool IsLocked => _lock > .99f;
|
||||
|
||||
// Q12 A: a launcher cannot mine.
|
||||
public override bool CanMine => false;
|
||||
|
||||
|
||||
public LockWeapon(LockWeaponData data, EquippedItem item) : base(data, item)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue