Open Ghoulboy78 opened 10 months ago
On an unrelated note, altrisi, do you think it would be a good idea to have pull request checks not run on drafts?
Currently item_nutrition()
and item_saturation()
are technically missing some null checks which can be added easily, but if we go with food_properties()
those will be redundant anyways.
On an unrelated note, altrisi, do you think it would be a good idea to have pull request checks not run on drafts?
Why not? They don't cause issues, and they still provide all the benefits of checks normally, and you can ignore them if you don't want them yet.
About the PR, wondering if it'd make sense to have a more general thing for item/block properties that you can then query for this stuff, though I don't know what else it'd have or how would be the best way to make handle it.
The thing is, that food properties are kinda unique.
I agree that maybe we could refactor the item/block properties thing to be easier, but tbh it's pretty understandable rn, and besides it would deprecate a bunch of apps which use these functions, especially in ways we don't expect.
Unless, of course, we were to add some new functions and deprecate the old ones, but that's separate from this cos, again, food is kinda unique. But that kind of a general querying thing could work for block properties and items both. That way if an item is inputted, then you get the default values for that item, but if a block value is inputted, then you get the properties of that block specifically, if that makes sense? If it helps I could draft it, but tbh this sounds pretty similar to the system we already have.
On an unrelated note, altrisi, do you think it would be a good idea to have pull request checks not run on drafts?
Why not? They don't cause issues, and they still provide all the benefits of checks normally, and you can ignore them if you don't want them yet.
Well I figured cos that way you don't run unnecessary actions cos drafts can't be merged, but ig ye y not.
That should be it.
Fixes #1701 I have added what was requested in the issue, but I realised that there is currently also no way to look at a food item's food properties, so I decided to add a system_info() style thing where you can either query it for a single property, or query all of them. This way it's simple, and with no unnecessary overhead.
Todo: