Skip to content

Commit

Permalink
add dreams consumable as "materials" for craftable items
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSav committed Jun 3, 2024
1 parent f37f07a commit d821381
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion Analyzer.LootGroups.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,15 @@ internal static IEnumerable<LootItem> GetItemsWithMaterials(IEnumerable<string>
Dictionary<string, List<Dictionary<string, string>>> materials = ItemDb.Db.Where(x => x.ContainsKey("Material"))
.GroupBy(x => x["Material"])
.ToDictionary(x => x.Key, x => x.ToList());
Dictionary<string, List<Dictionary<string, string>>> consumables = ItemDb.Db.Where(x => x.ContainsKey("Consumable"))
.GroupBy(x => x["Consumable"])
.ToDictionary(x => x.Key, x => x.ToList());
Dictionary<string, List<Dictionary<string, string>>> combined = new[] {materials,consumables}.SelectMany(dict => dict).ToDictionary();

foreach (string item in inventory)
{
string name = Utils.GetNameFromProfileId(item);
if (materials.TryGetValue(name, out List<Dictionary<string, string>>? mat))
if (combined.TryGetValue(name, out List<Dictionary<string, string>>? mat))
{
foreach (Dictionary<string, string> d in mat)
{
Expand Down
15 changes: 10 additions & 5 deletions db.json
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,8 @@
"DropType": "Event",
"DropReference": "Quest_OverworldPOI_TheHunter",
"Prerequisite": "Weapon_Dreamcatcher",
"Note": "Crafted from Sacred Hunt Feather found in an overworld location on Losomn. Attack The Huntress when found sleeping with the Dreamcatcher weapon and it provides a dream consumable, \"Huntress's Dream\", that takes you to \"Briella's Reverie\" which appears to just be a large map full of normal trash mobs. At some point in the map, The Huntress attacks you again. Defeat her to obtain the item"
"Note": "Crafted from Sacred Hunt Feather found in an overworld location on Losomn. Attack The Huntress when found sleeping with the Dreamcatcher weapon and it provides a dream consumable, \"Huntress's Dream\", that takes you to \"Briella's Reverie\" which appears to just be a large map full of normal trash mobs. At some point in the map, The Huntress attacks you again. Defeat her to obtain the item",
"Consumable": "Consumable_HuntersDream"
},
{
"Id": "Mod_Firestorm",
Expand Down Expand Up @@ -2625,7 +2626,8 @@
"Subtype": "Ranged",
"DropType": "Event",
"DropReference": "Quest_RootEarth_Zone2",
"Note": "Drops from Bane Aberration found in Corrupted Harbor location on Root Earth. Use the Dreamcatcher melee weapon on the glowing blue fixture in the area, where you found Escalation Protocol. It just off the main path from the the boiler room arena between the the first and the second checkpoint. Use the \"Walker's Dream\" item, that will drop and you will get teleported to Bane"
"Note": "Drops from Bane Aberration found in Corrupted Harbor location on Root Earth. Use the Dreamcatcher melee weapon on the glowing blue fixture in the area, where you found Escalation Protocol. It just off the main path from the the boiler room arena between the the first and the second checkpoint. Use the \"Walker's Dream\" item, that will drop and you will get teleported to Bane",
"Consumable": "Consumable_RootWalkerDream"
},
{
"Id": "MetaGem_Timewave",
Expand Down Expand Up @@ -5615,7 +5617,8 @@
"DropReference": "Nimue's Retreat | Beatific Palace",
"Prerequisite": "Weapon_Dreamcatcher",
"Note": "Crafted from Anamy's Echo, which you can obtain attacking sleeping Nimue on Losomn with the Dreamcatcher. That will provide consumable Nume's Dream, which you will need to consume. That will teleport you to the Nimue Dream location, follow the light until you find the material",
"Undetectable": true
"Undetectable": true,
"Consumable": "Consumable_NimuesDream"
},
{
"Id": "Weapon_Deceit",
Expand Down Expand Up @@ -6335,7 +6338,8 @@
"DropType": "Progression",
"Note": "Crafted from the Occult Vessel material. Start in an outdoor side path location on Losomn, that has the Ethereal Manor event. There will be a manor where inside you will be grabbed by a Dran saying \"wake up!\". Use Liquid Escape to die and then use the stone to go to Ward 13. Meet the Dran at the Big Door of the old Ward always exahust the dialogue. From now onward you must not die, or you will have to start over. For the locations listed below, they can be either adventure or compaign, but they need to be rolled past the DLC1 patch, as pre patch worlds won't work. You can freely re-roll them until you find a suitable one. Go to Yaesha - Red Throne, go to the right path where you spawn, down the stairs and where the chest is at the other side is another Dran. Go to Labyrinth - Fractured Ingress, from the stone go up the stairs (right or left doesn't matter) until you reach the top. There is another Dran at the middle of the bridge. Go to N'Erud - Tal'Ratha's Refuge and behind you to the left bottom side of the room there is another Dran. Go to Root Earth - Ashen Wasteland, past the train area you will see a checkpoint and another Dran. Go to the Losomn - Tormented Asylum, go straight past the nightweavers web to the other side of the hallway. At your right should be the last Dran. He will give you a consumable Dran Dream. Use the consumable to get to a location with the material.",
"CustomScript": true,
"Undetectable": true
"Undetectable": true,
"Consumable": "Consumable_DransDream"
},
{
"Id": "Weapon_Sparkfire",
Expand Down Expand Up @@ -6623,7 +6627,8 @@
"DropType": "Event",
"DropReference": "Quest_RootEarth_Zone2",
"Prerequisite": "Weapon_Dreamcatcher",
"Note": "Found in Corrupted Harbor location on Root Earth. Use the Dreamcatcher melee weapon on the glowing blue fixture in the area, where you found Escalation Protocol. It just off the main path from the the boiler room arena between the the first and the second checkpoint. Use the \"Walker's Dream\" item, that will drop and defeat the Bane aberration that drops Wooden Shiv"
"Note": "Found in Corrupted Harbor location on Root Earth. Use the Dreamcatcher melee weapon on the glowing blue fixture in the area, where you found Escalation Protocol. It just off the main path from the the boiler room arena between the the first and the second checkpoint. Use the \"Walker's Dream\" item, that will drop and defeat the Bane aberration that drops Wooden Shiv",
"Consumable": "Consumable_RootWalkerDream"
},
{
"Id": "Engram_Medic",
Expand Down

0 comments on commit d821381

Please sign in to comment.