//移動コスト等の取得. public static uint GetMoveCost(uint cid, uint terrain_data, uint costtype) { uint addr = ClassForm.GetMoveCostAddr(cid, costtype); if (!U.isSafetyOffset(addr)) { return(U.NOT_FOUND); } return(Program.ROM.u8(addr + terrain_data)); }
//移動コスト等の取得. public static uint GetMoveCost(uint cid, uint terrain_data, uint costtype) { if (Program.ROM.RomInfo.version() == 6) {//FE6の場合 return(MoveCostFE6Form.GetMoveCost(cid, terrain_data, costtype)); } uint addr = ClassForm.GetMoveCostAddr(cid, costtype); if (!U.isSafetyOffset(addr)) { return(U.NOT_FOUND); } return(Program.ROM.u8(addr + terrain_data)); }