24 Commits

Author SHA1 Message Date
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