StardewModders / mod-ideas

Submit ideas for mods to create, or find your next mod project!
93 stars 5 forks source link

Sprinklers Indoors #402

Open TimeWandrer opened 4 years ago

TimeWandrer commented 4 years ago

Would love it if sprinklers worked inside the cabins and main farmhouse, especially on pots.

JESSEQUEST commented 4 years ago

It'd be funny if the spaces it hit with nothing it would grow a new, more 'dangerous' crop. Mold types to harvest and make into deadly concoctions XD You're idea is cool though.

Novex commented 4 years ago

Oh I accidentally did this! Not sure if it works with pots though? If normal sprinklers work with pots then it probably will but would you be able to give it a crack and let me know?

https://github.com/Novex/stardew-indoor-watering

kdau commented 4 years ago

Nice! It won't work with Garden Pots as is, since their HoeDirts are not stored in the location's terrainFeatures dictionary but as a property of the IndoorPot objects themselves. Here's an example of code that waters both dirt in the ground and dirt in pots.

Novex commented 4 years ago

Absolute legend! So I got the indoor pots working with sprinklers, and kind of working with rain?

It's super weird. So on days where it's raining with the rainInside config set, only the pots in the range of sprinklers have the dark "watered" dirt. The other pots definitely have the watered status set for their HoeDirt, they just don't show it? Unless you scythe over it and then it changes to watered, but not if you plant a seed?

stardew-semi-watered-pots

Either way I released a version that has pots being watered fine by sprinklers indoors. I'm not super sure what else to check given everything else seems to work alright - anyone got any ideas?