feat: Adds proper OSI tracking up to 120 tiles. (#2281)

### Summary

Fixes tracking skill to 10 tiles per 10% up to 120 tiles.
This commit is contained in:
Kamron Batman 2025-11-29 09:55:52 -08:00 committed by GitHub
parent ad26ab6260
commit 5fb0e806c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 417 additions and 66 deletions

View file

@ -215,8 +215,8 @@ public class ItemByDistanceEnumeratorTests
var center = new Point3D(700, 700, 0);
const int range = 5;
var testItem2 = new TestItem2((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var testItem = new TestItem((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var testItem2 = new TestItem2(World.NewItem);
var testItem = new TestItem(World.NewItem);
try
{
@ -438,7 +438,7 @@ public class ItemByDistanceEnumeratorTests
private static TestItem CreateItem(Map map, Point3D location)
{
var Item = new TestItem((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var Item = new TestItem(World.NewItem);
Item.MoveToWorld(location, map);
return Item;
}

View file

@ -215,8 +215,8 @@ public class MobileByDistanceEnumeratorTests
var center = new Point3D(700, 700, 0);
const int range = 5;
var player = new TestPlayerMobile((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var npc = new TestMobile((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var player = new TestPlayerMobile(World.NewMobile);
var npc = new TestMobile(World.NewMobile);
try
{
@ -440,7 +440,7 @@ public class MobileByDistanceEnumeratorTests
private static TestMobile CreateMobile(Map map, Point3D location)
{
var mobile = new TestMobile((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var mobile = new TestMobile(World.NewMobile);
mobile.DefaultMobileInit();
mobile.MoveToWorld(location, map);
return mobile;

View file

@ -247,7 +247,7 @@ public class MobileEnumeratorTests
private static Mobile CreateMobile(Map map, Point3D location)
{
var mobile = new Mobile((Serial)Utility.RandomMinMax(0x100u, 0xFFFu));
var mobile = new Mobile(World.NewMobile);
mobile.DefaultMobileInit();
mobile.MoveToWorld(location, map);
return mobile;