Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
PokeClicker
Pokeclicker-desktop
Commits
daf20a3c
Commit
daf20a3c
authored
3 years ago
by
Danial
Browse files
Options
Download
Email Patches
Plain Diff
bump version, support more stuff
parent
0db8bf72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package.json
+1
-1
package.json
src/discord.js
+7
-3
src/discord.js
with
8 additions
and
4 deletions
+8
-4
package.json
+
1
-
1
View file @
daf20a3c
{
"name"
:
"pokeclicker-desktop"
,
"version"
:
"1.0.
3
"
,
"version"
:
"1.0.
4
"
,
"description"
:
"PokeClicker Desktop"
,
"repository"
:
{
"type"
:
"git"
,
...
...
This diff is collapsed.
Click to expand it.
src/discord.js
+
7
-
3
View file @
daf20a3c
...
...
@@ -35,7 +35,7 @@
</tr>
</tbody></table>
<span>Options:<br/>
<code>{caught} | {caught_shiny} | {sparkle} | {attack} | {current_
route
} | {current_
route_kills
} | {achievement_bonus} | {money} | {dungeon_tokens} | {diamonds} | {farm_points} | {quest_points} | {battle_points} | {time_played} | {quests_completed}</code>
<code>{caught} | {caught_shiny} |
{hatched} | {hatched_shiny} |
{sparkle} | {attack} | {current_
area
} | {current_
area_stats} | {underground_levels_cleared} | {underground_items_found
} | {achievement_bonus} | {money} | {dungeon_tokens} | {diamonds} | {farm_points} | {quest_points} | {battle_points} | {time_played} | {quests_completed}</code>
</span>`
;
tabContent
.
appendChild
(
discordTabEl
);
...
...
@@ -46,10 +46,14 @@ const getDiscordRP = () => {
try
{
output
=
input
.
replace
(
/{caught}/g
,
App
.
game
.
party
.
caughtPokemon
.
length
||
0
)
.
replace
(
/{caught_shiny}/g
,
App
.
game
.
party
.
caughtPokemon
.
filter
(
p
=>
p
.
shiny
).
length
||
0
)
.
replace
(
/{hatched}/g
,
App
.
game
.
statistics
.
totalPokemonHatched
().
toLocaleString
(
'
en-US
'
)
||
0
)
.
replace
(
/{hatched_shiny}/g
,
App
.
game
.
statistics
.
totalShinyPokemonHatched
().
toLocaleString
(
'
en-US
'
)
||
0
)
.
replace
(
/{sparkle}/g
,
'
✨
'
)
.
replace
(
/{attack}/g
,
App
.
game
.
party
.
caughtPokemon
.
reduce
((
sum
,
p
)
=>
sum
+
p
.
attack
,
0
).
toLocaleString
(
'
en-US
'
)
||
0
)
.
replace
(
/{current_route}/g
,
Routes
.
getName
(
player
.
route
(),
player
.
region
)
||
'
Unknown Route
'
)
.
replace
(
/{current_route_kills}/g
,
App
.
game
.
statistics
.
routeKills
[
player
.
region
][
player
.
route
()]().
toLocaleString
(
'
en-US
'
)
||
0
)
.
replace
(
/{underground_levels_cleared}/g
,
App
.
game
.
statistics
.
undergroundLayersMined
().
toLocaleString
(
'
en-US
'
))
.
replace
(
/{underground_items_found}/g
,
App
.
game
.
statistics
.
undergroundItemsFound
().
toLocaleString
(
'
en-US
'
))
.
replace
(
/{
(
current_route|current_area
)
}/g
,
player
.
route
()
?
Routes
.
getName
(
player
.
route
(),
player
.
region
)
:
player
.
town
()
?
player
.
town
().
name
:
'
Unknown Area
'
)
.
replace
(
/{
(
current_route_kills|current_area_stats
)
}/g
,
player
.
route
()
?
App
.
game
.
statistics
.
routeKills
[
player
.
region
][
player
.
route
()]().
toLocaleString
(
'
en-US
'
)
:
player
.
town
().
dungeon
?
App
.
game
.
statistics
.
dungeonsCleared
[
GameConstants
.
getDungeonIndex
(
player
.
town
().
name
)]().
toLocaleString
(
'
en-US
'
)
:
player
.
town
().
gym
?
App
.
game
.
statistics
.
gymsDefeated
[
GameConstants
.
getGymIndex
(
player
.
town
().
name
)]().
toLocaleString
(
'
en-US
'
)
:
'
?
'
)
.
replace
(
/{achievement_bonus}/g
,
AchievementHandler
.
achievementBonusPercent
()
||
0
)
.
replace
(
/{money}/g
,
App
.
game
.
wallet
.
currencies
[
GameConstants
.
Currency
.
money
]().
toLocaleString
(
'
en-US
'
)
||
0
)
.
replace
(
/{dungeon_tokens}/g
,
App
.
game
.
wallet
.
currencies
[
GameConstants
.
Currency
.
dungeonToken
]().
toLocaleString
(
'
en-US
'
)
||
0
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets