@umang-boss/claudemon 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/award-xp.mjs CHANGED
@@ -6297,13 +6297,12 @@ var StateManager = class _StateManager {
6297
6297
  }
6298
6298
  const state2 = this.getState();
6299
6299
  const xpPercent = active.level >= 100 ? 100 : Math.min(100, Math.floor(active.currentXp / Math.max(1, active.currentXp + 50) * 100));
6300
- let displayName = active.nickname ?? "";
6301
- if (!displayName) {
6302
- const species = POKEMON_BY_ID.get(active.pokemonId);
6303
- displayName = species?.name ?? `Pokemon #${active.pokemonId}`;
6304
- }
6300
+ const species = POKEMON_BY_ID.get(active.pokemonId);
6301
+ const speciesName = species?.name ?? `Pokemon #${active.pokemonId}`;
6302
+ const displayName = active.nickname ? `${active.nickname} (${speciesName})` : speciesName;
6305
6303
  const payload = {
6306
- name: displayName,
6304
+ name: speciesName,
6305
+ displayName,
6307
6306
  level: active.level,
6308
6307
  xpPercent,
6309
6308
  speciesId: active.pokemonId,
@@ -6353,13 +6352,12 @@ var StateManager = class _StateManager {
6353
6352
  const active = this.getActivePokemon();
6354
6353
  if (!active) return;
6355
6354
  const xpPercent = active.level >= 100 ? 100 : Math.min(100, Math.floor(active.currentXp / Math.max(1, active.currentXp + 50) * 100));
6356
- let displayName = active.nickname ?? "";
6357
- if (!displayName) {
6358
- const species = POKEMON_BY_ID.get(active.pokemonId);
6359
- displayName = species?.name ?? `Pokemon #${active.pokemonId}`;
6360
- }
6355
+ const species = POKEMON_BY_ID.get(active.pokemonId);
6356
+ const speciesName = species?.name ?? `Pokemon #${active.pokemonId}`;
6357
+ const displayLabel = active.nickname ? `${active.nickname} (${speciesName})` : speciesName;
6361
6358
  const payload = {
6362
- name: displayName,
6359
+ name: speciesName,
6360
+ displayName: displayLabel,
6363
6361
  level: active.level,
6364
6362
  xpPercent,
6365
6363
  speciesId: active.pokemonId,