Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
starfi5h committed Mar 23, 2024
1 parent 3ef47e4 commit 28441bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
namespace NebulaModel.Packets.Combat;

public class CombatStatFullHptPacket
public class CombatStatFullHpPacket
{
public CombatStatFullHptPacket() { }
public CombatStatFullHpPacket() { }

public CombatStatFullHptPacket(int originAstroId, int objectType, int objectId)
public CombatStatFullHpPacket(int originAstroId, int objectType, int objectId)
{
OriginAstroId = originAstroId;
ObjectType = objectType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
namespace NebulaNetwork.PacketProcessors.Combat;

[RegisterPacketProcessor]
public class CombatStatFullHpProcessor : PacketProcessor<CombatStatFullHptPacket>
public class CombatStatFullHpProcessor : PacketProcessor<CombatStatFullHpPacket>
{
protected override void ProcessPacket(CombatStatFullHptPacket packet, NebulaConnection conn)
protected override void ProcessPacket(CombatStatFullHpPacket packet, NebulaConnection conn)
{
var combatStatId = 0;
var starId = 0;
Expand Down
2 changes: 1 addition & 1 deletion NebulaPatcher/Patches/Dynamic/CombatStat_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static void HandleFullHp_Prefix(ref CombatStat __instance)
// objectType 0:entity
if (__instance.objectType == 0 && __instance.originAstroId > 100 && __instance.originAstroId <= 204899 && __instance.originAstroId % 100 > 0)
{
var packet = new CombatStatFullHptPacket(__instance.originAstroId, __instance.objectType, __instance.objectId);
var packet = new CombatStatFullHpPacket(__instance.originAstroId, __instance.objectType, __instance.objectId);
if (Multiplayer.Session.IsServer)
{
var starId = __instance.originAstroId / 100;
Expand Down

0 comments on commit 28441bf

Please sign in to comment.