#include "mk_inc_debug" #include "mk_inc_language" #include "mk_inc_tlk" #include "mk_inc_tools" #include "mk_inc_color" const int MK_ITEM_APPR_ARMOR_COLOR_LEATHER = 6; const int MK_ITEM_APPR_ARMOR_COLOR_CLOTH = 7; const int MK_ITEM_APPR_ARMOR_COLOR_METAL = 8; const int MK_ITEM_APPR_ARMOR_COLOR_LEATHERCLOTH = 9; const int MK_ITEM_APPR_ARMOR_COLOR_ALL = 10; const int MK_ITEM_APPR_ARMOR_NUM_COLORS = 11; const string MK_IAAC_2DA_FILE = "mk_iaac_def"; //--------------------------------------------------------------------------- // a) in this include file color always means the material (leather 1, // leather 2, cloth 1, ... or one of the composed materials (leather 1+2,..). // b) the actual color is colorValue //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // returns TRUE if the specified color is valid //--------------------------------------------------------------------------- int MK_IAAC_GetIsValid(int nColor); //--------------------------------------------------------------------------- // returns TRUE if the specified color is a base color // means: 0 <= nCOLOR < ITEM_APPR_ARMOR_NUM_COLORS //--------------------------------------------------------------------------- int MK_IAAC_GetIsBase(int nColor); //--------------------------------------------------------------------------- // returns the color count for the specified armor color //--------------------------------------------------------------------------- int MK_IAAC_GetColorCount(int nColor); //--------------------------------------------------------------------------- // returns color no nNumber for the specified color //--------------------------------------------------------------------------- int MK_IAAC_GetColor(int nColor, int nNumber); //--------------------------------------------------------------------------- // returns TRUE if specified color contains specified color // nColor: >=0, =0, 0); } int MK_IAAC_GetIsBase(int nColor) { return (0<=nColor) && (nColor