Modding Help Graphics for animal products and information about machines

Discussion in 'Mods' started by Galebourn, Mar 16, 2016.

  1. Galebourn

    Galebourn Scruffy Nerf-Herder

    Is there any way to edit products made by machines? I'd really like to add ne types of mayonnaise to the mayo maker, but I can't find any information about that, so I'm afraid it's hard-coded.
    I also can't find the graphics for animal products like eggs and milk.

    Any help would be appreciated.
     
    • keyten

      keyten Cosmic Narwhal

      Hard-coded. Here is a code if you need it:
      if (this.name.Equals("Mayonnaise Machine"))
      {
      int num2 = dropIn.ParentSheetIndex;
      if (num2 <= 176)
      {
      if (num2 != 107)
      {
      switch (num2)
      {
      case 174:
      break;
      case 175:
      goto IL_1C01;
      case 176:
      goto IL_B44;
      default:
      goto IL_1C01;
      }
      }
      }
      else
      {
      switch (num2)
      {
      case 180:
      goto IL_B44;
      case 181:
      goto IL_1C01;
      case 182:
      break;
      default:
      if (num2 != 442)
      {
      goto IL_1C01;
      }
      this.heldObject = new Object(Vector2.Zero, 307, null, false, true, false, false);
      if (!probe)
      {
      this.minutesUntilReady = 180;
      Game1.playSound("Ship");
      }
      return true;
      }
      }
      this.heldObject = new Object(Vector2.Zero, 306, null, false, true, false, false)
      {
      quality = 2
      };
      if (!probe)
      {
      this.minutesUntilReady = 180;
      Game1.playSound("Ship");
      }
      return true;
      IL_B44:
      this.heldObject = new Object(Vector2.Zero, 306, null, false, true, false, false);
      if (!probe)
      {
      this.minutesUntilReady = 180;
      Game1.playSound("Ship");
      }
      return true;
      }
       
      • Siddybear

        Siddybear Aquatic Astronaut


        Hi Keyten
        Do you mind if i ask how you are able to see this code?
         
        • keyten

          keyten Cosmic Narwhal

          Sure! It is http://ilspy.net/.
           
          • Siddybear

            Siddybear Aquatic Astronaut

          Share This Page