Skip to content

Commit

Permalink
Testing XP multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
gaithern committed Jan 22, 2024
1 parent e42fce6 commit 9eb11ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions worlds/kh1/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def on_package(self, cmd: str, args: dict):
filename = f"send{ss}"
with open(os.path.join(self.game_communication_path, filename), 'w') as f:
f.close()
print("Slot Data: " + str(args['slot_data']))

if cmd in {"ReceivedItems"}:
start_index = args["index"]
Expand Down
4 changes: 4 additions & 0 deletions worlds/kh1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ def get_filler_item_name(self) -> str:
weights = [data.weight for data in fillers.values()]
return self.multiworld.random.choices([filler for filler in fillers.keys()], weights, k=1)[0]

def fill_slot_data(self) -> dict:
slot_data = {"EXP Multiplier": 1.0}
return slot_data

def create_item(self, name: str) -> KH1Item:
data = item_table[name]
return KH1Item(name, data.classification, data.code, self.player)
Expand Down

0 comments on commit 9eb11ad

Please sign in to comment.