= Redemption tweaks, round 3

* Pass the entire acquired item into resource decoders instead of the attribute in question. Generic 'resource' objects have things we need to examine.
* Formatted support for the `resource' taxonomy (portal keys and JARVIS/ADA). Remove standard 'default' taxonomy in favor of this.
* Let individual items override their own primary key (for example, JARVIS/ADA are both a FLIP_CARD, but we don't want to smash them together)
* Let the server-side item name override the "hard-coded" name in IITC
* Assuming that passcodes can eventually work like portal hacks, add support for the MEDIA and PORTAL_LINK_KEY item types.
* Change plaintext and HTML display for modResources in anticipation of link amplifiers
* Log entire JSON response to the console if we have to guess about items.
* Add more encouragement.
* Add Jarvis/ADA JSON responses, fake media items, and fake portal keys to json_examples.
This commit is contained in:
Morgan Jones
2013-05-25 00:02:15 -06:00
parent 3f25d793a8
commit 1b2baf5a88
2 changed files with 237 additions and 88 deletions

View File

@ -1878,12 +1878,13 @@
},
"requiredLevel": 6
},
"doesNotExist": {
"resourceWithLevels": {
"resourceType": "MEDIA",
"level": 8
},
"powerCube": {
"energy": 6000
"storyItem": {
"shortDescription": "INGRESS_REPORT_42",
"primaryUrl": "http://www.nianticproject.com"
}
}
],
@ -1895,13 +1896,38 @@
"playerId": "00000000000000000000000000000000.c",
"acquisitionTimestampMs": "1365600000000"
},
"modResource": {
"resourceType": "PORTAL_TURRET",
"stats": {
"MITIGATION": "6"
"accessLevel": {
"failure": {
"isAllowed": false,
"requiredLevel": 6
},
"displayName": "Portal Turret",
"rarity": "VERY_RARE"
"requiredLevel": 6
},
"resourceWithLevels": {
"resourceType": "MEDIA",
"level": 8
},
"storyItem": {
"shortDescription": "INGRESS_REPORT_42",
"primaryUrl": "http://www.nianticproject.com"
}
}
],
[
"00000000000000000000000000000000.5",
1365600000000,
{
"inInventory": {
"playerId": "00000000000000000000000000000000.c",
"acquisitionTimestampMs": "1365600000000"
},
"resource": {
"resourceType": "PORTAL_LINK_KEY",
"displayName": "Portal Key"
},
"portalCoupler": {
"portalGuid": "00000000000000000000000000000000.7",
"portalTitle": "Portal Name"
}
}
],
@ -1924,7 +1950,49 @@
"resourceType": "SUPER_SECRET"
}
}
],
[
"00000000000000000000000000000000.5",
1365600000000,
{
"inInventory": {
"playerId": "00000000000000000000000000000000.c",
"acquisitionTimestampMs": "1365600000000"
},
"resource": {
"resourceType": "FLIP_CARD",
"resourceRarity": "VERY_RARE"
},
"displayName": {
"displayDescription": "The ADA Refactor can be used to reverse the alignment of an Enlightened Portal.",
"displayName": "ADA Refactor"
},
"flipCard": {
"flipCardType": "ADA"
}
}
],
[
"00000000000000000000000000000000.5",
1365600000000,
{
"inInventory": {
"playerId": "00000000000000000000000000000000.c",
"acquisitionTimestampMs": "1365600000000"
},
"resource": {
"resourceType": "FLIP_CARD",
"resourceRarity": "VERY_RARE"
},
"displayName": {
"displayDescription": "The JARVIS Virus can be used to reverse the alignment of a Resistance Portal.",
"displayName": "JARVIS Virus"
},
"flipCard": {
"flipCardType": "JARVIS"
}
}
]
]
}
}
}