Skip to content

Commit

Permalink
fixed autotracking of questagon abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Br00ty committed Oct 23, 2024
1 parent 1d88bb6 commit 0da599a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Tunic Randomizer - Item & Map Tracker",
"game_name": "Tunic",
"platform": "PC",
"package_version": "1.7.6b",
"package_version": "2.0.0",
"package_uid": "tunic_sapphiresapphic",
"author": "SapphireSapphic, Scout_JD, Br00ty",
"variants": {
Expand Down Expand Up @@ -32,5 +32,5 @@
}
},
"versions_url": "https://raw.githubusercontent.com/SapphireSapphic/TunicTracker/master/versions.json",
"min_poptracker_version": "0.26.0"
"min_poptracker_version": "0.29.0"
}
20 changes: 17 additions & 3 deletions scripts/autotracking/archipelago.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function onClear(slot_data)
return
end

if slot_data['Hexagon Quest Prayer'] ~= 0 then
if slot_data['Hexagon Quest Prayer'] ~= 0 and slot_data.hexagon_quest_ability_type == 0 then
hexprayer = slot_data['Hexagon Quest Prayer']
--print("hexprayer: " .. hexprayer)
hexcross = slot_data['Hexagon Quest Holy Cross']
Expand All @@ -135,6 +135,20 @@ function onClear(slot_data)
Tracker:FindObjectForCode("sword").CurrentStage = 0
end

-- IDK IF THIS WILL WORK LMAO
if slot_data.hexagon_quest == true and slot_data.hexagon_quest_ability_type == 0 then
Tracker:FindObjectForCode("pray").Active = false
Tracker:FindObjectForCode("cross").Active = false
Tracker:FindObjectForCode("icerod").Active = false
end

-- IDK IF THIS WILL WORK LMAO
if slot_data.hexagon_quest == true and slot_data.hexagon_quest_ability_type == 1 then
Tracker:FindObjectForCode("pray").Active = false
Tracker:FindObjectForCode("cross").Active = false
Tracker:FindObjectForCode("icerod").Active = false
end

if slot_data.hexagon_quest ~= 0 then
--print("slot_data['hexagon_quest']: " .. slot_data['hexagon_quest'])
Tracker:FindObjectForCode("hexagonquest").CurrentStage = slot_data.hexagon_quest
Expand Down Expand Up @@ -229,8 +243,8 @@ function onItem(index, item_id, item_name, player_number)
elseif AUTOTRACKER_ENABLE_DEBUG_LOGGING_AP then
print(string.format("onItem: could not find object for code %s", v[1]))
end
if v[1] == "hexquest" and SLOT_DATA.ability_shuffling ~= 0 then
print("hexes acquired: " .. obj.AcquiredCount)
if v[1] == "hexquest" and SLOT_DATA.ability_shuffling ~= 0 and SLOT_DATA.hexagon_quest_ability_type == 0 then
--print("hexes acquired: " .. obj.AcquiredCount)
Tracker:FindObjectForCode("pray").Active = obj.AcquiredCount >= hexprayer
Tracker:FindObjectForCode("cross").Active = obj.AcquiredCount >= hexcross
Tracker:FindObjectForCode("icerod").Active = obj.AcquiredCount >= hexice
Expand Down
2 changes: 1 addition & 1 deletion settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "Tunic Randomizer - Item & Map Tracker",
"game_name": "Tunic",
"author": "SapphireSapphic, Scout_JD, Br00ty",
"version": "1.7.6b",
"version": "2.0.0",
"uid": "tunic_sapphiresapphic",
"package_repositories": ["sapphiresapphic.github.io/repository.json"]
}
10 changes: 10 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"versions": [
{

"package_version": "2.0.0",
"download_url": "https://github.com/SapphireSapphic/TunicTracker/releases/download/2.0.0/TunicTracker.zip",
"sha256": "180914e914c9bce9ed6340e83133a345ecf9740d07324f54400175a70c95a8c5",
"changelog": [
"fix autotracking of pages when questagon is on/off with new settings",
"other issues were fixed that i have idea what they are anymore because its been so long, so enjoy LMAO"
]
},
{

"package_version": "1.7.6b",
Expand Down

0 comments on commit 0da599a

Please sign in to comment.