Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework power tower syncing #2 #635

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

starfi5h
Copy link
Collaborator

@starfi5h starfi5h commented Jan 4, 2024

Continue #627

  • Change RemoteChargerHashIds to type Dictionary<long, int> to store charger hashId and how many players are using it to charge mecha.
  • Whenever a player connects, disconnects, or leaves the planet, it will broadcast the reset event to let all players clear the current records of chargers and recalculate the local and remote charger IDs.
  • Enhance the power charger window to properly show the status of a working charger that is not used by the local player, and display how many other players are using it.

TODO: Reset the charger event too when the mecha is dead.

@starfi5h starfi5h merged commit f582528 into NebulaModTeam:0.10.x Jan 4, 2024
@starfi5h starfi5h deleted the pr-powerCharger2 branch January 31, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants