diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 13:54:52 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 13:54:52 +0100 |
commit | bc89603f0d673c8f1b9ca7948ddb5d3a22dc0b15 (patch) | |
tree | 1c5a44b35fc966abca05f3ec6cdce9cd7e3a9f18 | |
parent | Card data parsing, part 2 (diff) | |
download | seven-wonders-bc89603f0d673c8f1b9ca7948ddb5d3a22dc0b15.tar.gz seven-wonders-bc89603f0d673c8f1b9ca7948ddb5d3a22dc0b15.tar.bz2 seven-wonders-bc89603f0d673c8f1b9ca7948ddb5d3a22dc0b15.zip |
Normalize wonders.json for easier parsing
-rw-r--r-- | src/main/resources/org/luxons/sevenwonders/game/data/wonders.json | 547 |
1 files changed, 436 insertions, 111 deletions
diff --git a/src/main/resources/org/luxons/sevenwonders/game/data/wonders.json b/src/main/resources/org/luxons/sevenwonders/game/data/wonders.json index 8d89d2fe..b6796ce2 100644 --- a/src/main/resources/org/luxons/sevenwonders/game/data/wonders.json +++ b/src/main/resources/org/luxons/sevenwonders/game/data/wonders.json @@ -1,113 +1,438 @@ [ - {"name": "alexandria", - "a": {"resource": "G", - "stages": [ - {"requirements": "SS", "points": 3}, - {"requirements": "OO", "resource": "C/O/W/S"}, - {"requirements": "GG", "points": 7} - ] - }, - "b": {"resource": "G", - "stages": [ - {"requirements": "CC", "resource": "C/O/W/S"}, - {"requirements": "WW", "resource": "L/G/P"}, - {"requirements": "SSS", "points": 7} - ] - }}, - - {"name": "babylon", - "a": {"resource": "C", - "stages": [ - {"requirements": "CC", "points": 3}, - {"requirements": "WWW", "science": "any"}, - {"requirements": "CCCC", "points": 7} - ] - }, - "b": {"resource": "C", - "stages": [ - {"requirements": "CL", "points": 3}, - {"requirements": "GWW", "custom": "play2"}, - {"requirements": "CCCP", "science": "any"} - ] - }}, - - {"name": "ephesos", - "a": {"resource": "P", - "stages": [ - {"requirements": "SS", "points": 3}, - {"requirements": "WW", "coins": 9}, - {"requirements": "PP", "points": 7} - ] - }, - "b": {"resource": "P", - "stages": [ - {"requirements": "SS", "points": 2, "coins": 4}, - {"requirements": "WW", "points": 3, "coins": 4}, - {"requirements": "GPL", "points": 5, "coins": 4} - ] - }}, - - {"name": "gizah", - "a": {"resource": "S", - "stages": [ - {"requirements": "SS", "points": 3}, - {"requirements": "WWW", "points": 5}, - {"requirements": "SSSS", "points": 7} - ] - }, - "b": {"resource": "S", - "stages": [ - {"requirements": "WW", "points": 3}, - {"requirements": "SSS", "points": 5}, - {"requirements": "CCC", "points": 5}, - {"requirements": "PSSSS", "points": 7} - ] - }}, - - {"name": "halikarnassus", - "a": {"resource": "L", - "stages": [ - {"requirements": "CC", "points": 3}, - {"requirements": "OOO", "custom": "discard"}, - {"requirements": "LL", "points": 7} - ] - }, - "b": {"resource": "L", - "stages": [ - {"requirements": "OO", "points": 2, "custom": "discard"}, - {"requirements": "CCC", "points": 1, "custom": "discard"}, - {"requirements": "GPL", "custom": "discard"} - ] - }}, - - {"name": "olympia", - "a": {"resource": "W", - "stages": [ - {"requirements": "WW", "points": 3}, - {"requirements": "SS", "custom": "1free"}, - {"requirements": "OO", "points": 7} - ] - }, - "b": {"resource": "W", - "stages": [ - {"requirements": "WW", "custom": "discount"}, - {"requirements": "SS", "points": 5}, - {"requirements": "LOO", "custom": "guild"} - ] - }}, - - {"name": "rhodos", - "a": {"resource": "O", - "stages": [ - {"requirements": "WW", "points": 3}, - {"requirements": "CCC", "military": 2}, - {"requirements": "OOOO", "points": 7} - ] - }, - "b": {"resource": "O", - "stages": [ - {"requirements": "SSS", "military": 1, "points": 3, "coins": 3}, - {"requirements": "OOOO", "military": 1, "points": 4, "coins": 4} - ] - }} + { + "name": "alexandria", + "a": { + "initialResource": "G", + "stages": [ + { + "requirements": { + "resources": "SS" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "OO" + }, + "effects": { + "production": "C/O/W/S" + } + }, + { + "requirements": { + "resources": "GG" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "G", + "stages": [ + { + "requirements": { + "resources": "CC" + }, + "effects": { + "production": "C/O/W/S" + } + }, + { + "requirements": { + "resources": "WW" + }, + "effects": { + "production": "L/G/P" + } + }, + { + "requirements": { + "resources": "SSS" + }, + "effects": { + "points": 7 + } + } + ] + } + }, + { + "name": "babylon", + "a": { + "initialResource": "C", + "stages": [ + { + "requirements": { + "resources": "CC" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "WWW" + }, + "effects": { + "science": "any" + } + }, + { + "requirements": { + "resources": "CCCC" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "C", + "stages": [ + { + "requirements": { + "resources": "CL" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "GWW" + }, + "effects": { + "custom": "play2" + } + }, + { + "requirements": { + "resources": "CCCP" + }, + "effects": { + "science": "any" + } + } + ] + } + }, + { + "name": "ephesos", + "a": { + "initialResource": "P", + "stages": [ + { + "requirements": { + "resources": "SS" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "WW" + }, + "effects": { + "coins": 9 + } + }, + { + "requirements": { + "resources": "PP" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "P", + "stages": [ + { + "requirements": { + "resources": "SS" + }, + "effects": { + "points": 2, + "coins": 4 + } + }, + { + "requirements": { + "resources": "WW" + }, + "effects": { + "points": 3, + "coins": 4 + } + }, + { + "requirements": { + "resources": "GPL" + }, + "effects": { + "points": 5, + "coins": 4 + } + } + ] + } + }, + { + "name": "gizah", + "a": { + "initialResource": "S", + "stages": [ + { + "requirements": { + "resources": "SS" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "WWW" + }, + "effects": { + "points": 5 + } + }, + { + "requirements": { + "resources": "SSSS" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "S", + "stages": [ + { + "requirements": { + "resources": "WW" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "SSS" + }, + "effects": { + "points": 5 + } + }, + { + "requirements": { + "resources": "CCC" + }, + "effects": { + "points": 5 + } + }, + { + "requirements": { + "resources": "PSSSS" + }, + "effects": { + "points": 7 + } + } + ] + } + }, + { + "name": "halikarnassus", + "a": { + "initialResource": "L", + "stages": [ + { + "requirements": { + "resources": "CC" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "OOO" + }, + "effects": { + "custom": "discard" + } + }, + { + "requirements": { + "resources": "LL" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "L", + "stages": [ + { + "requirements": { + "resources": "OO" + }, + "effects": { + "points": 2, + "custom": "discard" + } + }, + { + "requirements": { + "resources": "CCC" + }, + "effects": { + "points": 1, + "custom": "discard" + } + }, + { + "requirements": { + "resources": "GPL" + }, + "effects": { + "custom": "discard" + } + } + ] + } + }, + { + "name": "olympia", + "a": { + "initialResource": "W", + "stages": [ + { + "requirements": { + "resources": "WW" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "SS" + }, + "effects": { + "custom": "1free" + } + }, + { + "requirements": { + "resources": "OO" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "W", + "stages": [ + { + "requirements": { + "resources": "WW" + }, + "effects": { + "custom": "discount" + } + }, + { + "requirements": { + "resources": "SS" + }, + "effects": { + "points": 5 + } + }, + { + "requirements": { + "resources": "LOO" + }, + "effects": { + "custom": "guild" + } + } + ] + } + }, + { + "name": "rhodos", + "a": { + "initialResource": "O", + "stages": [ + { + "requirements": { + "resources": "WW" + }, + "effects": { + "points": 3 + } + }, + { + "requirements": { + "resources": "CCC" + }, + "effects": { + "military": 2 + } + }, + { + "requirements": { + "resources": "OOOO" + }, + "effects": { + "points": 7 + } + } + ] + }, + "b": { + "initialResource": "O", + "stages": [ + { + "requirements": { + "resources": "SSS" + }, + "effects": { + "military": 1, + "points": 3, + "coins": 3 + } + }, + { + "requirements": { + "resources": "OOOO" + }, + "effects": { + "military": 1, + "points": 4, + "coins": 4 + } + } + ] + } + } ] |