Commit Graph

22 Commits

Author SHA1 Message Date
909c760061 * New passcode redemption plaintext format using Unicode chars
* Don't use digit format for plaintext redemption
* Remove unneecessary 'return true' statements
* Passcode guessing doesn't dirty up the results window as much
* Add asterisks to names for all types of guess
2013-04-27 22:37:21 -05:00
297cac1a18 * Proper digit formatting for passcode redemptions
* Add redeeming example used in pull request comments to json_examples/redeeming.js
2013-04-25 04:40:23 -05:00
2d662f9e79 = IITC Passcode Redemption overhaul, part 2
* Display random words of encouragement for successfully redeemed passcodes
* Refactor redeeming into smaller functions, using more jQuery logic
* Add redeem "handlers" - combinations of "decoders" and "formatters" for each taxonomy of item
* Add heuristic item guessing. If IITC can't figure out directly what an item is, try to guess what taxonomy of item it would be closest to. (For instance, if an item is truly unknown, but has a "rarity" attribute, it's going to be close to a modResource. Likewise, if an unknown item has a "level" attribute, it's going to be close to a resourceWithLevels.
** Tailor formatting and decoding based upon that guess. Worst case: the item is truly a mystery. Don't discard it: display it in a default format.
** Let the user know if we tried to heuristically guess an item. This won't happen unless something changes on the Ingress backend.
2013-04-25 02:11:04 -05:00
a80617e6e7 * Coding style tweaks 2013-04-24 01:11:38 -05:00
00523fc03d Completely overhauled passcode redemption.
* Show table by default, offer plaintext option for reward copy-pasting
* Use recommendations from https://plus.google.com/115907431535033114848/posts/PVV9j4fTR2m for item plaintext listing
* Break passcode redemption responses and errors into window.REDEEM_* variables
* If an item isn't known, don't simply let it slip into the Aurbis. Log it separately.
* Don't show AP or XM if the passcode didn't give any.
2013-04-23 20:21:48 -05:00
2403042179 Update redeeming.js
support for Powercubes
2013-04-14 01:02:25 +03:00
f8768acf63 add note about missing support for reporting power cubes when redeeming
need to capture the traffic to see the data format for this - tricky!
2013-04-13 22:12:34 +01:00
3bb3a4b6b2 fixed coding style (no spaces after for and if) 2013-03-07 15:04:50 +01:00
ca4ad51d93 fixed some more codingstyle issues 2013-03-07 13:32:03 +01:00
0824334d5f Merge branch 'upstream' into redeem_dlg
Conflicts:
	code/redeeming.js
2013-03-07 08:35:44 +01:00
1623c3fa9a fixed indetion 2013-03-07 08:31:25 +01:00
b30ac36ffa fix style nits 2013-03-06 00:02:28 +01:00
a448912500 Fix display of HTTP error messages for code redemption 2013-03-05 16:15:46 -06:00
967578f7ea fixed codingstyle and removed coda font 2013-03-05 13:35:09 +01:00
90ca848690 fixed indention 2013-03-05 08:56:46 +01:00
f167cd83ea changed "redeemed" to "accepted" 2013-03-05 08:55:15 +01:00
ba730111c4 Changed AP / XM Message to "+ 100 XM" 2013-03-05 08:52:56 +01:00
0afc26af4a new redeem dialog content 2013-03-05 08:52:46 +01:00
3c1c596a6a * Add detailed error messages for redemption errors (including rate-limiting, which happens sometimes).
* Reverse XMPs and resonators in redemption display
2013-03-04 15:55:01 -06:00
6bf3de0607 fix #252 by updating the wording 2013-02-21 20:15:29 +01:00
211b039be6 Parse items, AP, and XM response for passcodes, displaying information about the passcode's rewards. 2013-02-07 18:50:39 -06:00
a07ee0cc3d so others may contribute 2013-02-01 13:11:14 +01:00