Skip to content

Commit

Permalink
Skull icon image reference simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Solaris333 committed Aug 5, 2023
1 parent 216fdfa commit bf14531
Show file tree
Hide file tree
Showing 13 changed files with 606 additions and 790 deletions.
Binary file added api/images/thumbnail/jap/1/300/1387-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/300/1388-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/300/1389-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/400/1446-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/400/1447-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/400/1448-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/500/1549-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/500/1550-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added api/images/thumbnail/jap/1/500/1551-skull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
906 changes: 453 additions & 453 deletions common/data/drops.js

Large diffs are not rendered by default.

292 changes: 146 additions & 146 deletions common/data/evolutions.js

Large diffs are not rendered by default.

193 changes: 4 additions & 189 deletions common/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,25 +480,6 @@
*/
utils.getThumbnailUrl = function (n, relPathToRoot = '') {
switch (n){
case 'skullLuffy':
//case 9001: return relPathToRoot + '/api/images/thumbnail/jap/1/300/1387-skull.png'; break;
case 9001: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_luffy.png'; break;
case 'skullZoro':
case 9002: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_zoro.png'; break;
case 'skullNami':
case 9003: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_nami.png'; break;
case 'skullUsopp':
case 9004: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_usopp_f.png'; break;
case 'skullSanji':
case 9005: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_sanji_f.png'; break;
case 'skullChopper':
case 9006: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_chopper_f.png'; break;
case 'skullRobin':
case 9007: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_robin_f.png'; break;
case 'skullFranky':
case 9008: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_franky_f.png'; break;
case 'skullBrook':
case 9009: return 'https://onepiece-treasurecruise.com/wp-content/uploads/skull_brook_f.png'; break;
case 'skullSTR':
case 9010: return relPathToRoot + '/api/images/common/skull-STR.png'; break;
case 'skullQCK':
Expand All @@ -509,176 +490,10 @@
case 9013: return relPathToRoot + '/api/images/common/skull-DEX.png'; break;
case 'skullINT':
case 9014: return relPathToRoot + '/api/images/common/skull-INT.png'; break;
case 'skullJudge':
case 9015: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2138-skull.png'; break;
//case 9015: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f1.png'; break;
case 'skullReiju':
case 9016: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2139-skull.png'; break;
//case 9016: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f2.png'; break;
case 'skullIchiji':
case 9017: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2140-skull.png'; break;
//case 9017: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f3.png'; break;
case 'skullNiji':
case 9018: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2141-skull.png'; break;
//case 9018: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f4.png'; break;
case 'skullYonji':
case 9019: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2142-skull.png'; break;
//case 9019: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f5.png'; break;
case 'skullDoffy':
case 9020: return relPathToRoot + '/api/images/thumbnail/jap/2/100/2126-skull.png'; break;
//case 9020: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Doflamingo_skull_f.png'; break;
case 'skullEnel':
case 9021: return relPathToRoot + '/api/images/thumbnail/jap/2/200/2232-skull.png'; break;
//case 9021: return 'https://onepiece-treasurecruise.com/wp-content/uploads/enel_skull_f.png'; break;
case 'skullHiguma':
case 9022: return relPathToRoot + '/api/images/thumbnail/jap/2/200/2259-skull.png'; break;
//case 9022: return 'https://onepiece-treasurecruise.com/wp-content/uploads/higuma_skull_f.png'; break;
case 'skullSanji2':
case 9023: return relPathToRoot + '/api/images/thumbnail/jap/2/200/2245-skull.png'; break;
//case 9023: return 'https://onepiece-treasurecruise.com/wp-content/uploads/sanji_skull_f.png'; break;
case 'skullFrankie':
case 9024: return relPathToRoot + '/api/images/thumbnail/jap/2/300/2300-skull.png'; break;
//case 9024: return 'https://onepiece-treasurecruise.com/wp-content/uploads/frankie_skull_f.png'; break;
case 'skullCavendish':
case 9025: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2434-skull.png'; break;
//case 9025: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Cavendish_skull_f.png'; break;
case 'skullDoflamingo':
case 9026: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2444-skull.png'; break;
//case 9026: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Doflamingo_skull_f2.png'; break;
case 'skullIchiji2':
case 9027: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2448-skull.png'; break;
//case 9027: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f6.png'; break;
case 'skullNiji2':
case 9028: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2450-skull.png'; break;
//case 9028: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f7.png'; break;
case 'skullYonji2':
case 9029: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2452-skull.png'; break;
//case 9029: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f8.png'; break;
case 'skullReiju2':
case 9030: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2454-skull.png'; break;
//case 9030: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Jerma_skull_f9.png'; break;
case 'skullHancock':
case 9031: return relPathToRoot + '/api/images/thumbnail/jap/2/400/2434-skull.png'; break;
//case 9031: return 'https://onepiece-treasurecruise.com/wp-content/uploads/Hancock_skull_f.png'; break;
case 'skullNami2':
case 9032: return relPathToRoot + '/api/images/thumbnail/jap/2/500/2588-skull.png'; break;
//case 9032: return 'https://onepiece-treasurecruise.com/wp-content/uploads/nami_skull_f.png'; break;
case 'skullBullet':
case 9033: return relPathToRoot + '/api/images/thumbnail/jap/2/600/2681-skull.png'; break;
case 'skullKatakuri':
case 9034: return relPathToRoot + '/api/images/thumbnail/jap/2/700/2739-skull.png'; break;
case 'skullWhitebeard':
case 9035: return relPathToRoot + '/api/images/thumbnail/jap/2/900/2909-skull.png'; break;
case 'skullCP9':
case 9036: return relPathToRoot + '/api/images/thumbnail/jap/2/800/2886-skull.png'; break;
case 'skullRaidKaido':
case 9037: return relPathToRoot + '/api/images/thumbnail/jap/2/900/2923-skull.png'; break;
case 'skullBlackbeard':
case 9038: return relPathToRoot + '/api/images/thumbnail/jap/3/100/3154-skull.png'; break;
case 'skullZoro2':
case 9039: return relPathToRoot + '/api/images/thumbnail/jap/3/200/3202-skull.png'; break;
case 'skullSanji3':
case 9040: return relPathToRoot + '/api/images/thumbnail/jap/3/200/3211-skull.png'; break;
case 'skullMihawk':
case 9041: return relPathToRoot + '/api/images/thumbnail/jap/3/200/3240-skull.png'; break;
case 'skullNami3':
case 9042: return relPathToRoot + '/api/images/thumbnail/jap/3/200/3275-skull.png'; break;
case 'skullCracker':
case 9043: return relPathToRoot + '/api/images/thumbnail/jap/3/200/3298-skull.png'; break;
case 'skullKomurasaki':
case 9044: return relPathToRoot + '/api/images/thumbnail/jap/3/300/3350-skull.png'; break;
case 'skullKuja':
case 9045: return relPathToRoot + '/api/images/thumbnail/jap/3/300/3352-skull.png'; break;
case 'skullGerma':
case 9046: return relPathToRoot + '/api/images/thumbnail/jap/3/300/3369-skull.png'; break;
case 'skullSabo':
case 9047: return relPathToRoot + '/api/images/thumbnail/jap/3/300/3393-skull.png'; break;
case 'skullJack':
case 9048: return relPathToRoot + '/api/images/thumbnail/jap/3/300/3397-skull.png'; break;
case 'skullCarrot':
case 9049: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3417-skull.png'; break;
case 'skullJack2':
case 9050: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3448-skull.png'; break;
case 'skullLinlin':
case 9051: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3450-skull.png'; break;
case 'skullYamato':
case 9052: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3430-skull.png'; break;
case 'skullPudding':
case 9053: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3469-skull.png'; break;
case 'skullKrieg':
case 9054: return relPathToRoot + '/api/images/thumbnail/jap/3/400/3490-skull.png'; break;
case 'skullBrook2':
case 9055: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3510-skull.png'; break;
case 'skullOden':
case 9056: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3519-skull.png'; break;
case 'skullBlackbeard2':
case 9057: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3532-skull.png'; break;
case 'skullDoflamingo2':
case 9058: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3550-skull.png'; break;
case 'skullOrochi':
case 9059: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3572-skull.png'; break;
case 'skullKuzan':
case 9060: return relPathToRoot + '/api/images/thumbnail/jap/3/500/3592-skull.png'; break;
case 'skullOden2':
case 9061: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3620-skull.png'; break;
case 'skullAkainu':
case 9062: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3625-skull.png'; break;
case 'skullRoger':
case 9063: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3627-skull.png'; break;
case 'skullKatakuri2':
case 9064: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3666-skull.png'; break;
case 'skullSummerLuffy':
case 9065: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3669-skull.png'; break;
case 'skullShiki':
case 9066: return relPathToRoot + '/api/images/thumbnail/jap/3/600/3693-skull.png'; break;
case 'skullUta':
case 9067: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3713-skull.png'; break;
case 'skullSabo2':
case 9068: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3718-skull.png'; break;
case 'skullShanks':
case 9069: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3720-skull.png'; break;
case 'skullUta2':
case 9070: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3721-skull.png'; break;
case 'skullBlackbeard3':
case 9071: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3739-skull.png'; break;
case 'skullAce':
case 9072: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3742-skull.png'; break;
case 'skullKid':
case 9073: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3762-skull.png'; break;
case 'skullBrook3':
case 9074: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3764-skull.png'; break;
case 'skullRoger2':
case 9075: return relPathToRoot + '/api/images/thumbnail/jap/3/700/3786-skull.png'; break;
case 'skullUta3':
case 9076: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3816-skull.png'; break;
case 'skullSugar':
case 9077: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3805-skull.png'; break;
case 'skullDoflamingo4':
case 9078: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3807-skull.png'; break;
case 'skullLuffy2':
case 9079: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3814-skull.png'; break;
case 'skullDogCat':
case 9080: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3828-skull.png'; break;
case 'skullRedHair':
case 9081: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3845-skull.png'; break;
case 'skullGarp':
case 9082: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3848-skull.png'; break;
case 'skullTrio':
case 9083: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3857-skull.png'; break;
case 'skullBartoCav':
case 9084: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3868-skull.png'; break;
case 'skullRookieLuffy':
case 9085: return relPathToRoot + '/api/images/thumbnail/jap/3/800/3886-skull.png'; break;
case 'skullZPBigMom':
case 9086: return relPathToRoot + '/api/images/thumbnail/jap/3/900/3902-skull.png'; break;
case 'skullBlitzKaido':
case 9087: return relPathToRoot + '/api/images/thumbnail/jap/3/900/3903-skull.png'; break;
case 'skullLuffyAce':
case 9088: return relPathToRoot + '/api/images/thumbnail/jap/3/900/3920-skull.png'; break;
case 'skullNamiRobin':
case 9089: return relPathToRoot + '/api/images/thumbnail/jap/3/900/3940-skull.png'; break;
case 'skullPerona':
case 9090: return relPathToRoot + '/api/images/thumbnail/jap/3/900/3942-skull.png'; break;
default: break;
}
if (typeof n === 'string' && n.includes("skull")){
return relPathToRoot + "/api/images/thumbnail/jap/"+n[0]+"/"+n[1]+"00/"+n+".png";
}
if (n === null || n === undefined)
return relPathToRoot + '/api/images/common/noimage.png';
Expand Down
5 changes: 3 additions & 2 deletions drops/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,15 @@ <h3>
{{type == 'Story Island'&& stage!='Completion Units' ? 'Stage ' + stage : (stage.length < 2 ? 'Any' : stage)}}
</td>
<td hide-when-empty colspan="2">
<a ng-repeat="uid in data | smartSort:'false'" ng-if="uid > 0 && uid < 9000 && !hiddenUnits[uid]"
<a ng-repeat="uid in data | smartSort:'false'" ng-if="uid > 0 && !hiddenUnits[uid]"
decorate-slot uid="uid" class="slot small"
href="../characters/#/view/{{uid}}" target="_blank"
uib-tooltip="{{getTooltipText(uid)}}"
tooltip-placement="bottom" tooltip-trigger="mouseenter"
tooltip-enable="{{isTooltipEnabled(uid)}}" tooltip-append-to-body="true"></a>
<a ng-repeat="uid in data | smartSort:'false'" ng-if="uid.includes('skull') || uid > 9000"
<a ng-repeat="uid in data | smartSort:'false'" ng-if="uid.includes('skull')"
decorate-slot uid="uid" class="slot small"
href="../characters/{{uid.includes('-') ? '#/view/' + uid.slice(0,4) : ''}}" target="_blank"
uib-tooltip="{{getTooltipText(uid)}}"
tooltip-placement="bottom" tooltip-trigger="mouseenter"
tooltip-enable="{{isTooltipEnabled(uid)}}" tooltip-append-to-body="true"></a>
Expand Down

0 comments on commit bf14531

Please sign in to comment.