Hydromancerx Posted May 27, 2015 Share Posted May 27, 2015 Is there a way to access the refrigeration effect for an item? Where is the code for refrigeration located? Link to comment Share on other sites More sharing options...
ZombiesLoveBrainiacs Posted February 16, 2016 Share Posted February 16, 2016 Is there a way to access the refrigeration effect for an item? Where is the code for refrigeration located? The temperature might be the "CookingFactor" and/or "ageFactor" in ItemContainer.class:public ItemContainer(int ID, String containerName, IsoGridSquare square, IsoObject parent, int wid, int hei) { this.ID = ID; this.parent = parent; this.type = containerName; this.SourceGrid = square; if (containerName.equals("fridge")) { this.ageFactor = 0.02F; this.CookingFactor = 0.0F; } }So doing setCookingFactor(0) and setAgeFactor(0.02) on an ItemContainer in lua might get you a fridge. Maybe ;P 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