Skip to content

Commit

Permalink
Merge pull request #225 from sketchysocks/minor-text-fixes
Browse files Browse the repository at this point in the history
Minor Text Fixes
  • Loading branch information
versx authored Sep 24, 2020
2 parents d8ffa0c + 3d81981 commit 0082720
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ const getData = async (perms, filter) => {
const size = `<button class="btn btn-sm btn-primary configure-button-new" data-id="${id}" data-type="pokemon-iv" data-info="global-iv">${configureString}</button>`;
pokemonData.push({
'id': {
'formatted': andOrString,
'formatted': utils.zeroPad(i, 3),
'sort': i
},
'name': globalIVString,
'image': `IV-${andOrString}`,
'image': `${andOrString}`,
'filter': filter,
'size': size,
'type': globalFiltersString,
Expand All @@ -278,8 +278,8 @@ const getData = async (perms, filter) => {
const size = generateSizeButtons(id, 'pokemon-size');
pokemonData.push({
'id': {
'formatted': utils.zeroPad(i, 3),
'sort': i + 5
'formatted': utils.zeroPad(i+2, 3),
'sort': i + 3
},
'name': sizeString,
'image': {
Expand Down
7 changes: 4 additions & 3 deletions src/views/index.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@
Level Range: <kbd>L30-35</kbd> - Level 30 to 35 Pokemon<br>
Stats: <kbd>A0-1 & D14 & S15</kbd> - Pokemon with 0-1 Attack, 14 Defense & 15 Stamina<br>
CP: <kbd>CP2000-3000</kbd> - All Pokemon with CP of 2000-3000<br>
NOT: <kbd>!0-100</kbd> - All Pokemon that do not have their IVs scanned<br><br>
NOT: <kbd>!0-100</kbd> - All Pokemon that do not have their IVs scanned<br>
PVP: <kbd>GL1-3 | UL1-3</kbd> - Pokemon that are rank 1-3 for either Great League or Ultra League<br><br>
</p>
</div>

Expand All @@ -365,8 +366,8 @@
<div class="help-title"><b>Advanced</b></div>
<div class="help-description">
<p>
Example: <kbd>(A0-1 & D15 & S15 & (CP1400-1500 | CP2400-2500)) | L34-35 | 90-100</kbd><br>
Returns all Pokemon that have either CP1400-1500 OR CP2400-2500 AND have 0-1 Attack, 15 Defense, 15 Stamina, OR level 34-35 OR 90-100% IVs.
Example: <kbd>(A0-1 & D15 & S15 & (CP1400-1500 | CP2400-2500)) | L34-35 | 90-100 | GL1-3 | UL1-3</kbd><br>
Returns all Pokemon that have either CP1400-1500 OR CP2400-2500 AND have 0-1 Attack, 15 Defense, 15 Stamina, OR level 34-35 OR 90-100% IVs OR PVP Great or Ultra league rank betwen 1-3.
</p>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5127,7 +5127,9 @@ function getTimeSince (date) {
return str;
}

const ivFilterPrompt = 'Please enter an IV and/or Level Filter. Examples:\n(A0-1 & D15 & S15 & (CP1400-1500 | CP2400-2500)) | L34-35 | 90-100 | GL1-3 | UL1-3';
const ivFilterPrompt = '• Use this to enter a specific filter for this Pokemon.\n• These values override any global filters!\n• Refer to the Help button if you are unsure of how to use this. \nExamples:\n((L30-35 & 90-100) | (CP2500-4000 & A15 & D10 S10)) | GL1-10 | UL1-10';

const globalFilterPrompt = `• Use AND when you want to filter the Pokemon you\'ve already selected below.\n• Use OR when you want to set a base filter for all Pokemon, regardless if you\'ve selected them below or not.\n\nIf you are unsure what to put here, click the Help button below.`

function manageIVPopup (id, filter) {
const result = prompt(ivFilterPrompt, filter[id].filter);
Expand Down Expand Up @@ -5182,7 +5184,7 @@ function manageColorPopup (id, filter) {
}

function manageGlobalIVPopup (id, filter) {
const result = prompt(ivFilterPrompt, filter['iv_' + id].filter);
const result = prompt(globalFilterPrompt, filter['iv_' + id].filter);
if (result === null) {
return false;
} else if (checkIVFilterValid(result)) {
Expand Down
2 changes: 1 addition & 1 deletion static/locales/_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"filter_nest_table_empty": "No matching Nests found",
"filter_device_table_empty": "No matching Devices found",
"filter_global_filters": "Global Filters",
"filter_global_iv": "IV/Level Limit",
"filter_global_iv": "Stats Filter",
"filter_global_avg": "Nest Avg Limit",
"filter_global_candy_count": "Rare Candy Limit",
"filter_global_stardust_count": "Stardust Limit",
Expand Down

0 comments on commit 0082720

Please sign in to comment.