Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: update gen_data scripts to use xivapi library #28

Merged
merged 10 commits into from
Jan 4, 2024
90 changes: 57 additions & 33 deletions resources/effect_id.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions resources/pet_names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const data: PetData = {
'黄宝石泰坦',
'绿宝石迦楼罗',
'琥珀宝石兽',
'黑曜宝石兽',
],
'de': [
'Smaragd-Karfunkel',
Expand Down Expand Up @@ -155,6 +156,7 @@ const data: PetData = {
'타이탄 토파즈',
'가루다 에메랄드',
'카벙클 앰버',
'카벙클 옵시디언',
],
};

Expand Down
260 changes: 73 additions & 187 deletions resources/world_id.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Auto-generated from world_id.ts
// Auto-generated from gen_world_ids.ts
// DO NOT EDIT THIS FILE DIRECTLY

// NOTE: This data is filtered to public worlds only (i.e. isPublic: true)

export type DataCenter = {
id: number;
name: string;
Expand Down Expand Up @@ -29,70 +31,6 @@ export const worldNameToWorld = (name: string): World | undefined => {
};

const data: Worlds = {
'0': {
'id': 0,
'internalName': 'crossworld',
'name': 'Dev',
'region': 0,
'userType': 0,
},
'1': {
'id': 1,
'internalName': 'reserved1',
'name': 'Dev',
'region': 0,
'userType': 0,
},
'2': {
'id': 2,
'internalName': 'c-contents',
'name': 'c-contents',
'region': 1,
'userType': 0,
},
'3': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
},
'id': 3,
'internalName': 'c-whiteae',
'name': 'c-whiteae',
'region': 1,
'userType': 1,
},
'4': {
'id': 4,
'internalName': 'c-baudinii',
'name': 'c-baudinii',
'region': 1,
'userType': 0,
},
'5': {
'id': 5,
'internalName': 'c-contents2',
'name': 'c-contents2',
'region': 1,
'userType': 0,
},
'6': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
},
'id': 6,
'internalName': 'c-funereus',
'name': 'c-funereus',
'region': 1,
'userType': 1,
},
'16': {
'id': 16,
'internalName': 'konconv',
'name': 'konconv',
'region': 1,
'userType': 0,
},
'21': {
'dataCenter': {
'id': 9,
Expand Down Expand Up @@ -137,27 +75,6 @@ const data: Worlds = {
'region': 1,
'userType': 1,
},
'25': {
'id': 25,
'internalName': 'Chaos',
'name': 'Chaos',
'region': 1,
'userType': 1,
},
'26': {
'id': 26,
'internalName': 'Hecatoncheir',
'name': 'Hecatoncheir',
'region': 1,
'userType': 1,
},
'27': {
'id': 27,
'internalName': 'Moomba',
'name': 'Moomba',
'region': 1,
'userType': 1,
},
'28': {
'dataCenter': {
'id': 3,
Expand Down Expand Up @@ -770,13 +687,6 @@ const data: Worlds = {
'region': 1,
'userType': 5,
},
'84': {
'id': 84,
'internalName': 'Syldra',
'name': 'Syldra',
'region': 1,
'userType': 5,
},
'85': {
'dataCenter': {
'id': 6,
Expand Down Expand Up @@ -931,139 +841,115 @@ const data: Worlds = {
'region': 1,
'userType': 4,
},
'100': {
'400': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 6,
'name': 'Chaos',
},
'id': 100,
'internalName': 'dev_test',
'name': 'dev_test',
'id': 400,
'internalName': 'Sagittarius',
'name': 'Sagittarius',
'region': 1,
'userType': 0,
'userType': 5,
},
'101': {
'401': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 6,
'name': 'Chaos',
},
'id': 101,
'internalName': 'zone_test',
'name': 'zone_test',
'id': 401,
'internalName': 'Phantom',
'name': 'Phantom',
'region': 1,
'userType': 0,
'userType': 5,
},
'102': {
'402': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 7,
'name': 'Light',
},
'id': 102,
'internalName': 'trs_test',
'name': 'trs_test',
'region': 1,
'userType': 0,
},
'103': {
'id': 103,
'internalName': 'contents_test',
'name': 'contents_test',
'id': 402,
'internalName': 'Alpha',
'name': 'Alpha',
'region': 1,
'userType': 0,
'userType': 5,
},
'110': {
'403': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 7,
'name': 'Light',
},
'id': 110,
'internalName': 'b-tirica',
'name': 'b-tirica',
'id': 403,
'internalName': 'Raiden',
'name': 'Raiden',
'region': 1,
'userType': 1,
},
'111': {
'id': 111,
'internalName': 'b-contents',
'name': 'b-contents',
'region': 1,
'userType': 0,
'userType': 5,
},
'112': {
'404': {
'dataCenter': {
'id': 4,
'name': 'Aether',
'id': 11,
'name': 'Dynamis',
},
'id': 112,
'internalName': 'b-chiriri',
'name': 'b-chiriri',
'id': 404,
'internalName': 'Marilith',
'name': 'Marilith',
'region': 1,
'userType': 3,
},
'113': {
'id': 113,
'internalName': 'b-contents2',
'name': 'b-contents2',
'region': 1,
'userType': 0,
},
'114': {
'405': {
'dataCenter': {
'id': 2,
'name': 'Gaia',
'id': 11,
'name': 'Dynamis',
},
'id': 114,
'internalName': 'b-jugularis',
'name': 'b-jugularis',
'id': 405,
'internalName': 'Seraph',
'name': 'Seraph',
'region': 1,
'userType': 1,
'userType': 3,
},
'115': {
'406': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 11,
'name': 'Dynamis',
},
'id': 115,
'internalName': 'e-regia',
'name': 'e-regia',
'id': 406,
'internalName': 'Halicarnassus',
'name': 'Halicarnassus',
'region': 1,
'userType': 1,
'userType': 3,
},
'116': {
'407': {
'dataCenter': {
'id': 4,
'name': 'Aether',
'id': 11,
'name': 'Dynamis',
},
'id': 116,
'internalName': 'e-pialii',
'name': 'e-pialii',
'id': 407,
'internalName': 'Maduin',
'name': 'Maduin',
'region': 1,
'userType': 3,
},
'117': {
'id': 117,
'internalName': 'e-contents',
'name': 'e-contents',
'region': 1,
'userType': 0,
},
'118': {
'id': 118,
'internalName': 'e-contents2',
'name': 'e-contents2',
'3000': {
'dataCenter': {
'id': 12,
'name': 'NA Cloud DC (Beta)',
},
'id': 3000,
'internalName': 'Cloudtest01',
'name': 'Cloudtest01',
'region': 1,
'userType': 0,
'userType': 9,
},
'119': {
'3001': {
'dataCenter': {
'id': 1,
'name': 'Elemental',
'id': 12,
'name': 'NA Cloud DC (Beta)',
},
'id': 119,
'internalName': 'e-coloria',
'name': 'e-coloria',
'id': 3001,
'internalName': 'Cloudtest02',
'name': 'Cloudtest02',
'region': 1,
'userType': 1,
'userType': 9,
},
} as const;

Expand Down
Loading