Skip to content

Commit 88eba7c

Browse files
committed
test: strengthen combat target resolution coverage
1 parent a70cb2b commit 88eba7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/minimal/shared_world_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15512,11 +15512,11 @@ func TestSharedWorldRegistryAttemptStaticActorCombatTargetResolvesVisibleTrainin
1551215512
subject := peerVisibilityCharacter("Subject", 0x01030101, 0x02040101, 1100, 2100, 0, 101, 201)
1551315513
subjectID, _ := registry.Join(subject, newPendingServerFrames(), nil)
1551415514
if subjectID == 0 {
15515-
t.Fatal("expected subject join to return a live shared-world entity ID")
15515+
t.Fatal("expected subject join to return a shared-world entity ID")
1551615516
}
1551715517
actor, ok := registry.RegisterStaticActorWithCombatKind(0, "TrainingDummy", bootstrapMapIndex, 1200, 2200, 20350, worldruntime.StaticActorCombatKindTrainingDummy)
1551815518
if !ok {
15519-
t.Fatal("expected visible training-dummy registration to succeed")
15519+
t.Fatal("expected training dummy registration to succeed")
1552015520
}
1552115521

1552215522
attempt := registry.AttemptStaticActorCombatTarget(subjectID, uint32(actor.EntityID))
@@ -15529,7 +15529,7 @@ func TestSharedWorldRegistryAttemptStaticActorCombatTargetResolvesVisibleTrainin
1552915529
if attempt.TargetVID != uint32(actor.EntityID) {
1553015530
t.Fatalf("expected combat-target attempt target VID %#08x, got %#08x", uint32(actor.EntityID), attempt.TargetVID)
1553115531
}
15532-
if attempt.Actor.EntityID != actor.EntityID || attempt.Actor.Name != "TrainingDummy" {
15532+
if attempt.Actor.EntityID != actor.EntityID || attempt.Actor.Name != actor.Name || attempt.HPPercent != 100 || attempt.SnapshotVersion == 0 {
1553315533
t.Fatalf("unexpected resolved training-dummy combat-target attempt: %+v", attempt)
1553415534
}
1553515535
}

0 commit comments

Comments
 (0)