-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1 Pulled through map data and replaced location objects with locatio…
…n IDs.
- Loading branch information
1 parent
8ae1956
commit 4dcaccd
Showing
10 changed files
with
67 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{} | ||
{"minion":[{"contentId":38,"icon":60438,"iconPath":"/i/060000/060438.png","job":{"level":50,"name":{"de":"Minenarbeiter (Abbauen)","en":"Mining","fr":"Extraction de minerai","ja":"採掘"}},"location":145},{"contentId":48,"icon":60432,"iconPath":"/i/060000/060432.png","job":{"level":50,"name":{"de":"Gärtner (Abernten)","en":"Harvesting","fr":"Fauche","ja":"草刈"}},"location":152},{"contentId":24,"icon":60929,"iconPath":"/i/060000/060929.png","job":{"level":20,"name":{"de":"Angeln","en":"Fishing","fr":"Pêche","ja":"釣り"}},"location":135},{"contentId":30,"icon":60929,"iconPath":"/i/060000/060929.png","job":{"level":40,"name":{"de":"Angeln","en":"Fishing","fr":"Pêche","ja":"釣り"}},"location":145},{"contentId":188,"icon":60929,"iconPath":"/i/060000/060929.png","job":{"level":53,"name":{"de":"Angeln","en":"Fishing","fr":"Pêche","ja":"釣り"}},"location":397},{"contentId":237,"icon":60929,"iconPath":"/i/060000/060929.png","job":{"level":50,"name":{"de":"Angeln","en":"Fishing","fr":"Pêche","ja":"釣り"}},"location":137},{"contentId":244,"icon":60929,"iconPath":"/i/060000/060929.png","job":{"level":70,"name":{"de":"Speerfischen","en":"Spear fishing","fr":"Pêche au harpon","ja":"銛"},"stars":0},"location":613}]} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const fs = require('fs'); | ||
const helper = require('../xivapi/helper'); | ||
const items = require('../../data/items.json'); | ||
|
||
/** | ||
* Parse recipe data from XIVAPI. | ||
*/ | ||
module.exports = (data) => { | ||
const config = require('../config/data').maps; | ||
const parsed = data.map(territoryType => ({ | ||
id: territoryType.id, | ||
name: helper.getLocalisedNamesObject(territoryType.PlaceName), | ||
region: helper.getLocalisedNamesObject(territoryType.PlaceNameRegion) | ||
})).filter(map => map.name.en) | ||
|
||
fs.writeFileSync( | ||
'../data/maps.json', | ||
JSON.stringify(parsed), | ||
'utf8' | ||
); | ||
console.info(`${config.log} data parsed.`); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters