private void setCondSubValue(ref int cond) { if (mem_deck.MissionState != MissionStates.STOP) { int num = 3; if (Mem_ship.Get_FatitgueState(cond) >= FatigueState.Distress) { num += 6; } cond -= num; if (0 > cond) { cond = 0; } } }
private void setCondSubValue(ref int cond) { if (!practiceFlag) { if (battleKinds == ExecBattleKinds.DayOnly || battleKinds == ExecBattleKinds.DayToNight || battleKinds == ExecBattleKinds.NithtToDay) { int num = 3; if (Mem_ship.Get_FatitgueState(cond) >= FatigueState.Distress) { num += 6; } cond -= num; } if (battleKinds == ExecBattleKinds.DayToNight || battleKinds == ExecBattleKinds.NightOnly || battleKinds == ExecBattleKinds.NithtToDay) { cond -= 2; } } if (0 > cond) { cond = 0; } }