diff --git a/CommonClient.py b/CommonClient.py index 0e5715b8..f78a3d64 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -269,13 +269,14 @@ class CommonContext(): else: logger.info(f"DeathLink: Received from {data['source']}") - async def send_death(self): + async def send_death(self, death_text: str = ""): self.last_death_link = time.time() await self.send_msgs([{ "cmd": "Bounce", "tags": ["DeathLink"], "data": { "time": self.last_death_link, - "source": self.player_names[self.slot] + "source": self.player_names[self.slot], + "cause": death_text } }]) diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index 9ec9bb40..e745937d 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -123,7 +123,7 @@ class World(metaclass=AutoWorldRegister): self.player = player # overridable methods that get called by Main.py, sorted by execution order - # can also be implemented as a classmethod and called "stage_", # in that case the MultiWorld object is passed as an argument and it gets called once for the entire multiworld. # An example of this can be found in alttp as stage_pre_fill def generate_early(self):