alextd / RimWorld-StockpileRanking

A mod for RimWorld - stockpiles get an ranking for preferred items
https://steamcommunity.com/sharedfiles/filedetails/?id=1558464886
3 stars 1 forks source link

Renking takes precedence over priority #2

Open jgonc19 opened 1 month ago

jgonc19 commented 1 month ago

As @Hattsworth said on the Steam Workshop page, there seems to be a problem with priorities. In my save, your ranking is taken into consideration before the storage Priority.

For example, setting a shelf (1) with: Priority: Critical Ranking 1: Ranking 2: Corn X Corn Ok Meat Ok Meat Ok

And another (shelf2) with: Priority: Low Ranking 1: Corn Ok

This will make my pawns fill shelf2 before shelf1 as 1 doesn't have corn selected in the first ranking. If I'm not mistaken if shoud behave the other way around (unless the first shelf were full of meat, which is not the case).

Thanks in advance.

alextd commented 1 month ago

Whether or not shelf 1 allows corn depends of if there is meat available, not the priorities. The problem is sometimes the code for "meat available" in vanilla can be super optimized to skip over something you'd expect to happen.