gofmt: bring internal/ and cmd/ back to gofmt -l clean

Mechanical `gofmt -w ./internal ./cmd`. Mostly struct-field realignment that
had drifted, plus a few trailing-newline fixes. No behaviour change — gofmt is
semantics-preserving, and build/vet/test are green either side.

Split out from the code-review fixes that follow so those stay reviewable
instead of hiding inside a wall of realignment.
This commit is contained in:
prosolis
2026-07-10 07:18:07 -07:00
parent 08d3053368
commit 3369d7d8fe
108 changed files with 1248 additions and 1260 deletions

View File

@@ -38,9 +38,9 @@ func TestWanderingOutcome_BucketBoundaries(t *testing.T) {
func TestResolveWanderingCheck_RoughCampBumpsRoll(t *testing.T) {
exp := &Expedition{
ZoneID: ZoneGoblinWarrens,
ZoneID: ZoneGoblinWarrens,
ThreatLevel: 0,
Camp: &CampState{Active: true, Type: CampTypeRough},
Camp: &CampState{Active: true, Type: CampTypeRough},
}
// roll 8 → +3 rough → total 11 → Minor (would have been Passage at 8).
nc := resolveWanderingCheck(exp, ClassFighter, func() int { return 8 })
@@ -54,9 +54,9 @@ func TestResolveWanderingCheck_RoughCampBumpsRoll(t *testing.T) {
func TestResolveWanderingCheck_FortifiedCampReducesRoll(t *testing.T) {
exp := &Expedition{
ZoneID: ZoneGoblinWarrens,
ZoneID: ZoneGoblinWarrens,
ThreatLevel: 0,
Camp: &CampState{Active: true, Type: CampTypeFortified},
Camp: &CampState{Active: true, Type: CampTypeFortified},
}
// roll 14 → -4 fortified → total 10 → Passage.
nc := resolveWanderingCheck(exp, ClassFighter, func() int { return 14 })
@@ -83,9 +83,9 @@ func TestResolveWanderingCheck_ThreatModAbove30(t *testing.T) {
func TestResolveWanderingCheck_RangerWildernessDiscount(t *testing.T) {
exp := &Expedition{
ZoneID: ZoneForestShadows,
ZoneID: ZoneForestShadows,
ThreatLevel: 0,
Camp: &CampState{Active: true, Type: CampTypeStandard},
Camp: &CampState{Active: true, Type: CampTypeStandard},
}
nc := resolveWanderingCheck(exp, ClassRanger, func() int { return 12 })
if nc.ClassMod != -2 {
@@ -124,7 +124,7 @@ func TestProcessNightCheck_LogsAndBumpsThreatOnPassage(t *testing.T) {
}
nc := NightCheck{
Outcome: NightOutcomePassage, Roll: 8, Total: 8,
Summary: "Signs of passage near camp; no encounter.",
Summary: "Signs of passage near camp; no encounter.",
ThreatBumped: true,
}
if err := processNightCheck(exp, nc); err != nil {