Skip to content

Commit b041401

Browse files
authored
Merge pull request ArchipelagoMW#1 from ladybunne/iji-item-location-groups
Add item and location groups, world description
2 parents 06fddda + 4837ebb commit b041401

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-6
lines changed

worlds/iji/Items.py

+22
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,25 @@ def create_trap_items(world: "IjiWorld", count: int) -> List[Item]:
225225
}
226226

227227
# items_doors: IjiItemData = {}
228+
229+
### End of unimplemented section.
230+
231+
item_groups_table = {
232+
"Stats": items_primary.keys()[1:],
233+
"Traits": items_traits.keys(),
234+
"Weapons": {
235+
**items_weapons,
236+
**items_specialweapons,
237+
**items_progressiveweapons,
238+
},
239+
"Normal Weapons": {
240+
**items_weapons,
241+
**items_progressiveweapons,
242+
},
243+
"Special Weapons": items_specialweapons.keys(),
244+
# Not sure this one's useful. I'll leave it here but comment it out for now.
245+
# "Collectibles": {
246+
# "Poster",
247+
# "Ribbon"
248+
# }
249+
}

worlds/iji/Locations.py

+6
Original file line numberDiff line numberDiff line change
@@ -1238,3 +1238,9 @@ def get_location_names() -> Dict[str, int]:
12381238
**locations_combinedweapons,
12391239
**locations_uniquespecialweapons
12401240
}
1241+
1242+
location_groups_table = {
1243+
group: locations
1244+
for group in [data.region[:8] for _, data in locations_sectorcomplete.items()]
1245+
for locations in [[location for location, data in location_table.items() if data.region[:8] == group]]
1246+
}

worlds/iji/__init__.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
from BaseClasses import Item, ItemClassification, Location, MultiWorld
22
from worlds.generic.Rules import add_rule, set_rule
33
from worlds.iji.Rules import can_kill_annihilators, can_rocket_boost, has_weapon_stats
4-
from .Items import item_table, create_itempool, create_item
5-
from .Locations import location_table, location_weapons_table
4+
from .Items import item_table, create_itempool, create_item, item_groups_table
5+
from .Locations import location_table, location_weapons_table, location_groups_table
6+
from .Regions import create_regions
67
from .Options import IjiOptions
78
from worlds.AutoWorld import World, CollectionState
89

910
class IjiWorld(World):
1011
"""
11-
Insert Iji description here later
12-
"""
13-
12+
Iji is a freeware action platformer developed by Daniel Remar and released in 2008.
13+
You play as Iji: a young woman empowered with alien technology and suddenly thrown into the midst of deadly
14+
intergalactic conflict... with the fate of humanity in her hands. The game features ten regular levels and several
15+
extra levels, an in-depth stat system that rewards customisation, an arsenal of powerful alien weaponry and a
16+
wealth of secrets to discover.
17+
""" # Description by Ladybunne
1418

1519
game="Iji"
1620
item_name_to_id = {name: data.code for name, data in item_table.items()}
1721
location_name_to_id = {name: data.code for name, data in location_table.items()}
22+
item_name_groups = item_groups_table
23+
location_name_groups = location_groups_table
1824
options_dataclass = IjiOptions
1925
options: IjiOptions
2026

@@ -28,7 +34,7 @@ def create_item(self, name: str) -> Item:
2834
return create_item(self, name)
2935

3036
def create_regions(self):
31-
pass
37+
create_regions(self)
3238

3339

3440

0 commit comments

Comments
 (0)