#include "mk_inc_generic" #include "mk_inc_version" #include "x2_inc_craft" #include "mk_inc_craft" #include "mk_inc_debug" #include "mk_inc_states" int StartingConditional() { object oPC = GetPCSpeaker(); object oTarget = MK_GetCurrentTarget(oPC); object oItem = CIGetCurrentModItem(oPC); int nPart = MK_GetCurrentModPart(oPC); int nState = MK_GenericDialog_GetState(TRUE); // MK_DEBUG_TRACE("mk_pre_critem: nState="+IntToString(nState)+", modMode="+IntToString(CIGetCurrentModMode(oPC))); switch (nState) { case MK_STATE_SELECTPART: switch (CIGetCurrentModMode(oPC)) { case X2_CI_MODMODE_ARMOR: { int nPartQ = MK_GenericDialog_GetAction(); if ((nPartQ>=0) && (nPartQ