Skip to content

Commit

Permalink
Update networking logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rudderbucky committed Apr 29, 2023
1 parent 46846a1 commit 09c69b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ public Entity SpawnEntity(string blueprint, Sector.LevelEntity data)
else if (MasterNetworkAdapter.mode != MasterNetworkAdapter.NetworkMode.Client)
{
MasterNetworkAdapter.instance.CreateNetworkObjectWrapper(MasterNetworkAdapter.playerName, blueprint, data.ID, false, data.faction, data.position);
Debug.Log($"Spawning entity: {data.name} with ID: {data.ID}");
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public override void TakeCoreDamage(float amount)
{
int temp = (int)(Mathf.Floor((currentHealth[1] / maxHealth[1]) * 5) + 1) * 20;
coreAlertThreshold -= (maxHealth[1] * 0.2f);
Debug.Log("Calling RPC at: " + coreAlertThreshold + " core");
if (BZManager) BZManager.AttemptAlertPlayers(faction, $"Carrier is at {temp}% core", "clip_alert");
}
}
Expand All @@ -130,7 +129,6 @@ public override float TakeShellDamage(float amount, float shellPiercingFactor, E
{
int temp = (int)(Mathf.Floor((currentHealth[0] / maxHealth[0]) * 5) + 1) * 20;
shellAlertThreshold -= (maxHealth[0] * 0.2f);
Debug.Log("Calling RPC at: " + coreAlertThreshold + " shell");
if (BZManager) BZManager.AttemptAlertPlayers(faction, $"Carrier is at {temp}% shell", "clip_alert");
}

Expand Down

0 comments on commit 09c69b2

Please sign in to comment.