Skip to content

Commit

Permalink
Merge pull request #1 from bluejello42/v0.2c
Browse files Browse the repository at this point in the history
Add files via upload
  • Loading branch information
bluejello42 authored Jan 29, 2024
2 parents 521abd6 + ad7b40c commit 82b931b
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 33 deletions.
Binary file added images/money.webp
Binary file not shown.
Binary file added images/stage1.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/stage2.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/stage3.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/stage4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 31 additions & 1 deletion items/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,35 @@
"loop": "true",
"img": "images/Classic Mode.png",
"codes": "chestNumber"
}
},
{
"name": "Money",
"type": "consumable",
"img": "images/items/money.png",
"codes": "Money"
},
{
"name": "Stage 1",
"type": "consumable",
"img": "images/stage1.png",
"codes": "Stage 1"
},
{
"name": "Stage 2",
"type": "consumable",
"img": "images/stage2.png",
"codes": "Stage 2"
},
{
"name": "Stage 3",
"type": "consumable",
"img": "images/stage3.png",
"codes": "Stage 3"
},
{
"name": "Stage 4",
"type": "consumable",
"img": "images/stage4.png",
"codes": "Stage 4"
}
]
66 changes: 43 additions & 23 deletions layouts/items.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,53 @@

{
"shared_item_grid": {
"type": "dock",
"orientation": "top",
"margin": "0,0",
"type": "array",
"orientation": "Vertical",
"content": [
{
"type": "group",
"header": "Items",
"margin": "0,0",
"type": "dock",
"content": [
{
"type": "itemgrid",
"item_margin": "10, 10",
"h_alignment": "left",
"item_size": 4,
"rows": [
[
"LunarTrinket",
"Dios Best Friend",
"Common item",
"Uncommon item",
"Legendary item",
"Boss item",
"Lunar item",
"Equipment",
"Void Item"
]
]
"type": "group",
"header": "Items",
"dock": "left",
"content":{
"type": "itemgrid",
"item_margin": "10, 10",
"h_alignment": "left",
"item_size": 4,
"rows": [
[
"LunarTrinket",
"Dios Best Friend",
"Common item",
"Uncommon item",
"Legendary item",
"Boss item",
"Lunar item",
"Equipment",
"Void Item"
]
]
},
},{
"type": "group",
"header": "Stage",
"dock": "left",
"content":{
"type": "itemgrid",
"item_margin": "10, 10",
"h_alignment": "left",
"item_size": 4,
"rows": [
[
"Stage 1",
"Stage 2",
"Stage 3",
"Stage 4"
]
]
},
},
]
}
Expand Down
5 changes: 2 additions & 3 deletions locations/locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
{
"name": "Distant Roost Scavenger",
"access_rules": [

"Distant Roost",
"{Distant Roost}",
"Distant Roost,$Zone1Access,$Zone2Access,$Zone3Access,$Zone4Access,Sky Meadow"
],
"sections": [{
Expand Down Expand Up @@ -1320,7 +1319,7 @@
"name": "Commencement",
"access_rules": [
"{Moon}",
"Sky Meadow, Moon"
"$Zone1Access,$Zone2Access,$Zone3Access,$Zone4Access, Sky Meadow, Moon"
],
"sections": [{
"name": "Commencement",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Risk of Rain 2",
"game_name": "Risk of Rain 2 ",
"package_version": "0.2b",
"package_version": "0.3",
"package_uid": "risk_ap_tracker",
"author": "Bluejello",
"variants": {
Expand Down
7 changes: 6 additions & 1 deletion scripts/ap_item_mapping.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ ITEM_MAPPING = {
[37726] = {"The Simulacrum (Sky Meadow)","toggle"},
[37746] = {"VoidLocus","toggle"},
[37745] = {"Planetarium","toggle"},
[37013] = {"LunarTrinket","toggle"},
[37013] = {"LunarTrinket","toggle"},
[37301] = {"Money","consumable"},
[37501] = {"Stage 1","consumable"},
[37502] = {"Stage 2","consumable"},
[37503] = {"Stage 3","consumable"},
[37504] = {"Stage 4","consumable"},

}
SETTINGS_MAPPING = {
Expand Down
9 changes: 5 additions & 4 deletions scripts/logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Zone1Access()
Tracker:ProviderCountForCode("Titanic Plains (2)") +
Tracker:ProviderCountForCode("Siphoned Forest")

if (value > 0) then
if (value > 0) and (Tracker:ProviderCountForCode("Stage 1") > 0) then
return 1
end

Expand All @@ -22,7 +22,7 @@ function Zone2Access()
Tracker:ProviderCountForCode("Wetland Aspect") +
Tracker:ProviderCountForCode("Aphelian Sanctuary")

if (value > 0) then
if (value > 0) and (Tracker:ProviderCountForCode("Stage 2") > 0) then
return 1
end
return 0
Expand All @@ -34,7 +34,7 @@ function Zone3Access()
Tracker:ProviderCountForCode("Sulfur Pools") +
Tracker:ProviderCountForCode("Scorched Acres")

if (value > 0) then
if (value > 0) and (Tracker:ProviderCountForCode("Stage 3") > 0) then
return 1
end

Expand All @@ -47,7 +47,8 @@ function Zone4Access()
Tracker:ProviderCountForCode("Sirens Call") +
Tracker:ProviderCountForCode("Sundered Grove")

if (value > 0 ) then
if (value > 0 ) and (Tracker:ProviderCountForCode("Stage 4") > 0) then

return 1
end

Expand Down

0 comments on commit 82b931b

Please sign in to comment.