[Solved] Need help with my smelting mod

Started by Paradies, March 06, 2018, 01:15:00 PM

Previous topic - Next topic

Paradies

Hi guys, in A16 and A17 I wrote a mod for smelting shild belts (Disassemble Shield Belt at Steam) and now a user noticed a bug that i havn't in the previous builds. If you want to smelt a belt, you can set the quality and the hit points as with weapons and apparels. But now the pawns ignore the quality and hit point setting and they'll smelt all belts they have access for. I can't find a solution to fix this, maybe it's <thingClass>ShieldBelt</thingClass> under Apparel_Belts?
I would be very thankful for help  :)

Paradies

Solved it,

switched

    <ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>Apparel_ShieldBelt</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>

to

    <ingredients>
      <li>
        <filter>
          <categories>
            <li>Apparel</li>
          </categories>
        </filter>
        <count>1</count>
      </li>
    </ingredients>

but have left <fixedIngredientFilter> on <thingDefs> Apparel_ShieldBelt instead of <categories> Apparel.