_deprecated

This file contains functions that are not use by IITC itself and won't most likely not receive any updated

Methods

inner androidCopy()

Finds the latitude and longitude for a portal using all available data sources. This includes the list of portals, cached portal details, and information from links and fields.

Deprecated:
  • Yes

inner findPortalLatLng(guid) → {L.LatLng|undefined}

Finds the latitude and longitude for a portal using all available data sources. This includes the list of portals, cached portal details, and information from links and fields.

Parameters:
Name Type Description
guid string

The GUID of the portal.

Returns:
L.LatLng | undefined -

The LatLng location of the portal, or undefined if not found.

Deprecated:
  • Yes

inner getPortalApGain(guid) → {Object|undefined}

Estimates the AP gain from a portal, based only on summary data from portals, links, and fields. Not entirely accurate - but available for all portals on the screen

Parameters:
Name Type Description
guid string

The GUID of the portal.

Returns:
Object | undefined -

An object containing various AP gain values, or undefined if the portal is not found.

Deprecated:
  • Yes

inner portalApGainMaths(resCount, linkCount, fieldCount) → {Object}

Calculates the potential AP gain for capturing or destroying a portal, based on the number of resonators, links, and fields. It does not account for AP gained from resonator upgrades or mod deployment.

Parameters:
Name Type Description
resCount number

The number of resonators on the portal.

linkCount number

The number of links connected to the portal.

fieldCount number

The number of fields using the portal as a vertex.

Returns:
Object -

An object containing detailed AP gain values for various actions such as deploying resonators, destroying resonators, creating fields, destroying links, capturing the portal, and total AP for destroying and capturing.

Deprecated:
  • Yes

inner potentialPortalLevel(d) → {number}

Calculates the potential level a player can upgrade a portal to.

Parameters:
Name Type Description
d Object

The portal detail object containing resonator and ownership information.

Returns:
number -

The potential level to which the player can upgrade the portal.

Deprecated:
  • Yes