Slay the Spire

Slay the Spire

74 ratings
Weighted Paths
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
592.621 KB
25 Jan, 2021 @ 2:07pm
11 Sep, 2022 @ 2:51pm
12 Change Notes ( view )

Subscribe to download
Weighted Paths

Description
A simple mod that calculates the value of every path through the map and displays which nodes are the most valuable based on a set of factors configurable by the player. It works great for quickly identifying the best path options through an act.

To use the mod, simply open your map, and configure the value of each type of node. The mod will search all possible paths from your current position and display a value next to each node indicating the maximum value of all paths that go through that node.

This does not tell you where to go, but it shows you the value of the map nodes based on what you find valuable. You can choose to take a safer, lower value, path than the highest value path if you're not strong enough to take the more valuable path.

The value of each node is exactly what you set it to with the exception of shops. For shop value, the game calculates how much gold it will expect you to have by the time you hit the store and will change with any shop or gold related relics you have. You specify the value of having 100g to spend at a shop, and it weighs the value of shops accordingly.

Relics it automatically accounts for: Golden Idol, Maw Bank, Membership Card, The Courier, Ssserpent Head, and Ectoplasm.

The mod also displays your max expected gold for future shops in the act. This does not factor in possible gold from ? nodes, but does factor in the gold relics as well as the gold you can reasonably expect to have from fights.

Some examples of weight tuning:

If you, for some reason, have Coffee Dripper and Fusion Hammer, you will likely want to lower the weight of rest sites. On the other hand, if you have low health and really need a campfire, you will want to alter the weight of rest sites.

If you're playing with cards like Genetic Algorithm, Feed, Lesson Learned, or Ritual Dagger, you may choose to increase the weight of monster fights.

If you have Ssserpent Head, any ? nodes before a store in a path will automatically show as higher value, but you may want to increase the value of ? nodes regardless if you don't need to hit a store in the current act.

Tweaking the values is easy and intuitive.

There includes an option to only show paths that intersect the emerald key by act 3.

Source: https://github.com/Jazzer360/sts-weighted-paths
45 Comments
Juice 25 Feb @ 4:48pm 
the UI is cut off. I tried different resolutions, but I will keep trying. seems like it might be using a wide screen resolution?
For Selling Mayonaise! 16 Jan @ 7:46am 
Seems to crash when starting a downfall run
メノザキ 13 Dec, 2024 @ 6:09pm 
would making editing the default values possible be easier to implement than weight saving? or just let us know how if it's already possible
Med 28 Jul, 2024 @ 6:56pm 
Yeah, winged boots would be a resource hog to calculate. Still super happy for the mod as it makes the game so much more enjoyable!.:dwarven:
Hand Banana  [author] 28 Jul, 2024 @ 6:37pm 
I actually was toying with implementing support for winged boots, but it was pretty confusing since I was not indicating any of the hops for the winged boots and decided it would be best left to the player to make those decisions in the end. It exponentially increases the path choices, so it was taking my computer a few seconds to calculate the path values.
StarNight【星夜】 14 Oct, 2023 @ 9:14am 
Nice mod, thank you!
freeflyfish 5 Jan, 2023 @ 9:53am 
It is suggested to display monsters, rewards, etc
Zendakon 19 Nov, 2022 @ 9:44pm 
tbf how could it?
Rat 19 Nov, 2022 @ 1:37pm 
The mod does not account for things like winged boots.
Med 7 Oct, 2022 @ 3:26pm 
Awesome! Thanks so much for the update! :2015holly: :steamhappy: :dwarven: