mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-20 07:46:08 -07:00
* Jak 1: Overhaul of regions, rules, and special locations. Updated game info page. * Jak 1: Preparations for Alpha. Reintroducing automatic startup in client. Updating docs, readme, codeowners.
67 lines
2.8 KiB
Python
67 lines
2.8 KiB
Python
from BaseClasses import Item
|
|
from .GameID import jak1_name
|
|
from .locs import CellLocations as Cells, ScoutLocations as Scouts, SpecialLocations as Specials
|
|
|
|
|
|
class JakAndDaxterItem(Item):
|
|
game: str = jak1_name
|
|
|
|
|
|
# Power Cells are generic, fungible, interchangeable items. Every cell is indistinguishable from every other.
|
|
cell_item_table = {
|
|
0: "Power Cell",
|
|
}
|
|
|
|
# Scout flies are interchangeable within their respective sets of 7. Notice the abbreviated level name after each item.
|
|
# Also, notice that their Item ID equals their respective Power Cell's Location ID. This is necessary for
|
|
# game<->archipelago communication.
|
|
scout_item_table = {
|
|
95: "Scout Fly - GR",
|
|
75: "Scout Fly - SV",
|
|
7: "Scout Fly - FJ",
|
|
20: "Scout Fly - SB",
|
|
28: "Scout Fly - MI",
|
|
68: "Scout Fly - FC",
|
|
76: "Scout Fly - RV",
|
|
57: "Scout Fly - PB",
|
|
49: "Scout Fly - LPC",
|
|
43: "Scout Fly - BS",
|
|
88: "Scout Fly - MP",
|
|
77: "Scout Fly - VC",
|
|
85: "Scout Fly - SC",
|
|
65: "Scout Fly - SM",
|
|
90: "Scout Fly - LT",
|
|
91: "Scout Fly - GMC",
|
|
}
|
|
|
|
# TODO - Orbs are also generic and interchangeable.
|
|
# orb_item_table = {
|
|
# ???: "Precursor Orb",
|
|
# }
|
|
|
|
# These are special items representing unique unlocks in the world. Notice that their Item ID equals their
|
|
# respective Location ID. Like scout flies, this is necessary for game<->archipelago communication.
|
|
special_item_table = {
|
|
5: "Fisherman's Boat", # Unlocks 14 checks in Misty Island
|
|
4: "Jungle Elevator", # Unlocks 2 checks in Forbidden Jungle
|
|
2: "Blue Eco Switch", # Unlocks 1 check in Jungle and 1 in Beach
|
|
17: "Flut Flut", # Unlocks 2 checks in Swamp and 2 in Snowy
|
|
33: "Warrior's Pontoons", # Unlocks 14 checks in Swamp and everything post-Rock Village
|
|
105: "Snowy Mountain Gondola", # Unlocks 15 checks in Snowy Mountain
|
|
60: "Yellow Eco Switch", # Unlocks 1 check in Pass and 1 in Snowy
|
|
63: "Snowy Fort Gate", # Unlocks 3 checks in Snowy Mountain
|
|
71: "Freed The Blue Sage", # 1 of 3 unlocks for the final staircase and 2 checks in Citadel
|
|
72: "Freed The Red Sage", # 1 of 3 unlocks for the final staircase and 2 checks in Citadel
|
|
73: "Freed The Yellow Sage", # 1 of 3 unlocks for the final staircase and 2 checks in Citadel
|
|
70: "Freed The Green Sage", # Unlocks the final elevator
|
|
}
|
|
|
|
# All Items
|
|
# While we're here, do all the ID conversions needed.
|
|
item_table = {
|
|
**{Cells.to_ap_id(k): cell_item_table[k] for k in cell_item_table},
|
|
**{Scouts.to_ap_id(k): scout_item_table[k] for k in scout_item_table},
|
|
# **{Orbs.to_ap_id(k): orb_item_table[k] for k in orb_item_table},
|
|
**{Specials.to_ap_id(k): special_item_table[k] for k in special_item_table},
|
|
}
|