From b093ef1ef0fb79f2a5741c062978b1bfd46c8b23 Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Sun, 3 Nov 2024 13:43:03 +0100 Subject: [PATCH] Fix typos --- scripts/autotracking/archipelago.lua | 4 ++-- scripts/autotracking/item_mapping.lua | 2 +- scripts/autotracking/location_mapping.lua | 2 +- scripts/autotracking/snes.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/autotracking/archipelago.lua b/scripts/autotracking/archipelago.lua index 7df0106..3060d8b 100644 --- a/scripts/autotracking/archipelago.lua +++ b/scripts/autotracking/archipelago.lua @@ -1,5 +1,5 @@ -- this is an example/default implementation for AP autotracking --- it will use the mappings defined in item_mapping.lua and location_mapping.lua to track items and locations via thier ids +-- it will use the mappings defined in item_mapping.lua and location_mapping.lua to track items and locations via their ids -- it will also keep track of the current index of on_item messages in CUR_INDEX -- addition it will keep track of what items are local items and which one are remote using the globals LOCAL_ITEMS and GLOBAL_ITEMS -- this is useful since remote items will not reset but local items might @@ -11,7 +11,7 @@ CUR_INDEX = -1 LOCAL_ITEMS = {} GLOBAL_ITEMS = {} --- resets an item to it's inital state +-- resets an item to its initial state function resetItem(item_code, item_type) local obj = Tracker:FindObjectForCode(item_code) if obj then diff --git a/scripts/autotracking/item_mapping.lua b/scripts/autotracking/item_mapping.lua index c7d386e..1fbdaab 100644 --- a/scripts/autotracking/item_mapping.lua +++ b/scripts/autotracking/item_mapping.lua @@ -1,5 +1,5 @@ -- use this file to map the AP item ids to your items --- first value is the code of the target item and the second is the item type override (feel free to expand the table with any other values you might need (i.e. special inital values, increments, etc.)!) +-- first value is the code of the target item and the second is the item type override (feel free to expand the table with any other values you might need (i.e. special initial values, increments, etc.)!) -- here are the SM items as an example: https://github.com/Cyb3RGER/sm_ap_tracker/blob/main/scripts/autotracking/item_mapping.lua BASE_ITEM_ID = 0 ITEM_MAPPING = { diff --git a/scripts/autotracking/location_mapping.lua b/scripts/autotracking/location_mapping.lua index e6007f7..6e90445 100644 --- a/scripts/autotracking/location_mapping.lua +++ b/scripts/autotracking/location_mapping.lua @@ -1,5 +1,5 @@ -- use this file to map the AP location ids to your locations --- first value is the code of the target location/item and the second is the item type override (feel free to expand the table with any other values you might need (i.e. special inital values, increments, etc.)!) +-- first value is the code of the target location/item and the second is the item type override (feel free to expand the table with any other values you might need (i.e. special initial values, increments, etc.)!) -- to reference a location in Pop use @ in the beginning and then path to the section (more info: https://github.com/black-sliver/PopTracker/blob/master/doc/PACKS.md#locations) -- to reference an item use it's code -- here are the SM locations as an example: https://github.com/Cyb3RGER/sm_ap_tracker/blob/main/scripts/autotracking/location_mapping.lua diff --git a/scripts/autotracking/snes.lua b/scripts/autotracking/snes.lua index 755fbd3..c6042ab 100644 --- a/scripts/autotracking/snes.lua +++ b/scripts/autotracking/snes.lua @@ -7,7 +7,7 @@ function update_example(segment) if not AUTOTRACKER_ENABLE_ITEM_TRACKING then return end - local readResult = segment:ReadUInt8(EXAMPLE_ADDR) -- prefered way of reading + local readResult = segment:ReadUInt8(EXAMPLE_ADDR) -- preferred way of reading local readResult2 = AutoTracker:ReadU16(EXAMPLE_ADDR + 0x1) -- alternative way of reading if AUTOTRACKER_ENABLE_DEBUG_LOGGING_SNES then print(string.format("update_example: readResult: %x, readResult2: %x", readResult, readResult2))