Skip to content

Commit

Permalink
Speedrun/Challenge changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ToboterXP committed Oct 11, 2022
1 parent ab7f3c3 commit 5183853
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion HKSecondQuest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public HKSecondQuest() : base("The Glimmering Realm")

public override string GetVersion()
{
return "v1.1.3.0";
return "v1.1.5.2";
}

public void SetEnabled(bool enabled)
Expand Down
10 changes: 9 additions & 1 deletion Room.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ItemChanger;
using ItemChanger.Placements;
using ItemChanger.Tags;
using ItemChanger.UIDefs;
using System;
Expand Down Expand Up @@ -85,7 +86,14 @@ public void SetItem(string location, string item, bool merge = false, int geoCos
//set cost tags if necessary
if (geoCost > 0)
{
aitem.AddTag<CostTag>().Cost = new GeoCost(geoCost);
if (placement is ISingleCostPlacement)
{
((ISingleCostPlacement)placement).Cost = new GeoCost(geoCost);
}
else
{
aitem.AddTag<CostTag>().Cost = new GeoCost(geoCost);
}
}

if (essenceCost > 0)
Expand Down
2 changes: 1 addition & 1 deletion Rooms/Area1/Area1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public override void OnWorldInit()

//place items
SetItem(LocationNames.Kings_Idol_Cliffs, ItemNames.Geo_Rock_Default);
SetItem(LocationNames.Howling_Cliffs_Map, ItemNames.Dirtmouth_Stag);
SetItem(LocationNames.Howling_Cliffs_Map, ItemNames.Dirtmouth_Stag, geoCost: 100);
SetItem(LocationNames.Cyclone_Slash, ItemNames.Longnail);
SetItem(LocationNames.Wanderers_Journal_Crystal_Peak_Crawlers, ItemNames.Quick_Focus);
SetItem(LocationNames.Deep_Focus, ItemNames.Crystal_Heart);
Expand Down
2 changes: 1 addition & 1 deletion Rooms/Area2/Area2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override void OnWorldInit()
SetItem(LocationNames.Wanderers_Journal_Greenpath_Stag, ItemNames.Grub);
SetItem(LocationNames.Greenpath_Stag, ItemNames.Geo_Rock_Default);

SetItem(LocationNames.Crystal_Peak_Map, ItemNames.Greenpath_Stag);
SetItem(LocationNames.Crystal_Peak_Map, ItemNames.Greenpath_Stag, geoCost: 150);
}
}
}
10 changes: 10 additions & 0 deletions Rooms/Area4/Deepnest_43.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ public override void OnLoad()
{
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 6.5f, 77);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 31.5f, 90);

PlaceGO(Prefabs.SMALL_PLATFORM.Object, 3, 7);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 10, 16);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 7, 25);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 14, 51);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 8, 73);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 13, 86);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 29, 86);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 29, 94);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 12, 99);
}
}
}
2 changes: 1 addition & 1 deletion Rooms/Area5/FinalBossCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public FinalBossCore() : base("Room_Final_Boss_Core") { }

public override void OnBeforeLoad()
{
SetDarkness(true);
//SetDarkness(true);
}

public override void OnLoad()
Expand Down
2 changes: 1 addition & 1 deletion Rooms/Area6/Area6.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public override void OnWorldInit()
SetItem(LocationNames.Dreamshield, ItemNames.Mask_Shard);
SetItem(LocationNames.Hidden_Station_Stag, ItemNames.Kings_Idol);

SetItem(LocationNames.Ancient_Basin_Map, ItemNames.Hidden_Station_Stag);
SetItem(LocationNames.Ancient_Basin_Map, ItemNames.Hidden_Station_Stag, geoCost: 150);
SetItem(LocationNames.Vessel_Fragment_Basin, ItemNames.Mask_Shard);

//place Carefree Melody
Expand Down
2 changes: 1 addition & 1 deletion Rooms/Area7/Area7.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override void OnWorldInit()
SetItem(LocationNames.Wanderers_Journal_Kingdoms_Edge_Camp, ItemNames.Soul_Totem_B);
SetItem(LocationNames.Quick_Slash, ItemNames.Mask_Shard);
SetItem(LocationNames.Wanderers_Journal_Kingdoms_Edge_Entrance, ItemNames.Hallownest_Seal);
SetItem(LocationNames.Kingdoms_Edge_Map, ItemNames.Mask_Shard);
SetItem(LocationNames.Kingdoms_Edge_Map, ItemNames.Mask_Shard, geoCost: 150);
SetItem(LocationNames.Wanderers_Journal_Kingdoms_Edge_Requires_Dive, ItemNames.Dreamshield);
}

Expand Down
2 changes: 1 addition & 1 deletion Rooms/City/City.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public override void OnWorldInit()
SetItem(LocationNames.Kings_Station_Stag, ItemNames.Geo_Rock_Default);
SetItem(LocationNames.Hallownest_Seal_Kings_Station, ItemNames.Wanderers_Journal);
SetItem(LocationNames.City_Crest, ItemNames.Shade_Soul, nonIncremental: true);
SetItem(LocationNames.City_of_Tears_Map, ItemNames.Kings_Station_Stag);
SetItem(LocationNames.City_of_Tears_Map, ItemNames.Kings_Station_Stag, geoCost: 120);
SetItem(LocationNames.World_Sense, ItemNames.Kings_Brand);
SetItem(LocationNames.Grub_City_of_Tears_Guarded, ItemNames.Grub);

Expand Down
2 changes: 2 additions & 0 deletions Rooms/Village3/Deepnest10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public override void OnLoad()
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 24, 106);
PlaceGO(Prefabs.SMALL_PLATFORM.Object, 56, 7);

PlaceGO(Prefabs.SMALL_PLATFORM.Object, 51, 129);

for (int y = 8; y < 90; y += 6) PlaceGO(Prefabs.BOUNCE_MUSHROOM.Object, 12 - (y*y*y % 5), y);
}
}
Expand Down

0 comments on commit 5183853

Please sign in to comment.