From b2162bb8e698fcc910377c3f76d5893c5f36ff3e Mon Sep 17 00:00:00 2001 From: qwint Date: Wed, 12 Feb 2025 11:46:07 -0500 Subject: [PATCH] Docs: clean up create_item/event example (#4596) * eyes * remove line wraps where unnecessary --- docs/world api.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/world api.md b/docs/world api.md index da74be70..6a45ccbf 100644 --- a/docs/world api.md +++ b/docs/world api.md @@ -562,17 +562,13 @@ from .items import is_progression # this is just a dummy def create_item(self, item: str) -> MyGameItem: # this is called when AP wants to create an item by name (for plando) or when you call it from your own code - classification = ItemClassification.progression if is_progression(item) else - ItemClassification.filler - - -return MyGameItem(item, classification, self.item_name_to_id[item], - self.player) + classification = ItemClassification.progression if is_progression(item) else ItemClassification.filler + return MyGameItem(item, classification, self.item_name_to_id[item], self.player) def create_event(self, event: str) -> MyGameItem: # while we are at it, we can also add a helper to create events - return MyGameItem(event, True, None, self.player) + return MyGameItem(event, ItemClassification.progression, None, self.player) ``` #### create_items