ChroniclerCherry / stardew-valley-mods

A collection of my mods for the game Stardew Valley
GNU General Public License v3.0
44 stars 39 forks source link

[EPU] [Request] Tracking Mine Level Depth #50

Open MJA1981 opened 3 years ago

MJA1981 commented 3 years ago

Hello that for this great Mod, would it be possible to add a condition that tracks the currently maximum depth the users have made it in the mines?? I'd like to use Mine Depth in STF to only allow certain items to be purchased after getting to different depths.. Like the way the game knows when to sell different items at Marlons. If possible could it be made multiplayer compatible as well?

The code is something to do with

Game1.player.deepestMineLevel

But I have not C# experience. Another mod... Custom Tokens tracks mine level but it resets to 0 each day and doesn't work for the purposes of STF as it update each morning. Therefor Custom Tokens is always reporting a 0 to STF making it not work as a condition. . Also I don't wish to require another Dependency since STF already requires Expanded Preconditions

Thank you so much in advance for any time or effort you may be able to give this request.

MJA1981 commented 3 years ago

Custom Tokens just added a deepestminelevel token which basically does what I am requesting from you... But since STF already uses Expanded Preconditions Utility it would probably still be great to have it. I'm working with another modder right now who already is using STF and would prefer to not have to add another dependency. So again if you could find the time to add this it would be great apricated. Thank You

Edit: I've been unsuccessful using Custom Tokens with STF and I'm not really surprised since it's designed to add Tokens to Content Patcher and not STF.

MJA1981 commented 3 years ago

Would be great to use something like this iin STF

"When": ["DeepestMineLevel {{Range 85,77376"],

77377 Is Hardcoded to the Quarry so I've read.

MJA1981 commented 3 years ago

I'm very sorry I'm a little unobservant and didn't realize you had a Pinned Section specifically to request this sort of thing. And I'm not sure how to move this now to the appropriate spot. Won't happen again. Please forgive.