Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:44:53 +09:30
commit f1fbbe67bb
1722 changed files with 165268 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
public class NetPackageAdjustStats : global::NetPackage
{
private int _entityId;
public NetPackageAdjustStats Setup(int entityId)
{
_entityId = entityId;
return this;
}
public override void read(PooledBinaryReader br)
{
_entityId = br.ReadInt32();
}
public override void write(PooledBinaryWriter bw)
{
base.write(bw);
bw.Write(_entityId);
}
public override int GetLength()
{
return 8;
}
public override void ProcessPackage(World world, GameManager callbacks)
{
Log.Out("NetPackageAdjustStats-ProcessPackage START");
if (world == null)
{
Log.Out("NetPackageAdjustStats-ProcessPackage WORLD IS NULL");
return;
}
EntityNPCRebirth npc = (EntityNPCRebirth)world.GetEntity(this._entityId);
if (npc != null)
{
GameManager.Instance.StartCoroutine(RebirthUtilities.adjustNPCStats(npc));
}
}
}