Skip to content

Commit

Permalink
start to tricks logic
Browse files Browse the repository at this point in the history
take the wheel scipio
  • Loading branch information
Br00ty committed Oct 30, 2024
1 parent 0da599a commit 48b0765
Show file tree
Hide file tree
Showing 23 changed files with 536 additions and 287 deletions.
Binary file modified TunicTracker.zip
Binary file not shown.
Binary file added images/tricks/ice_grappling_easy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ice_grappling_hard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ice_grappling_med.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ice_grappling_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ladder_storage_easy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ladder_storage_hard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ladder_storage_med.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ladder_storage_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/ladder_storage_without_items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/lanternless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/lanternless_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/laurels_zips.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/laurels_zips_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/maskless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tricks/maskless_gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
501 changes: 295 additions & 206 deletions items/common_pop.json

Large diffs are not rendered by default.

166 changes: 165 additions & 1 deletion layouts/itemspop.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,169 @@
["pray","cross","icerod","silver"]
]
}
}
},
"settings": {
"type":"array",
"orientation": "vertical",
"content": [
{
"type": "group",
"header": "Glitch Mode",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "mode"
}
]
},
{
"type": "group",
"header": "Classic/Hexagon Quest",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "hexagonquest"
}
]
},
{
"type": "group",
"header": "Sword Setting",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "progswordSetting"
}
]
},
{
"type": "group",
"header": "Ladder Shuffle",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "ladder_shuffle_off"
}
]
},
{
"type": "group",
"header": "Pack Settings",
"header_background": "#3e4b57",
"content": [
{
"type": "array",
"orientation": "horizontal",
"content": [
{
"type": "item",
"max_width": 80,
"item_margin": "5,5,5,5",
"item": "auto_tab"
},
{
"type": "item",
"max_width": 80,
"item_margin": "5,5,5,5",
"item": "show_hints"
}
]
}
]
}
]
},
"tricks_toggle": {
"type": "array",
"orientation": "vertical",
"item_size": "20",
"content": [
{
"type": "group",
"header": "Maskless",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "maskless",
"max_width": 350
}
]
},
{
"type": "group",
"header": "Lanternless",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "lanternless",
"max_width": 350
}
]
},
{
"type": "group",
"header": "Laurels Zips",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "laurels_zips",
"max_width": 350
}
]
},
{
"type": "group",
"header": "Ice Grappling",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "ice_grapple_off",
"max_width": 350
}
]
},
{
"type": "group",
"header": "Ladder Storage",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "ladder_storage_off",
"max_width": 350
}
]
},
{
"type": "group",
"header": "Ladder Storage without Items",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"item_margin": "-5,-1,-5,-5",
"item": "storage_no_items",
"max_width": 350
}
]
}
]
}
}
21 changes: 21 additions & 0 deletions layouts/settings_popup_pop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"settings_popup": {
"type": "tabbed",
"tabs": [
{
"title": "Settings",
"content": {
"type": "layout",
"key": "settings"
}
},
{
"title": "Tricks",
"content": {
"type": "layout",
"key": "tricks_toggle"
}
}
]
}
}
79 changes: 0 additions & 79 deletions layouts/trackerpop.json
Original file line number Diff line number Diff line change
@@ -1,83 +1,4 @@
{
"settings_popup": {
"type": "array",
"margin": "5",
"content": [
{
"type": "group",
"header": "Glitch Mode",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"margin": "-5,-1,-5,-5",
"item": "mode"
}
]
},
{
"type": "group",
"header": "Classic/Hexagon Quest",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"margin": "-5,-1,-5,-5",
"item": "hexagonquest"
}
]
},
{
"type": "group",
"header": "Sword Setting",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"margin": "-5,-1,-5,-5",
"item": "progswordSetting"
}
]
},
{
"type": "group",
"header": "Ladder Shuffle",
"header_background": "#3e4b57",
"content": [
{
"type": "item",
"margin": "-5,-1,-5,-5",
"item": "ladder_shuffle_off"
}
]
},
{
"type": "group",
"header": "Pack Settings",
"header_background": "#3e4b57",
"content": [
{
"type": "array",
"orientation": "horizontal",
"content": [
{
"type": "item",
"max_width": 80,
"margin": "5,5,5,5",
"item": "auto_tab"
},
{
"type": "item",
"max_width": 80,
"margin": "5,5,5,5",
"item": "show_hints"
}
]
}
]
}
]
},
"tracker_horizontal": {
"type": "container",
"background": "#877373",
Expand Down
54 changes: 54 additions & 0 deletions scripts/autotracking/archipelago.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,61 @@ function onClear(slot_data)
end
end

if slot_data.maskless then
--print("slot_data.maskless: " .. slot_data.maskless)
local obj = Tracker:FindObjectForCode("maskless")
if obj then
obj.Active = slot_data.maskless == 1
end
end

if slot_data.lanternless then
--print("slot_data.lanternless: " .. slot_data.lanternless)
local obj = Tracker:FindObjectForCode("lanternless")
if obj then
obj.Active = slot_data.lanternless == 1
end
end

if slot_data.laurels_zips then
--print("slot_data.laurels_zips: " .. slot_data.laurels_zips)
local obj = Tracker:FindObjectForCode("laurels_zips")
if obj then
obj.Active = slot_data.laurels_zips == 1
end
end

if slot_data.ice_grappling then
if slot_data.ice_grappling == 0 then
Tracker:FindObjectForCode("ice_grapple_off").CurrentStage = 0
elseif slot_data.ice_grappling == 1 then
Tracker:FindObjectForCode("ice_grapple_off").CurrentStage = 1
elseif slot_data.ice_grappling == 2 then
Tracker:FindObjectForCode("ice_grapple_off").CurrentStage = 2
elseif slot_data.ice_grappling == 3 then
Tracker:FindObjectForCode("ice_grapple_off").CurrentStage = 3
end
end

if slot_data.ladder_storage then
if slot_data.ladder_storage == 0 then
Tracker:FindObjectForCode("ladder_storage_off").CurrentStage = 0
elseif slot_data.ladder_storage == 1 then
Tracker:FindObjectForCode("ladder_storage_off").CurrentStage = 1
elseif slot_data.ladder_storage == 2 then
Tracker:FindObjectForCode("ladder_storage_off").CurrentStage = 2
elseif slot_data.ladder_storage == 3 then
Tracker:FindObjectForCode("ladder_storage_off").CurrentStage = 3
end
end

if slot_data.ladder_storage_without_items then
--print("slot_data.ladder_storage_without_items: " .. slot_data.ladder_storage_without_items)
local obj = Tracker:FindObjectForCode("storage_no_items")
if obj then
obj.Active = slot_data.ladder_storage_without_items == 1
end
end

Tracker:FindObjectForCode("ladder_shuffle_off").CurrentStage = slot_data.shuffle_ladders

Expand Down
2 changes: 1 addition & 1 deletion scripts/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ if PopVersion then
Tracker:AddLayouts("layouts/itemspop.json")
Tracker:AddLayouts("layouts/trackerpop.json")
Tracker:AddLayouts("layouts/standard_broadcastpop.json")
Tracker:AddLayouts("layouts/settings_popup_pop.json")
else
Tracker:AddItems("items/common.json")
Tracker:AddLayouts("layouts/items.json")
Tracker:AddLayouts("layouts/tracker.json")
Tracker:AddLayouts("layouts/standard_broadcast.json")
end


-- Utility Script for helper functions etc.
ScriptHost:LoadScript("scripts/utils.lua")

Expand Down

0 comments on commit 48b0765

Please sign in to comment.