This repository was archived by the owner on Apr 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkingdom_hearts_iii_game.py
More file actions
648 lines (596 loc) · 18 KB
/
Copy pathkingdom_hearts_iii_game.py
File metadata and controls
648 lines (596 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
from __future__ import annotations
import functools
from typing import List
from dataclasses import dataclass
from Options import OptionSet
from ..game import Game
from ..game_objective_template import GameObjectiveTemplate
from ..enums import KeymastersKeepGamePlatforms
@dataclass
class KingdomHeartsIIIArchipelagoOptions:
kingdom_hearts_iii_dlc_owned: KingdomHeartsIIIDLCOwned
class KingdomHeartsIIIGame(Game):
name = "Kingdom Hearts III"
platform = KeymastersKeepGamePlatforms.PC
platforms_other = [
KeymastersKeepGamePlatforms.PS4,
KeymastersKeepGamePlatforms.SW,
KeymastersKeepGamePlatforms.XONE,
]
is_adult_only_or_unrated = False
options_cls = KingdomHeartsIIIArchipelagoOptions
def optional_game_constraint_templates(self) -> List[GameObjectiveTemplate]:
return list()
def game_objective_templates(self) -> List[GameObjectiveTemplate]:
templates: List[GameObjectiveTemplate] = [
GameObjectiveTemplate(
label="Complete WORLD",
data={
"WORLD": (self.worlds, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=3,
),
GameObjectiveTemplate(
label="Collect all Lucky Emblems in EMBLEM",
data={
"EMBLEM": (self.lucky_emblems, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Play the following Classic Kingdom Minigames: MINIGAMES",
data={
"MINIGAMES": (self.classic_kingdom, 3),
},
is_time_consuming=False,
is_difficult=False,
weight=1,
),
GameObjectiveTemplate(
label="Defeat BATTLEGATE",
data={
"BATTLEGATE": (self.battlegates, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Defeat the following Adversaries: ADVERSARIES",
data={
"ADVERSARIES": (self.adversaries, 3),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Collect all Treasures in TREASURE",
data={
"TREASURE": (self.treasures, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Get an Excellent rating when cooking CUISINE",
data={
"CUISINE": (self.cuisine, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Synthesize: SYNTHESIS",
data={
"SYNTHESIS": (self.synthesis, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Use SHOTLOCK",
data={
"SHOTLOCK": (self.shotlocks, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=1,
),
GameObjectiveTemplate(
label="Use ATTRACTION",
data={
"ATTRACTION": (self.attractions, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=1,
),
GameObjectiveTemplate(
label="Use LINK",
data={
"LINK": (self.links, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=1,
),
GameObjectiveTemplate(
label="Get an A rank against FLAN",
data={
"FLAN": (self.flans, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
GameObjectiveTemplate(
label="Get an A rank in the following minigame: MINIGAME",
data={
"MINIGAME": (self.minigames, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=2,
),
]
if self.has_dlc_re_mind:
templates.append(
GameObjectiveTemplate(
label="Defeat EPISODE",
data={
"EPISODE": (self.limitcut_episode, 1),
},
is_time_consuming=False,
is_difficult=False,
weight=3,
)
)
return templates
@property
def dlc_owned(self) -> KingdomHeartsIIIDLCOwned:
return sorted(self.archipelago_options.kingdom_hearts_iii_dlc_owned.value)
@property
def has_dlc_re_mind(self) -> bool:
return "Re:Mind" in self.dlc_owned
@functools.cached_property
def worlds_base(self) -> List[str]:
return [
"Olympus",
"Twilight Town",
"Toy Box",
"Kingdom of Corona",
"Monstropolis",
"Arendelle",
"The Caribbean",
"San Fransokyo",
"The Keyblade Graveyard",
"The Final World",
]
@functools.cached_property
def worlds_re_mind(self) -> List[str]:
return [
"The Keyblade Graveyard (Re:Mind)",
"Scala ad Caelum",
]
def worlds(self) -> List[str]:
worlds: List[str] = self.worlds_base[:]
if self.has_dlc_re_mind:
worlds.extend(self.worlds_re_mind)
return sorted(worlds)
@staticmethod
def lucky_emblems() -> List[str]:
return [
"Olympus",
"Twilight Town",
"Toy Box",
"Kingdom of Corona",
"Monstropolis",
"Arendelle",
"The Caribbean",
"San Fransokyo",
]
@staticmethod
def classic_kingdom() -> List[str]:
return [
"GIANTLAND",
"MICKEY, THE MAIL PILOT",
"THE MUSICAL FARMER",
"BUILDING A BUILDING",
"THE MAD DOCTOR",
"MICKEY CUTS UP",
"TAXI TROUBLES",
"THE BARNYARD BATTLE",
"THE WAYWARD CANARY",
"CAMPING OUT",
"THE KARNIVAL KID",
"HOW TO PLAY GOLF",
"MICKEY'S CIRCUS",
"BARNYARD SPORTS",
"THE KLONDIKE KID",
"MICKEY'S KITTEN CATCH",
"FISHIN' FRENZY",
"BEACH PARTY",
"MICKEY'S PRISON ESCAPE",
"CAST OUT TO SEA",
"HOW TO PLAY BASEBALL",
"MICKEY'S MECHANICAL MAN",
"MICKEY STEPS OUT",
]
@staticmethod
def battlegates() -> List[str]:
return [
"Battlegate 0",
"Battlegate 1",
"Battlegate 2",
"Battlegate 3",
"Battlegate 4",
"Battlegate 5",
"Battlegate 6",
"Battlegate 7",
"Battlegate 8",
"Battlegate 9",
"Battlegate 10",
"Battlegate 11",
"Battlegate 12",
"Battlegate 13",
"Battlegate 14",
]
@functools.cached_property
def adversaries_base(self) -> List[str]:
return [
"Shadow",
"Neoshadow",
"Flutterwing",
"Flame Core",
"Water Core",
"Earth Core",
"Dark Inferno",
"Soldier",
"High Soldier",
"Air Soldier",
"Large Body",
"Helmed Body",
"Vermilion Samba",
"Marine Rumba",
"Gold Beat",
"Malachite Bolero",
"Popcat",
"Vitality Popcat",
"Magic Popcat",
"Focus Popcat",
"Munny Popcat",
"Bizarre Archer",
"Rock Troll",
"Metal Troll",
"Satyr",
"Mechanitaur",
"Toy Trooper",
"Pole Cannon",
"Marionette",
"Powerwild",
"Pogo Shovel",
"Parasol Beauty",
"Chief Puff",
"Puffball",
"Chaos Carriage",
"Winterhorn",
"Frost Serpent",
"Vaporfly",
"Sea Sprite",
"Spear Lizard",
"Anchor Raider",
"Tireblade",
"Darkside",
"Demon Tide",
"Demon Tower",
"King of Toys",
"Grim Guardianess",
"Sköll",
"Raging Vulture",
"Lightning Angler",
"Darkubes",
"Lich",
"Catastrochorus",
"Dusk",
"Sniper",
"Reaper",
"Ninja",
"Gambler",
"Berserker",
"Sorcerer",
"Flood",
"Flowersnake",
"Spiked Turtletoad",
"Turtletoad",
"Lump of Horror",
"Gigas: Power Class",
"Gigas: Speed Class",
"Gigas: Gunner Class",
"Beasts & Bugs",
"Patchwork Animals",
"Air Droids",
"Bouncy Pets",
"Supreme Smasher",
"Angelic Amber",
]
@functools.cached_property
def adversaries_re_mind(self) -> List[str]:
return [
"Dark Inferno χ",
"Darkside (Re:Mind)",
]
def adversaries(self) -> List[str]:
adversaries: List[str] = self.adversaries_base[:]
if self.has_dlc_re_mind:
adversaries.extend(self.adversaries_re_mind)
return sorted(adversaries)
@staticmethod
def limitcut_episode() -> List[str]:
return [
"Data Master Xehanort",
"Data Ansem",
"Data Xemnas",
"Data Xigbar",
"Data Luxord",
"Data Larxene",
"Data Marluxia",
"Data Saïx",
"Data Terra-Xehanort",
"Data Dark Riku",
"Data Vanitas",
"Data Young Xehanort",
"Data Xion",
]
@functools.cached_property
def treasures_base(self) -> List[str]:
return [
"Olympus",
"Twilight Town",
"Toy Box",
"Kingdom of Corona",
"Monstropolis",
"Arendelle",
"The Caribbean",
"San Fransokyo",
"The Keyblade Graveyard",
"The Final World",
]
@functools.cached_property
def treasures_re_mind(self) -> List[str]:
return [
"Scala ad Caelum",
]
def treasures(self) -> List[str]:
treasures: List[str] = self.treasures_base[:]
if self.has_dlc_re_mind:
treasures.extend(self.treasures_re_mind)
return sorted(treasures)
@staticmethod
def cuisine() -> List[str]:
return [
"Mushroom Terrine",
"Scallop Poêlé",
"Ratatouille",
"Lobster Mousse",
"Caprese Salad",
"Consommé",
"Pumpkin Velouté",
"Carrot Potage",
"Crab Bisque",
"Cold Tomato Soup",
"Sole Meunière",
"Eel Matelote",
"Bouillabaisse",
"Sea Bass en Papillote",
"Seafood Tartare",
"Sea Bass Poêlé",
"Sweetbread Poêlé",
"Beef Sauté",
"Beef Bourguignon",
"Stuffed Quail",
"Filet Mignon Poêlé",
"Chocolate Mousse",
"Fresh Fruit Compote",
"Crêpes Suzette",
"Berries au Fromage",
"Warm Banana Soufflé",
"Fruit Gelée",
"Tarte aux Fruits",
]
@staticmethod
def synthesis() -> List[str]:
return [
"Mega-Potion",
"Ether",
"Hi-Ether",
"Mega-Ether",
"Refocuser",
"Hi-Refocuser",
"Elixir",
"Megalixir",
"Strength Boost",
"Magic Boost",
"Defense Boost",
"AP Boost",
"Ultima Weapon",
"Warhammer+",
"Astrolabe+",
"Heartless Maul",
"Heartless Maul+",
"Save the Queen",
"Save the Queen+",
"Clockwork Shield+",
"Aegis Shield+",
"Nobody Guard",
"Nobody Guard+",
"Save the King",
"Save the King+",
"Buster Band",
"Buster Band+",
"Fire Bangle",
"Fira Bangle",
"Firaga Bangle",
"Firaza Bangle",
"Fire Chain",
"Blizzard Choker",
"Blizzara Choker",
"Blizzaga Choker",
"Blizzaza Choker",
"Blizzard Chain",
"Thunder Trinket",
"Thundara Trinket",
"Thundaga Trinket",
"Thundaza Trinket",
"Thunder Chain",
"Shadow Anklet",
"Dark Anklet",
"Midnight Anklet",
"Chaos Anklet",
"Dark Chain",
"Elven Bandanna",
"Divine Bandanna",
"Aqua Chaplet",
"Wind Fan",
"Storm Fan",
"Aero Armlet",
"Acrisius",
"Acrisius+",
"Cosmic Chain",
"Petite Ribbon",
"Firefighter Rosette",
"Umbrella Rosette",
"Mask Rosette",
"Snowman Rosette",
"Insulator Rosette",
"Ability Ring+",
"Technician's Ring+",
"Skill Ring+",
"Cosmic Ring",
"Phantom Ring",
"Orichalcum Ring",
"Sorcerer's Ring",
"Wisdom Ring",
"Soldier's Earring",
"Fencer's Earring",
"Mage's Earring",
"Slayer's Earring",
"Moon Amulet",
"Star Charm",
"Draw Ring",
"Blazing Crystal",
"Frost Crystal",
"Lightning Crystal",
"Lucid Crystal",
"Pulsing Crystal",
"Writhing Crystal",
"Mythril Shard",
"Mythril Stone",
"Mythril Gem",
"Mythril Crystal",
"Soothing Crystal",
]
@functools.cached_property
def shotlocks_base(self) -> List[str]:
return [
"Kingdom Key / King of Hearts",
"Kingdom Key / Ragnarok",
"Hero's Origin / Drain Shock",
"Hero's Origin / Atomic Deluge",
"Shooting Star / Meteor Shower",
"Shooting Star / Diving Barrage",
"Shooting Star / Cluster Cannonade",
"Favorite Deputy / Ghost Horde",
"Favorite Deputy / Drill Dive",
"Ever After / Ghost Horde",
"Ever After / Drill Dive",
"Happy Gear / Snakebite",
"Happy Gear / Warp Trick",
"Crystal Snow / Diamond Dust",
"Crystal Snow / Frozen Crescents",
"Wheel of Fate / Blade Storm",
"Wheel of Fate / Flag Rampage",
"Nano Gear / Cubic Stream",
"Nano Gear / Zone Connector",
"Hunny Spout / Hunny Burst",
"Hunny Spout / Hunny Drizzle",
"Hunny Spout / Sweet Surprise",
"Grand Chef / Steam Spiral",
"Grand Chef / Fruit Crusher",
"Classic Tone / Phantom Rush",
"Classic Tone / Noise Flux",
"Starlight / Blades of the Round",
"Starlight / Union Ragnarök",
"Ultima Weapon / Infinity Circle",
]
@functools.cached_property
def shotlocks_re_mind(self) -> List[str]:
return [
"Oathkeeper / Sunray Blast",
"Oathkeeper / Stellar Inception",
"Oblivion / Bladefury Eclipse",
"Oblivion / Stellar Inception",
]
def shotlocks(self) -> List[str]:
shotlocks: List[str] = self.shotlocks_base[:]
if self.has_dlc_re_mind:
shotlocks.extend(self.shotlocks_re_mind)
return sorted(shotlocks)
@staticmethod
def attractions() -> List[str]:
return [
"Mountain Coaster",
"Pirate Ship",
"Mad Tea Cups",
"Blaster Blaze",
"Magic Carousel",
"Splash Run",
]
@staticmethod
def links() -> List[str]:
return [
"Meow Wow Balloon",
"8-Bit Blast",
"King's Flare",
"Plasma Encounter",
"Sea Spectacle",
]
@staticmethod
def flans() -> List[str]:
return [
"Cherry Flan",
"Strawberry Flan",
"Orange Flan",
"Banana Flan",
"Grape Flan",
"Watermelon Flan",
"Honeydew Flan",
]
@staticmethod
def minigames() -> List[str]:
return [
"Verum Rex: Beat of Lead",
"Frozen Slider",
"Flash Tracer: Course A",
"Flash Tracer: Course B",
"Tigger's Vegetable Spree",
"Lumpy's Fruit Parade",
"Pooh's Hunny Harvest",
]
# Archipelago Options
class KingdomHeartsIIIDLCOwned(OptionSet):
"""
Indicates which Kingdom Hearts III DLC the player owns, if any.
"""
display_name = "Kingdom Hearts III DLC Owned"
valid_keys = [
"Re:Mind",
]
default = valid_keys