public static int setEstharZones(int i) { if (true) // esthar replace flag { if (Extended.In(i, 373, 380)) { return(i + 395); } if (Extended.In(i, 405, 412)) { return(i + 371); } if (Extended.In(i, 437, 444)) { return(i + 347); } if (Extended.In(i, 469, 476)) { return(i + 323); } if (Extended.In(i, 501, 508)) { return(i + 299); } if (Extended.In(i, 533, 540)) { return(i + 275); } if (Extended.In(i, 565, 572)) { return(i + 251); } } return(i); //compiler sake }
/// <summary> /// This method returns the origX and origY coordinates for segment replacement for pre-parsing /// </summary> /// <param name="i">index of wm block</param> /// <returns></returns> public static int GetInterchangableSegmentReplacementIndex(int i) { if (i < 768) { return(i); } if (i == (int)interZone.prisonNormal) //correct { return((int)interZone.prisonGround); } if (i == (int)interZone.missileBaseNormal) { return((int)interZone.missileBaseDestroyed); } if (i == (int)interZone.balambGardenE_static) //correct; { return((int)interZone.balambGardenE_mobile + 1); } if (i == (int)interZone.balambGardenW_static) { return((int)interZone.balambGardenW_mobile - 1); } if (i == (int)interZone.galbadiaGarden_static) { return((int)interZone.galbadiaGarden_mobile); } if (i == (int)interZone.trabiaGardenE_state0) { return((int)interZone.trabiaGardenE_state1); } if (i == (int)interZone.trabiaGardenW_state0) { return((int)interZone.trabiaGardenW_state1); } if (i == (int)interZone.lunarCryCraterE_state0) { return((int)interZone.lunarCryCraterE_state1); } if (i == (int)interZone.lunarCryCraterW_state0) { return((int)interZone.lunarCryCraterW_state1); } if (i == (int)interZone.lunarCryCreaterN_state0) { return((int)interZone.lunarCryCraterN_state1); } if (i == (int)interZone.lunarCryCraterS_state0) { return((int)interZone.lunarCryCraterS_state1); } if (Extended.In(i, 768, 775)) { return(i - 395); } if (Extended.In(i, 776, 783)) { return(i - 371); } if (Extended.In(i, 784, 791)) { return(i - 347); } if (Extended.In(i, 792, 799)) { return(i - 323); } if (Extended.In(i, 800, 807)) { return(i - 299); } if (Extended.In(i, 808, 815)) { return(i - 275); } if (Extended.In(i, 816, 823)) { return(i - 251); } return(0); }