none366 Posted August 2, 2023 Share Posted August 2, 2023 Hi there ! I'm searching for a function to return true of false for a food item stale [ex: IsStale()] like the function IsRotten() for example but can't find it on the modding index. https://projectzomboid.com/modding/index-files/index-9.html Does anyone have the answer ? Thanks for your time Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted August 3, 2023 Share Posted August 3, 2023 In case you don't know, IsRotten() returns true for both Stale & Rotten food, or did last time I used it. I've just had a looked at the Java docs, maybe try HowRotten() https://zomboid-javadoc.com/41.78/zombie/inventory/InventoryItem.html#HowRotten() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now