Add this variable in the file outside of methods:
Now change your code to this:Code:public int[] isCrossbow = {9185, 0000, 0000, 0000, 0000};
Code:for (int i = 0; i < isCrossbow.length; i++) c.usingCross = c.playerEquipment[c.playerWeapon] == isCrossbow[i];