Jump to content

Refrigeration Code?


Hydromancerx

Recommended Posts

  • 8 months later...

 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...