From 199fb3eb4037ff5c1e296a6f1aeca7ae9ef996cc Mon Sep 17 00:00:00 2001 From: Sylvain Pollet-Villard Date: Tue, 2 Apr 2024 21:16:01 +0200 Subject: [PATCH] add stargazer title (#1620) --- app/models/colyseus-models/pokemon.ts | 6 ++++++ app/public/dist/client/changelog/patch-5.0.md | 2 ++ app/public/dist/client/locales/en/translation.json | 6 ++++-- app/public/dist/client/locales/fr/translation.json | 6 ++++-- app/types/index.ts | 3 ++- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/app/models/colyseus-models/pokemon.ts b/app/models/colyseus-models/pokemon.ts index 22712ddd08..3caff888ff 100644 --- a/app/models/colyseus-models/pokemon.ts +++ b/app/models/colyseus-models/pokemon.ts @@ -12482,6 +12482,9 @@ export class Solgaleo extends Pokemon { range = 1 skill = Ability.SUNSTEEL_STRIKE attackSprite = AttackSprite.STEEL_MELEE + onAcquired(player: Player) { + player.titles.add(Title.STARGAZER) + } } export class Lunala extends Pokemon { @@ -12500,6 +12503,9 @@ export class Lunala extends Pokemon { range = 4 skill = Ability.MOONGEIST_BEAM attackSprite = AttackSprite.STEEL_MELEE + onAcquired(player: Player) { + player.titles.add(Title.STARGAZER) + } } export class Magearna extends Pokemon { diff --git a/app/public/dist/client/changelog/patch-5.0.md b/app/public/dist/client/changelog/patch-5.0.md index 65745f0171..025e9dcf20 100644 --- a/app/public/dist/client/changelog/patch-5.0.md +++ b/app/public/dist/client/changelog/patch-5.0.md @@ -30,3 +30,5 @@ - Fix Meteor Mash ability targeting # Misc + +- New title: Stargazer - Get Solgaleo or Lunala diff --git a/app/public/dist/client/locales/en/translation.json b/app/public/dist/client/locales/en/translation.json index 777c949dc6..7706c43316 100644 --- a/app/public/dist/client/locales/en/translation.json +++ b/app/public/dist/client/locales/en/translation.json @@ -2081,7 +2081,8 @@ "VANQUISHER": "Vanquisher", "OUTSIDER": "Outsider", "WILD": "Wild", - "GLUTTON": "Glutton" + "GLUTTON": "Glutton", + "STARGAZER": "Stargazer" }, "title_description": { "NOVICE": "Play your first game", @@ -2145,7 +2146,8 @@ "CHOSEN_ONE": "Max Synergy With Light type in a game", "VANQUISHER": "Win a Ranked match", "OUTSIDER": "Win a Ranked match with 8 players while having the lowest ELO of all", - "GLUTTON": "Get a Snorlax with more than 750 base HP" + "GLUTTON": "Get a Snorlax with more than 750 base HP", + "STARGAZER": "Get Solgaleo or Lunala" }, "weather": { "NEUTRAL": "Calm weather", diff --git a/app/public/dist/client/locales/fr/translation.json b/app/public/dist/client/locales/fr/translation.json index 8bbdb2e27e..f84b55ffc3 100644 --- a/app/public/dist/client/locales/fr/translation.json +++ b/app/public/dist/client/locales/fr/translation.json @@ -2060,7 +2060,8 @@ "VANQUISHER": "Vainqueur", "OUTSIDER": "Outsider", "WILD": "Sauvage", - "GLUTTON": "Goinfre" + "GLUTTON": "Goinfre", + "STARGAZER": "Astronome" }, "title_description": { "NOVICE": "Jouez votre première partie", @@ -2124,7 +2125,8 @@ "CHOSEN_ONE": "Niveau max de synergie Lumière atteint lors d'une partie", "VANQUISHER": "Remporter un match classé", "OUTSIDER": "Remporter un match classé à 8 joueurs en étant le joueur au plus bas ELO", - "GLUTTON": "Monter un Ronflex à plus de 750 PV de base" + "GLUTTON": "Monter un Ronflex à plus de 750 PV de base", + "STARGAZER": "Obtenez Solgaleo ou Lunala" }, "weather": { "NEUTRAL": "Temps calme", diff --git a/app/types/index.ts b/app/types/index.ts index caa5c604cd..9b40e2aa65 100644 --- a/app/types/index.ts +++ b/app/types/index.ts @@ -657,7 +657,8 @@ export enum Title { CHOSEN_ONE = "CHOSEN_ONE", VANQUISHER = "VANQUISHER", OUTSIDER = "OUTSIDER", - GLUTTON = "GLUTTON" + GLUTTON = "GLUTTON", + STARGAZER = "STARGAZER" } export interface IBoardEvent {