32 Commits

Author SHA1 Message Date
Jon Atkins
361c665626 link range - correctly flag missing resonators 2014-06-01 19:04:52 +01:00
Jon Atkins
3ee03778ef fix several issues
- resonator energy
- portal owner & capture date
- mod type filtering code
2014-05-24 01:14:39 +01:00
Jon Atkins
b595af30ad more work on fixing things for the 2014-05-23 changes
it's a big job - much is still broken
2014-05-23 23:50:37 +01:00
Jon Atkins
86327fa578 niantic removed controllingTeam from the portal details - we have to use the team from the summary data 2014-05-17 00:27:15 +01:00
Jon Atkins
77cf149fef data format change: portal details 'portalV2.descriptiveText' is now 'descriptiveText.map'. fields within this seem the same
needed to fix things after the stock intel site update of 2014-02-05
2014-02-06 05:08:18 +00:00
nexushoratio
537eeef539 Fix a number of typos in comments and site content 2013-12-29 04:09:37 -08:00
Jon Atkins
02a0f3af36 si8debar fixes:
- ensure consistant display based on portal details, by creating portal summary data from details
- pass field count into AP calculation, for accurate destroy amounts
- use portal.options.level, so unclaimed appear as zero
2013-12-17 08:18:06 +00:00
Jon Atkins
9852b680f5 further to #704, use the existing function to both filter and sort link amps, so (in theory) combinations of rare+very rare are handled correctly 2013-12-17 03:38:56 +00:00
khabraken
3c19f242db Fix the calculation for Link Amp range boost to be generic, so VRLA boosts are correctly calculated.
For RLA, the first multiplier is 2x. Subsequent RLAs add 0.5, 0.25, 0.25 to the multiplier. But expressed as a fraction of the initial multiplier, this is 0.25, 0.125, 0.125. Scale array has been updated to reflect this. This means the "-1" in the calculation is no longer required, and that boost is correctly calculated when baseMultiplier is anything other than 2 (eg VRLA, when it is 7).
If there aren't any Link Amps, the multiplier is 1x.
2013-12-17 03:58:09 +13:00
Jon Atkins
26d410d306 comment concerning issues with AP gain calculations - relevant to #671 2013-12-02 17:53:57 +00:00
Jon Atkins
e935902c49 misc fixes - some untested
- no GUIDs in chat for players or portal details - so remove player GUID related functions
- remove player guid code from COMM
- update portal_info functions to compare to player name rather than guid
2013-11-30 23:19:46 +00:00
Jon Atkins
7a19d30173 first update of sidebar for new data format: show the info available from the brief portal data
TODO: retrieve the full portal data and update to include that
2013-11-30 22:26:40 +00:00
Jon Atkins
e6305a0aa9 getAvgResDist - return a small, but non-zero, value for zero distance resonator deployments (zero is already assumed to be no resonators deployed)
portal-highlighter-bad-deployment-distance: highlight colour based on resonatror range: purple: likely 0m deployment (spoofer?), red <10m, orange under 24m, yellow under 36m otherwise no highlight
2013-11-23 09:01:22 +00:00
fkloft
a33bdcbf38 Show link range details for partially deployed portals.
Calculates the link range for portals with <8 resonators as well, but uses a dashed circle and a striked-through range value for those.

The tooltip over the range value in the details pane shows base range, link amp boost and total range.

The range for portals with missing resonators can be important because links with shorter lengths might originate here. Those will collapse when the total link range drops below their length, but not as soon as a resonator is destroyed.
2013-10-16 19:29:05 +02:00
Jon Atkins
54997ac9bc add portal hack counts/cooldown time, and mitigation values, to the portal details panel 2013-09-19 00:51:28 +01:00
Jon Atkins
a9c9d5ff41 utility functions to
- get mods from portal details, filtered by type and sorted by strength
- get mitigation values
TODO: convert existing plugins to use these new functions
2013-09-18 07:45:30 +01:00
Jon Atkins
81d0cb0ed8 create function to get portal image URL from details - and perform any necessary default URL replacement and https conversion 2013-08-27 18:16:02 +01:00
Jon Atkins
40cd3044f0 change to how the 4th link amp combines to calculate portal range - it appears the 3rd + 4th are both 1/4, to give a total of 3 times the range with rare link amps 2013-07-06 19:36:26 +01:00
Jon Atkins
c552742def add link amp mod range calculation to portal range
(it involves some guessing, as only 'rare' ones have been seen so far)
alternative to #392
part of #374
2013-06-26 21:53:02 +01:00
Jon Atkins
895671d860 the ada refactor/java virus can mean a player owns resonators of a higher level than himself. make sure we don't end up with negative values in this case
fix #322
2013-05-27 01:56:26 +01:00
vita10gy
135d4b893d Move potentialPortalLevel to main for common usage 2013-04-12 22:53:30 -05:00
Fragger
302ab34ad3 Add missing return data from getAttackApGain for Compute AP statistics plugin 2013-03-15 04:48:49 -07:00
billybennett
1dfeb791b0 Friendly/Enemy AP gain
Should merge now.
2013-03-11 05:39:08 -04:00
Kevin
f3606d6f0f Fix neutral portals have broken random details 2013-03-02 22:54:30 -08:00
Shawn Clark
51a4dabfc9 nits - object field whitespace 2013-02-19 23:17:19 -08:00
Shawn Clark
f2bdcb9fc9 Fixing nits 2013-02-19 23:15:46 -08:00
Shawn Clark
ba0ff06771 Refactored getDestroyAP
- Split the calculations into getAttackApGain. Allows for other
functions to get the AP data.
- Renamed to getAttackApGainText as it isn't just destroying it is also
capturing. Originally the method only calculated the destroy values.
2013-02-19 20:41:04 -08:00
Pavol Babincak
904be9b5b1 Display current energy for whole portal 2013-02-09 17:42:01 +01:00
Stefan Breunig
5f42c6a2d0 fix portal range being larger zero even if resos are missing 2013-02-05 16:06:57 +01:00
Stefan Breunig
e61eeab2bd well fix it right 2013-02-05 14:26:57 +01:00
Stefan Breunig
b0d5695b44 fix portal level calc for low level portals 2013-02-05 14:24:49 +01:00
Stefan Breunig
a07ee0cc3d so others may contribute 2013-02-01 13:11:14 +01:00