Skip to content

Proposal: Force the Weight and Radius of Machina Portals to Lv1 #804

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

Open
HesalGitHub opened this issue Mar 24, 2025 · 0 comments
Open

Proposal: Force the Weight and Radius of Machina Portals to Lv1 #804

HesalGitHub opened this issue Mar 24, 2025 · 0 comments

Comments

@HesalGitHub
Copy link

In the default code for IITC, all non-neutral Portals have increasing radiuses from Lv5 to Lv8, this feature was meant to help players tell apart high-level Portals and easily identify farms.
However, this feature seemed to be a drawback with Machina Portals. When there are clusters of Lv8 Machina Portals, their large circles become clumpy and overlap with each other, making it difficult to click on individual Portals. Since it is not interesting for most players to preview the levels of Machina Portals, I suggest the addition of a setting that forces all Machina Portals to be displayed at the corresponding weight and radius as if they are level 1.

Under the line 28418 "window.getMarkerStyleOptions", I added the following code:

  if (details.team != TEAM_NONE && level==0) {
    lvlWeight = 1;
    dashArray = '1,2';
  }

  if (details.team == TEAM_MAC && level !=0) {
    lvlWeight = LEVEL_TO_WEIGHT[1] * Math.sqrt(scale);
    lvlRadius = LEVEL_TO_RADIUS[1] * scale;
  }

After:
Image

Before:
Image

With the help of this feature, it is less stressful to look at high-level Machina clusters; now players can easily identify and interact with the individual portals.
It would be nice to have this setting integrated into the default IITC code, or have this as a filter feature / layer feature and allow players to have more customization based on their own preferences.

  • Hesal
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

No branches or pull requests

1 participant