Skip to content

Commit b0cc2e3

Browse files
Ultima1990NydaleclyaRegisCoaxans
authored
new(routes): Add Trophy Garden (pokeclicker#6126)
* Create Trophy Garden * Add Togepi, RIP adult Kangaskhan * Obtained Requirement for all, delete Bellsprout * Special icon for special mons in encounterinfo * Update backlot_catches.png * MapHelper better * Update src/modules/routes/RouteData.ts Co-authored-by: Nydaleclya <github.com.punctual012@passmail.net> * And now it does work maybe? --------- Co-authored-by: Nydaleclya <github.com.punctual012@passmail.net> Co-authored-by: Martius RegisCoaxans <reiiky91300@gmail.com>
1 parent 7eee5ef commit b0cc2e3

File tree

7 files changed

+57
-17
lines changed

7 files changed

+57
-17
lines changed

other/Map tools/Sinnoh.tmx

Lines changed: 14 additions & 14 deletions
Large diffs are not rendered by default.
1.26 KB
Loading

src/assets/images/sinnoh.png

7.8 KB
Loading

src/components/regionMaps/SinnohSVG.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@
196196
})
197197
%>
198198

199+
<!--Trophy Garden-->
200+
<%- include('templates/mapRoute',
201+
{ route: 231, region: 3
202+
, height: 4, width: 4
203+
, x: 50, y: 44
204+
, name: "TG"
205+
})
206+
%>
207+
199208
<!--Route 213-->
200209
<%- include('templates/mapRoute',
201210
{ route: 213, region: 3

src/modules/routes/RouteData.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ import StatisticRequirement from '../requirements/StatisticRequirement';
2828
import PokemonLevelRequirement from '../requirements/PokemonLevelRequirement';
2929
import { getPokemonByName } from '../pokemons/PokemonHelper';
3030
import CustomRequirement from '../requirements/CustomRequirement';
31+
import SeededDateSelectNRequirement from '../requirements/SeededDateSelectNRequirement';
32+
import type { PokemonNameType } from '../pokemons/PokemonNameType';
3133

3234
/*
3335
KANTO
@@ -1206,13 +1208,33 @@ Routes.add(new RegionRoute(
12061208
[new RouteKillRequirement(10, Region.sinnoh, 213)],
12071209
210.4,
12081210
));
1211+
const TrophyGardenList = ['Clefairy', 'Jigglypuff', 'Meowth', 'Chansey', 'Baby Kangaskhan', 'Mr. Mime', 'Jynx', 'Ditto', 'Eevee', 'Porygon', 'Cleffa', 'Igglybuff', 'Togepi', 'Marill', 'Tyrogue', 'Smoochum', 'Elekid', 'Magby', 'Azurill', 'Plusle', 'Minun', 'Castform', 'Budew', 'Chingling', 'Bonsly', 'Mime Jr.', 'Happiny', 'Handout Happiny', 'Munchlax', 'Riolu', 'Mantyke', 'Phione', 'Toxel'];
1212+
1213+
Routes.add(new RegionRoute(
1214+
'Trophy Garden', Region.sinnoh, 231,
1215+
new RoutePokemon({
1216+
land: ['Pikachu', 'Pichu', 'Roselia', 'Staravia', 'Kricketune'],
1217+
special:
1218+
[
1219+
...TrophyGardenList.map((pokemon: PokemonNameType, index) => {
1220+
const req = new MultiRequirement([
1221+
new SeededDateSelectNRequirement(index, TrophyGardenList.length, 3),
1222+
new ObtainedPokemonRequirement(pokemon),
1223+
]);
1224+
return new SpecialRoutePokemon([pokemon], req);
1225+
}),
1226+
],
1227+
}),
1228+
[new RouteKillRequirement(10, Region.sinnoh, 212)],
1229+
210.5,
1230+
));
12091231
Routes.add(new RegionRoute(
12101232
'Sinnoh Route 211', Region.sinnoh, 211,
12111233
new RoutePokemon({
12121234
land: ['Zubat', 'Machop', 'Machoke', 'Graveler', 'Hoothoot', 'Noctowl', 'Meditite', 'Bidoof', 'Chingling', 'Bronzor'],
12131235
}),
12141236
[new GymBadgeRequirement(BadgeEnums.Fen)],
1215-
210.5,
1237+
210.6,
12161238
));
12171239
Routes.add(new RegionRoute(
12181240
'Sinnoh Route 218', Region.sinnoh, 218,
@@ -1221,7 +1243,7 @@ Routes.add(new RegionRoute(
12211243
water: ['Tentacool', 'Tentacruel', 'Magikarp', 'Gyarados', 'Shellos (West)', 'Finneon', 'Lumineon'],
12221244
}),
12231245
[new TemporaryBattleRequirement('Galactic Boss Cyrus')],
1224-
210.6,
1246+
210.7,
12251247
));
12261248
Routes.add(new RegionRoute(
12271249
'Sinnoh Route 216', Region.sinnoh, 216,

src/scripts/encountersInfo/RouteInfo.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class RouteInfo {
5252
return {tooltip: 'Weather Pokémon', image: 'weather.png'};
5353
} else if (RouteInfo.hasRequirement(pokemon.requirement, DayOfWeekRequirement)) {
5454
return {tooltip: 'Day of Week Pokémon', image: 'day_of_week.png'};
55+
} else if (MapHelper.isRouteCurrentLocation(231, GameConstants.Region.sinnoh)) {
56+
return {tooltip: 'Mr. Backlot\'s Daily Special', image: 'backlot_catches.png'};
5557
}
5658
} else if (pokemon.type == 'water' && pokemon.fishing) {
5759
return {tooltip: 'Fishing Pokémon', image: 'fishing.png'};

src/scripts/towns/TownList.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4219,6 +4219,13 @@ const HearthomeContestFan = new NPC('Contest Fan', [
42194219
'I\'m so happy for them, all of that training in Mt. Coronet must have paid off!',
42204220
]);
42214221

4222+
const HearthomeTrophyGardenOwner = new NPC('Mr. Backlot', [
4223+
'Greetings trainer! I own the Trophy Garden down south!',
4224+
'Every day I bring in different Pokémon for trainers to catch. Some of them are extremely rare! I just love watching trainers catching Pokémon in my garden.',
4225+
'I make sure the experience is perfectly trailored to each individual trainer. I only ever bring in Pokémon that the trainer already owns. Hunting familiar prey, as it were. Oh it\'s so exciting!',
4226+
'Hm? You want to know what the point of that is? Well, some trainers really like to catch the same Pokémon over and over again. Maybe, some day, you\'ll find a reason to want to do that too.',
4227+
], {image: 'assets/images/npcs/Gentleman (Gen 4).png'});
4228+
42224229
const CelesticGrandma = new NPC('Cynthia\'s Grandmother', [
42234230
'Hello young one, have you come here to learn of Sinnoh’s mysteries?',
42244231
'Did you know that in Johto they don’t see Pokémon like Mamoswine? It’s strange too, because you don’t even need a stone to evolve Piloswine… maybe they should try the Day Care?',
@@ -4622,7 +4629,7 @@ TownList['Hearthome City'] = new Town(
46224629
[HearthomeCityShop, new ShardTraderShop(GameConstants.ShardTraderLocations['Hearthome City']), SinnohBerryMaster],
46234630
{
46244631
requirements: [new RouteKillRequirement(10, GameConstants.Region.sinnoh, 208)],
4625-
npcs: [HearthomeContestFan, SinnohBerryMasterAssistant, LucyStevens1, HappinyWitness6],
4632+
npcs: [HearthomeContestFan, SinnohBerryMasterAssistant, HearthomeTrophyGardenOwner, LucyStevens1, HappinyWitness6],
46264633
}
46274634
);
46284635
TownList['Solaceon Town'] = new Town(

0 commit comments

Comments
 (0)