aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


server/gamedata/minibull_test.go (606B)


      1 package gamedata
      2 
      3 import (
      4 	"slices"
      5 	"testing"
      6 )
      7 
      8 func TestMinibullProfilesUseBoundedOriginalHeadbutt(t *testing.T) {
      9 	profiles := NPCCombatProfiles[30360]
     10 
     11 	first, last := profiles[4], profiles[10]
     12 
     13 	if len(profiles) != 10 || first == nil || last == nil || first.Health != 40 || last.Health != 100 ||
     14 		first.Experience != 150 || last.Experience != 300 || first.Weapon != [2]uint32{120961, 120962} ||
     15 		!slices.Equal(first.TemplateCodes, []string{"MB01"}) || profiles[0] != nil || profiles[11] != nil {
     16 		t.Fatal("Minibull profiles lost their explicit bounded anchors or original weapon", profiles)
     17 	}
     18 }