Skip to content

Commit

Permalink
Fix DB
Browse files Browse the repository at this point in the history
  • Loading branch information
Murakumo-JP committed Jul 11, 2024
1 parent a1e7add commit 2589c48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 31 deletions.
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

46 changes: 23 additions & 23 deletions Assets/js/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function FILL_DB_SKILLS(DB){
let key = this.getAttribute('db-skill');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let eorzeadb = skill['eorzeadb'] ? '<br/><a class="eorzeadb_link class_quest" href="'+skill['eorzeadb']+'">Задание на получение</a>' : '';
Expand Down Expand Up @@ -66,7 +66,7 @@ function FILL_DB_SKILLS(DB){
<p>`+skill['radius']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -75,7 +75,7 @@ function FILL_DB_SKILLS_PASSIVE(DB){
let key = this.getAttribute('db-skill-passive');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let eorzeadb = skill['eorzeadb'] ? '<br/><a class="eorzeadb_link class_quest" href="'+skill['eorzeadb']+'">Задание на получение</a>' : '';
Expand All @@ -101,7 +101,7 @@ function FILL_DB_SKILLS_PASSIVE(DB){
<p>Ур. `+skill['level']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -110,7 +110,7 @@ function FILL_DB_SKILLS_PVP(DB){
let key = this.getAttribute('db-skill-pvp');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let classification = skill['classification'] ? '<td class="classification">'+skill['classification']+'</td>' : '';
Expand Down Expand Up @@ -138,7 +138,7 @@ function FILL_DB_SKILLS_PVP(DB){
<p>`+skill['radius']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -147,7 +147,7 @@ function FILL_DB_PVP_ACTIONS(DB){
let key = this.getAttribute('db-pvp-actions');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
this.innerHTML = `
Expand Down Expand Up @@ -175,7 +175,7 @@ function FILL_DB_PVP_ACTIONS(DB){
<p>`+skill['radius']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -184,7 +184,7 @@ function FILL_DB_SKILLS_LIMITED(DB){
let key = this.getAttribute('db-skill-limited');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
this.innerHTML = `
Expand Down Expand Up @@ -212,7 +212,7 @@ function FILL_DB_SKILLS_LIMITED(DB){
<p>`+skill['radius']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -221,7 +221,7 @@ function FILL_DB_SKILLS_MENU(DB){
let key = this.getAttribute('db-skill-menu');
let skill = DB[key];
if(skill === undefined){
//console.error('Skill "' + key + '" not found')
//console.error('Skill "' + key + '" not found');
return
}
this.innerHTML = `<p title="`+ skill['name'] +`"></p><img src="`+skill['skill_icon']+`">`
Expand All @@ -234,7 +234,7 @@ function FILL_DB_SKILLS_CRAFT(DB){
let key = this.getAttribute('db-skill-craft');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let skill_icon = skill['skill_icon'];
Expand Down Expand Up @@ -265,7 +265,7 @@ function FILL_DB_SKILLS_CRAFT(DB){
</div>
</td>
<td class="cost">`+skill['cost']+` CP</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -275,7 +275,7 @@ function FILL_DB_CRAFT_PASSIVE(DB){
let key = this.getAttribute('db-craft-passive');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let skill_icon = skill['skill_icon'];
Expand Down Expand Up @@ -307,7 +307,7 @@ function FILL_DB_CRAFT_PASSIVE(DB){
</div>
</td>
`+cost+`
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -317,7 +317,7 @@ function FILL_DB_SKILLS_GATHERING(DB){
let key = this.getAttribute('db-skill-gathering');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let eorzeadb = skill['eorzeadb'];
Expand Down Expand Up @@ -363,7 +363,7 @@ function FILL_DB_SKILLS_GATHERING(DB){
<td class="classification">`+skill['classification']+`</td>
<td class="recast">`+skill['recast']+`</td>
<td class="cost">`+skill['cost']+` GP</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -373,7 +373,7 @@ function FILL_DB_GATHERING_PASSIVE(DB){
let key = this.getAttribute('db-gathering-passive');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let eorzeadb = skill['eorzeadb'];
Expand Down Expand Up @@ -424,7 +424,7 @@ function FILL_DB_GATHERING_PASSIVE(DB){
</td>
`+classification+`
`+recast+`
<td class="content">`+skill_content+`</td>`
<td class="content">`+skill_content+`</td>`;
});
}

Expand All @@ -433,7 +433,7 @@ function FILL_DB_ROLE_ACTIONS(DB){
let key = this.getAttribute('db-role-action');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let jobclass_01 = skill['job_class_01'] ? '<img src="../Assets/img/main/'+skill['job_class_01']+'.png">' : '';
Expand Down Expand Up @@ -475,7 +475,7 @@ function FILL_DB_ROLE_ACTIONS(DB){
<p>`+skill['radius']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

Expand All @@ -484,7 +484,7 @@ function FILL_DB_ROLE_TRAITS(DB){
let key = this.getAttribute('db-role-traits');
let skill = DB[key];
if(skill === undefined){
console.error('Skill "' + key + '" not found')
console.error('Skill "' + key + '" not found');
return
}
let jobclass_01 = skill['job_class_01'] ? '<img src="../Assets/img/main/'+skill['job_class_01']+'.png">' : '';
Expand All @@ -509,6 +509,6 @@ function FILL_DB_ROLE_TRAITS(DB){
<p>Ур. `+skill['level']+`</p>
</div>
</td>
<td class="content">`+skill['content']+`</td>`
<td class="content">`+skill['content']+`</td>`;
});
}

0 comments on commit 2589c48

Please sign in to comment.