Skip to content

Instantly share code, notes, and snippets.

@AndreasPizsa
Last active November 1, 2018 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreasPizsa/18551d89ca6f6e81204924b7876974c2 to your computer and use it in GitHub Desktop.
Save AndreasPizsa/18551d89ca6f6e81204924b7876974c2 to your computer and use it in GitHub Desktop.
{
"": {
"// you'll need images for all the `playerItems` below" : "",
"// just append the item id to `assetsBaseUrl`": "",
"assetsBaseUrl": "https://via.placeholder.com/150?",
"// URL for the language file.":"",
"languageUrl": "https://bigfarm-html5.goodgamestudios.com/languages/latest/de.json"
},
"payoutTypes": [{
"// that's the hardcoded id for the 'left' side":"",
"id": "individualSubscription",
"// ignore `playerItems` this for `individualSubscription`":"",
"playerItems": [
"63166"
],
"price": {
"// `amount` is mutiplied by 10 because floats/doubles and rounding...": "",
"amount": 499,
"currency": "EUR"
},
"// `checkoutUrl` for the 'Buy' button if subscription is _not_ active": "",
"checkoutUrl": "https://example.com/",
"// validUntil is synonymous to 'next billing date'": "",
"// This should be shown in the user’s locale format": "",
"validUntil": "2018-11-26T14:38:08.457Z",
"// ...except that if the subscription was cancelled, it will not be": "",
"// billed again but it is still valid until `validUntil`": "",
"wasCancelled": false
},
{
"id" : "allianceSubscription",
"playerItems": [
"11111"
],
"price": {
"amount": 999,
"currency": "EUR"
},
"checkoutUrl": "https://example.com/",
"validUntil": "2018-11-26T14:38:08.457Z",
"wasCancelled": false,
"allianceSubscribers": 3,
"// These are the items in the table":"",
"// Each entry of the `boosterTiers` array is one table column": "",
"boosterTiers": [
{
"// `from` is essentially the column header ": "",
"from" : 1,
"// These are the cell values of this column, per line": "",
"// `72002` is the line label (it's an item ID)": "",
"// `2` is the cell content for that line": "",
"items": [
[ 72002, 2 ],
[ 72004, 2 ],
[ 72006, 1 ],
[ 72014, 2 ],
[ 72015, 2 ],
[ 72003, 0 ],
[ 72005, 0 ],
[ 72009, 0 ],
[ 72010, 0 ],
[ 72016, 0 ],
[ 72017, 0 ],
[ 72013, 0 ],
[ 72011, 0 ],
[ 72012, 0 ],
[ 72008, 0 ],
[ 72007, 0 ]
]
},
{
"from" : 2,
"items": [
[ 72002, 2 ],
[ 72004, 2 ],
[ 72006, 1 ],
[ 72014, 2 ],
[ 72015, 2 ],
[ 72003, 1 ],
[ 72005, 1 ],
[ 72009, 5 ],
[ 72010, 10],
[ 72016, 0 ],
[ 72017, 0 ],
[ 72013, 0 ],
[ 72011, 0 ],
[ 72012, 0 ],
[ 72008, 0 ],
[ 72007, 0 ]
]
},
{
"from" : 3,
"items": [
[ 72002, 2 ],
[ 72004, 2 ],
[ 72006, 1 ],
[ 72014, 4 ],
[ 72015, 4 ],
[ 72003, 1 ],
[ 72005, 1 ],
[ 72009, 5 ],
[ 72010, 10],
[ 72016, 5 ],
[ 72017, 5 ],
[ 72013, 5 ],
[ 72011, 0 ],
[ 72012, 0 ],
[ 72008, 0 ],
[ 72007, 0 ]
]
},
{
"from" : 4,
"items": [
[ 72002, 4 ],
[ 72004, 4 ],
[ 72006, 1 ],
[ 72014, 4 ],
[ 72015, 4 ],
[ 72003, 2 ],
[ 72005, 2 ],
[ 72009, 5 ],
[ 72010, 10],
[ 72016, 5 ],
[ 72017, 5 ],
[ 72013, 5 ],
[ 72011, 2 ],
[ 72012, 2 ],
[ 72008, 0 ],
[ 72007, 0 ]
]
},
{
"from" : 5,
"items": [
[ 72002, 4 ],
[ 72004, 4 ],
[ 72006, 1 ],
[ 72014, 6 ],
[ 72015, 6 ],
[ 72003, 2 ],
[ 72005, 2 ],
[ 72009, 10 ],
[ 72010, 20],
[ 72016, 5 ],
[ 72017, 5 ],
[ 72013, 5 ],
[ 72011, 2 ],
[ 72012, 2 ],
[ 72008, 3 ],
[ 72007, 0 ]
]
},
{
"from" : 6,
"items": [
[ 72002, 4 ],
[ 72004, 4 ],
[ 72006, 1 ],
[ 72014, 6 ],
[ 72015, 6 ],
[ 72003, 3 ],
[ 72005, 3 ],
[ 72009, 10 ],
[ 72010, 20],
[ 72016, 10 ],
[ 72017, 10 ],
[ 72013, 10 ],
[ 72011, 4 ],
[ 72012, 4 ],
[ 72008, 3 ],
[ 72007, 0 ]
]
},
{
"from" : 7,
"items": [
[ 72002, 6 ],
[ 72004, 6 ],
[ 72006, 1 ],
[ 72014, 6 ],
[ 72015, 6 ],
[ 72003, 3 ],
[ 72005, 3 ],
[ 72009, 15 ],
[ 72010, 30],
[ 72016, 10 ],
[ 72017, 10 ],
[ 72013, 10 ],
[ 72011, 4 ],
[ 72012, 4 ],
[ 72008, 6 ],
[ 72007, 0 ]
]
},
{
"from" : 8,
"items": [
[ 72002, 6 ],
[ 72004, 6 ],
[ 72006, 1 ],
[ 72014, 10 ],
[ 72015, 10 ],
[ 72003, 4 ],
[ 72005, 4 ],
[ 72009, 15 ],
[ 72010, 30],
[ 72016, 10 ],
[ 72017, 10 ],
[ 72013, 10 ],
[ 72011, 6 ],
[ 72012, 6 ],
[ 72008, 6 ],
[ 72007, 0 ]
]
},
{
"from" : 9,
"items": [
[ 72002, 6 ],
[ 72004, 6 ],
[ 72006, 2 ],
[ 72014, 10 ],
[ 72015, 10 ],
[ 72003, 4 ],
[ 72005, 4 ],
[ 72009, 15 ],
[ 72010, 30],
[ 72016, 15 ],
[ 72017, 15 ],
[ 72013, 15 ],
[ 72011, 6 ],
[ 72012, 6 ],
[ 72008, 9 ],
[ 72007, 0 ]
]
},
{
"from" : 10,
"items": [
[ 72002, 8 ],
[ 72004, 8 ],
[ 72006, 2 ],
[ 72014, 10 ],
[ 72015, 10 ],
[ 72003, 5 ],
[ 72005, 5 ],
[ 72009, 15 ],
[ 72010, 30],
[ 72016, 15 ],
[ 72017, 15 ],
[ 72013, 15 ],
[ 72011, 8 ],
[ 72012, 8 ],
[ 72008, 9 ],
[ 72007, 0 ]
]
},
{
"from" : 11,
"items": [
[ 72002, 8 ],
[ 72004, 8 ],
[ 72006, 2 ],
[ 72014, 14 ],
[ 72015, 14 ],
[ 72003, 5 ],
[ 72005, 5 ],
[ 72009, 20 ],
[ 72010, 40],
[ 72016, 15 ],
[ 72017, 15 ],
[ 72013, 15 ],
[ 72011, 8 ],
[ 72012, 8 ],
[ 72008, 11 ],
[ 72007, 0 ]
]
},
{
"from" : 12,
"items": [
[ 72002, 8 ],
[ 72004, 8 ],
[ 72006, 2 ],
[ 72014, 14 ],
[ 72015, 14 ],
[ 72003, 6 ],
[ 72005, 6 ],
[ 72009, 20 ],
[ 72010, 40],
[ 72016, 20 ],
[ 72017, 20 ],
[ 72013, 20 ],
[ 72011, 10 ],
[ 72012, 10 ],
[ 72008, 11 ],
[ 72007, 0 ]
]
},
{
"from" : 13,
"items": [
[ 72002, 10 ],
[ 72004, 10 ],
[ 72006, 2 ],
[ 72014, 14 ],
[ 72015, 14 ],
[ 72003, 6 ],
[ 72005, 6 ],
[ 72009, 25 ],
[ 72010, 50],
[ 72016, 20 ],
[ 72017, 20 ],
[ 72013, 20 ],
[ 72011, 10 ],
[ 72012, 10 ],
[ 72008, 14 ],
[ 72007, 0 ]
]
},
{
"from" : 14,
"items": [
[ 72002, 10 ],
[ 72004, 10 ],
[ 72006, 2 ],
[ 72014, 20 ],
[ 72015, 20 ],
[ 72003, 7 ],
[ 72005, 7 ],
[ 72009, 25 ],
[ 72010, 50],
[ 72016, 20 ],
[ 72017, 20 ],
[ 72013, 20 ],
[ 72011, 12 ],
[ 72012, 12 ],
[ 72008, 14 ],
[ 72007, 0 ]
]
},
{
"from" : 15,
"items": [
[ 72002, 10 ],
[ 72004, 10 ],
[ 72006, 2 ],
[ 72014, 20 ],
[ 72015, 20 ],
[ 72003, 7 ],
[ 72005, 7 ],
[ 72009, 25 ],
[ 72010, 50],
[ 72016, 25 ],
[ 72017, 25 ],
[ 72013, 25 ],
[ 72011, 12 ],
[ 72012, 12 ],
[ 72008, 17 ],
[ 72007, 5 ]
]
},
{
"from" : 16,
"items": [
[ 72002, 12 ],
[ 72004, 12 ],
[ 72006, 2 ],
[ 72014, 20 ],
[ 72015, 20 ],
[ 72003, 8 ],
[ 72005, 8 ],
[ 72009, 25 ],
[ 72010, 50],
[ 72016, 25 ],
[ 72017, 25 ],
[ 72013, 25 ],
[ 72011, 14 ],
[ 72012, 14 ],
[ 72008, 17 ],
[ 72007, 5 ]
]
},
{
"from" : 17,
"items": [
[ 72002, 12 ],
[ 72004, 12 ],
[ 72006, 2 ],
[ 72014, 24 ],
[ 72015, 24 ],
[ 72003, 8 ],
[ 72005, 8 ],
[ 72009, 30 ],
[ 72010, 60],
[ 72016, 25 ],
[ 72017, 25 ],
[ 72013, 25 ],
[ 72011, 14 ],
[ 72012, 14 ],
[ 72008, 20 ],
[ 72007, 5 ]
]
},
{
"from" : 18,
"items": [
[ 72002, 12 ],
[ 72004, 12 ],
[ 72006, 2 ],
[ 72014, 24 ],
[ 72015, 24 ],
[ 72003, 9 ],
[ 72005, 9 ],
[ 72009, 30 ],
[ 72010, 60],
[ 72016, 30 ],
[ 72017, 30 ],
[ 72013, 30 ],
[ 72011, 16 ],
[ 72012, 16 ],
[ 72008, 20 ],
[ 72007, 5 ]
]
},
{
"from" : 19,
"items": [
[ 72002, 14 ],
[ 72004, 14 ],
[ 72006, 3 ],
[ 72014, 28 ],
[ 72015, 28 ],
[ 72003, 9 ],
[ 72005, 9 ],
[ 72009, 30 ],
[ 72010, 60],
[ 72016, 30 ],
[ 72017, 30 ],
[ 72013, 30 ],
[ 72011, 16 ],
[ 72012, 16 ],
[ 72008, 23 ],
[ 72007, 5 ]
]
},
{
"from" : 20,
"items": [
[ 72002, 14 ],
[ 72004, 14 ],
[ 72006, 3 ],
[ 72014, 28 ],
[ 72015, 28 ],
[ 72003, 10 ],
[ 72005, 10 ],
[ 72009, 35 ],
[ 72010, 70],
[ 72016, 30 ],
[ 72017, 30 ],
[ 72013, 30 ],
[ 72011, 18 ],
[ 72012, 18 ],
[ 72008, 23 ],
[ 72007, 10 ]
]
},
{
"from" : 21,
"items": [
[ 72002, 14 ],
[ 72004, 14 ],
[ 72006, 3 ],
[ 72014, 32 ],
[ 72015, 32 ],
[ 72003, 10 ],
[ 72005, 10 ],
[ 72009, 35 ],
[ 72010, 70 ],
[ 72016, 35 ],
[ 72017, 35 ],
[ 72013, 35 ],
[ 72011, 18 ],
[ 72012, 18 ],
[ 72008, 26 ],
[ 72007, 10 ]
]
},
{
"from" : 22,
"items": [
[ 72002, 16 ],
[ 72004, 16 ],
[ 72006, 3 ],
[ 72014, 32 ],
[ 72015, 32 ],
[ 72003, 12 ],
[ 72005, 12 ],
[ 72009, 35 ],
[ 72010, 70 ],
[ 72016, 35 ],
[ 72017, 35 ],
[ 72013, 35 ],
[ 72011, 20 ],
[ 72012, 20 ],
[ 72008, 26 ],
[ 72007, 10 ]
]
},
{
"from" : 23,
"items": [
[ 72002, 16 ],
[ 72004, 16 ],
[ 72006, 3 ],
[ 72014, 36 ],
[ 72015, 36 ],
[ 72003, 12 ],
[ 72005, 12 ],
[ 72009, 40 ],
[ 72010, 80 ],
[ 72016, 35 ],
[ 72017, 35 ],
[ 72013, 35 ],
[ 72011, 20 ],
[ 72012, 20 ],
[ 72008, 29 ],
[ 72007, 10 ]
]
},
{
"from" : 24,
"items": [
[ 72002, 16 ],
[ 72004, 16 ],
[ 72006, 3 ],
[ 72014, 36 ],
[ 72015, 36 ],
[ 72003, 14 ],
[ 72005, 14 ],
[ 72009, 40 ],
[ 72010, 80 ],
[ 72016, 40 ],
[ 72017, 40 ],
[ 72013, 40 ],
[ 72011, 22 ],
[ 72012, 22 ],
[ 72008, 29 ],
[ 72007, 10 ]
]
},
{
"from" : 25,
"items": [
[ 72002, 18 ],
[ 72004, 18 ],
[ 72006, 4 ],
[ 72014, 40 ],
[ 72015, 44 ],
[ 72003, 14 ],
[ 72005, 14 ],
[ 72009, 40 ],
[ 72010, 80 ],
[ 72016, 40 ],
[ 72017, 40 ],
[ 72013, 40 ],
[ 72011, 22 ],
[ 72012, 22 ],
[ 72008, 32 ],
[ 72007, 15 ]
]
},
{
"from" : 26,
"items": [
[ 72002, 18 ],
[ 72004, 18 ],
[ 72006, 4 ],
[ 72014, 40 ],
[ 72015, 44 ],
[ 72003, 16 ],
[ 72005, 16 ],
[ 72009, 45 ],
[ 72010, 90 ],
[ 72016, 40 ],
[ 72017, 40 ],
[ 72013, 40 ],
[ 72011, 24 ],
[ 72012, 24 ],
[ 72008, 32 ],
[ 72007, 15 ]
]
},
{
"from" : 27,
"items": [
[ 72002, 18 ],
[ 72004, 18 ],
[ 72006, 4 ],
[ 72014, 45 ],
[ 72015, 45 ],
[ 72003, 16 ],
[ 72005, 16 ],
[ 72009, 45 ],
[ 72010, 90 ],
[ 72016, 45 ],
[ 72017, 45 ],
[ 72013, 45 ],
[ 72011, 24 ],
[ 72012, 24 ],
[ 72008, 35 ],
[ 72007, 15 ]
]
},
{
"from" : 28,
"items": [
[ 72002, 20 ],
[ 72004, 20 ],
[ 72006, 4 ],
[ 72014, 45 ],
[ 72015, 45 ],
[ 72003, 18 ],
[ 72005, 18 ],
[ 72009, 45 ],
[ 72010, 90 ],
[ 72016, 45 ],
[ 72017, 45 ],
[ 72013, 45 ],
[ 72011, 26 ],
[ 72012, 26 ],
[ 72008, 35 ],
[ 72007, 15 ]
]
},
{
"from" : 29,
"items": [
[ 72002, 20 ],
[ 72004, 20 ],
[ 72006, 4 ],
[ 72014, 50 ],
[ 72015, 50 ],
[ 72003, 18 ],
[ 72005, 18 ],
[ 72009, 50 ],
[ 72010, 100 ],
[ 72016, 45 ],
[ 72017, 45 ],
[ 72013, 45 ],
[ 72011, 26 ],
[ 72012, 26 ],
[ 72008, 38 ],
[ 72007, 15 ]
]
},
{
"from" : 30,
"items": [
[ 72002, 20 ],
[ 72004, 20 ],
[ 72006, 5 ],
[ 72014, 50 ],
[ 72015, 50 ],
[ 72003, 20 ],
[ 72005, 20 ],
[ 72009, 50 ],
[ 72010, 100 ],
[ 72016, 50 ],
[ 72017, 50 ],
[ 72013, 50 ],
[ 72011, 30 ],
[ 72012, 30 ],
[ 72008, 40 ],
[ 72007, 25 ]
]
}
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment