Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Nov 3, 2024
1 parent f686b14 commit b093ef1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/autotracking/archipelago.lua
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/autotracking/item_mapping.lua
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion scripts/autotracking/location_mapping.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/autotracking/snes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b093ef1

Please sign in to comment.