Skip to content

Commit

Permalink
final 2?
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhar committed Dec 23, 2023
1 parent cfdd5b1 commit 85b6c2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions MultiServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,13 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
elif "DeathLink" in tags:
if client.slot:
ctx.naughty_players[client.slot] += 1
source = args["data"].get("source", "")
cause = args["data"].get("cause", "")
if source:
if cause:
client.messageprocessor(f"{source} is on the naughty list because they killed a reindeer with DeathLink: {cause}")
else:
client.messageprocessor(f"{source} is on the naughty list because they killed a reindeer with DeathLink.")

for bounce_client in ctx.endpoints:
if ctx.games[bounce_client.slot] == "Pharcryption 2":
Expand Down
2 changes: 1 addition & 1 deletion worlds/santa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SantaWorld(World):
item_name_to_id = {
"Milk & Cookies": BASE_ID_OFFSET + 0,
"Anti-Capitalism Missile": BASE_ID_OFFSET + 1,
"Lump of Coal": BASE_ID_OFFSET + 2,
"\"Lump of Coal\"": BASE_ID_OFFSET + 2,
}

def create_item(self, name) -> SantaItem:
Expand Down

0 comments on commit 85b6c2b

Please sign in to comment.