As I mentioned in the post on ActionPoints … additional AP can be obtained from Glyph Hacking … 100 additional AP is added if the Glyph Hack is performed on an enemy portal.
+------------+--------------------+------------+
| Portal lvl | Perfect hack bonus | Time limit |
+------------+--------------------+------------+
| 1 | +28% | 20s |
| 2 | +40% | 20s |
| 3 | +55% | 20s |
| 4 | +55% | 19s |
| 5 | +55% | 18s |
| 6 | +80% | 17s |
| 7 | +80% | 16s |
| 8 | +112% | 15s |
+------------+--------------------+------------+
Hack bonus:
B_{hack} = 10 × G_{correct} + P × B_{perfect}Speed bonus:
B_{speed} = P × ⌊100 × T_{left} ÷ T_{limit}⌋AP:
AP_{base} = 50 × G_{correct}AP_{bonus} = 20 × P × 2^{0.5×Gcorrect}
AP = AP_{base} + AP_{bonus} + B_{speed}
where:
- P is 1 if all glyphs were drawn correctly and 0 otherwise (P = ⌊G_{correct} ÷ G_{total}⌋),
- B_{hack} is the hacking bonus,
- G_{correct} is the number of glyphs you got correct,
- G_{total} is the total number of glyphs in the sequence,
- B_{perfect} is the perfect hack bonus corresponding to the number of glyphs in the sequence, as shown in the table above,
- B_{speed} is the speed bonus,
- T_{left} is the time remaining on the clock,
- T_{limit} is the total time you were given to draw the sequence, as shown in the table above,
- AP_{base} is the amount of AP earned for correctly-drawn glyphs,
- AP_{bonus} is bonus AP earned for drawing all glyphs correctly,
- AP is the total amount of AP earned from the glyph hack. (Note: Does not include AP from hacking enemy portals.)
Example: Suppose you perform a perfect glyph hack on a L7 portal with 5 seconds left. Your hacking bonus would be 10% × 4 + 1 × 80% = 120% (4 correct glyphs and perfect hack bonus). Your speed bonus would be 1 × ⌊100 × 5 ÷ 16⌋ = 31% (5 out of 16 seconds left). Finally, you would earn 8 glyph hacking points and 50 × 4 + 20 × 1 × 2^{0.5×4} + 31 = 311 AP.