Skip to content

Commit

Permalink
Merge pull request #55 from Hamsda/dev
Browse files Browse the repository at this point in the history
update to version 2.3.3.6
  • Loading branch information
Hamsda authored Apr 17, 2019
2 parents 2678f04 + 5e605d7 commit 41ac5a3
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 8 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 2.3.3.6

- changed capture layout
- added an extra line for a bit more space
- added ice traps and stone of agony
- changed bottles to automatically fill the first available bottle slot

## 2.3.3.5

- fixed Forest Temple outdoor west GS with hookshot from floormaster chest
Expand Down
Binary file modified ootrando_overworldmap_hamsda.zip
Binary file not shown.
12 changes: 12 additions & 0 deletions ootrando_overworldmap_hamsda/items/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -678,5 +678,17 @@
"codes": "ruto,rutosletter",
}
],
},
{
"name": "Bottle",
"type": "toggle",
"img": "images/bottle.png",
"codes": "bottlecapture"
},
{
"name": "Rutos Letter",
"type": "toggle",
"img": "images/bottle_letter.png",
"codes": "rutocapture"
}
]
19 changes: 15 additions & 4 deletions ootrando_overworldmap_hamsda/layouts/capture.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"bluetunic"
],
[
"HP",
"HC",
"rupee",
"bottle4",
"bottlecapture",
"rutocapture",
"",
"",
"adulttrade",
"kidtrade",
"scale1",
Expand All @@ -69,6 +69,17 @@
"nocturne",
"prelude",
"card",
"agony",
"icetrap"
],
[
"",
"",
"",
"",
"HP",
"HC",
"rupee",
"generic_small_key",
"generic_boss_key"
]
Expand Down
2 changes: 1 addition & 1 deletion ootrando_overworldmap_hamsda/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "OoT Randomizer - Map and Item Tracker",
"game_name": "Ocarina of Time Randomizer",
"package_version": "2.3.3.5",
"package_version": "2.3.3.6",
"package_uid": "ootrando_overworldmap_hamsda",
"author": "Hamsda",
"variants": {
Expand Down
35 changes: 33 additions & 2 deletions ootrando_overworldmap_hamsda/scripts/update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function update_smallkeys()
end
end



vanilla_captures = {
["setting_shuffle_sword1_yes"] = {
["@Kokiri Sword Chest/Dodge Boulder"] = "sword1"
Expand All @@ -71,11 +73,9 @@ vanilla_captures = {
settings_cache = {}
function update_captures()
for setting,captures in pairs(vanilla_captures) do

local has_setting = has(setting)
if not settings_cache[setting] or settings_cache[setting] ~= has_setting then
settings_cache[setting] = has_setting

for location,item in pairs(captures) do
local location_object = Tracker:FindObjectForCode(location)
local item_object = Tracker:FindObjectForCode(item)
Expand All @@ -91,7 +91,38 @@ function update_captures()
end
end



capture_bottle_mapping = {
["bottlecapture"] = 1,
["rutocapture"] = 2
}
function find_first_free_bottle()
for i=1,4 do
local bottle = Tracker:FindObjectForCode("bottle"..i)
if bottle and bottle.CurrentStage == 0 then
return bottle
end
end
return nil
end
function check_capture_bottles()
for code,stage in pairs(capture_bottle_mapping) do
local capture = Tracker:FindObjectForCode(code)
if capture and capture.Active then
capture.Active = false
local bottle = find_first_free_bottle()
if bottle then
bottle.CurrentStage = stage
end
end
end
end



function tracker_on_accessibility_updated()
update_smallkeys()
update_captures()
check_capture_bottles()
end
2 changes: 1 addition & 1 deletion repository.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"pins",
"chathud"
],
"version": "2.3.3.5",
"version": "2.3.3.6",
"uid": "ootrando_overworldmap_hamsda",
"link": "https://hamsda.github.io/OoTRMapTracker/ootrando_overworldmap_hamsda.zip",
"variants": [
Expand Down

0 comments on commit 41ac5a3

Please sign in to comment.