mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 08:52:42 +00:00
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:
@@ -8,18 +8,18 @@ import (
|
||||
|
||||
func TestResolveCombatInterrupt_Brackets(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
roll int
|
||||
threat int
|
||||
tier int
|
||||
class DnDClass
|
||||
zone ZoneID
|
||||
want CombatInterruptKind
|
||||
name string
|
||||
roll int
|
||||
threat int
|
||||
tier int
|
||||
class DnDClass
|
||||
zone ZoneID
|
||||
want CombatInterruptKind
|
||||
}{
|
||||
{"none", 5, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptNone}, // 5+1=6
|
||||
{"none", 5, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptNone}, // 5+1=6
|
||||
{"noise lower", 9, 0, 0, ClassFighter, ZoneGoblinWarrens, InterruptNoise},
|
||||
{"noise upper", 13, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptNoise}, // 13+1=14
|
||||
{"standard", 14, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptStandard}, // 15
|
||||
{"noise upper", 13, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptNoise}, // 13+1=14
|
||||
{"standard", 14, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptStandard}, // 15
|
||||
{"standard upper", 17, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptStandard}, // 18
|
||||
// Phase 5-B: elite bracket moved from 19+ to 23+. At totals
|
||||
// 19-21 (formerly Elite) the roll now resolves to Standard;
|
||||
@@ -27,11 +27,11 @@ func TestResolveCombatInterrupt_Brackets(t *testing.T) {
|
||||
// via threat-mod, since base d20+tier+ranger maxes at ~21).
|
||||
{"standard top of band", 18, 0, 1, ClassFighter, ZoneGoblinWarrens, InterruptStandard}, // 19 → Standard now
|
||||
{"standard band upper", 18, 0, 3, ClassFighter, ZoneGoblinWarrens, InterruptStandard}, // 21 → Standard now
|
||||
{"patrol", 20, 0, 2, ClassFighter, ZoneGoblinWarrens, InterruptPatrol}, // 22
|
||||
{"elite high threat", 18, 80, 3, ClassFighter, ZoneGoblinWarrens, InterruptElite}, // 18+3+2=23 → Elite
|
||||
{"patrol", 20, 0, 2, ClassFighter, ZoneGoblinWarrens, InterruptPatrol}, // 22
|
||||
{"elite high threat", 18, 80, 3, ClassFighter, ZoneGoblinWarrens, InterruptElite}, // 18+3+2=23 → Elite
|
||||
{"threat bumps band", 13, 60, 1, ClassFighter, ZoneGoblinWarrens, InterruptStandard},
|
||||
{"ranger wilderness drops band", 17, 0, 1, ClassRanger, ZoneForestShadows, InterruptStandard}, // 17+1-3=15
|
||||
{"ranger non-wild no drop", 17, 0, 1, ClassRanger, ZoneGoblinWarrens, InterruptStandard}, // 17+1=18 (Standard)
|
||||
{"ranger non-wild no drop", 17, 0, 1, ClassRanger, ZoneGoblinWarrens, InterruptStandard}, // 17+1=18 (Standard)
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
@@ -59,14 +59,14 @@ func TestResolveCombatInterrupt_ThreatModifier(t *testing.T) {
|
||||
|
||||
func TestMonsterKillTags_GatesKnownMonsters(t *testing.T) {
|
||||
cases := map[string][]string{
|
||||
"worg": {"worg", "beast"},
|
||||
"owlbear": {"owlbear", "beast"},
|
||||
"dire_wolf": {"beast"},
|
||||
"vampire_spawn": {"vampire_spawn"},
|
||||
"young_red_dragon": {"drake"},
|
||||
"boss_belaxath": {"balor", "demon", "portal_boss"},
|
||||
"boss_thornmother": {"thornmother"},
|
||||
"goblin_sneak": nil, // goblins gate nothing in §3
|
||||
"worg": {"worg", "beast"},
|
||||
"owlbear": {"owlbear", "beast"},
|
||||
"dire_wolf": {"beast"},
|
||||
"vampire_spawn": {"vampire_spawn"},
|
||||
"young_red_dragon": {"drake"},
|
||||
"boss_belaxath": {"balor", "demon", "portal_boss"},
|
||||
"boss_thornmother": {"thornmother"},
|
||||
"goblin_sneak": nil, // goblins gate nothing in §3
|
||||
}
|
||||
for id, want := range cases {
|
||||
got := monsterKillTags(id)
|
||||
|
||||
Reference in New Issue
Block a user