private string getAlertMessage(DeckModel deck) { UserInfoModel userInfo = StrategyTopTaskManager.GetLogicManager().UserInfo; MemberMaxInfo memberMaxInfo = userInfo.ShipCountData(); MemberMaxInfo memberMaxInfo2 = userInfo.SlotitemCountData(); if (deck.GetShips().Any((ShipModel x) => x.IsTaiha())) { AlertMessage.color = AlertColor; return("※大破している艦娘がいます。(被弾により喪失の危険があります)"); } if (memberMaxInfo.MaxCount <= memberMaxInfo.NowCount) { AlertMessage.color = AlertColor; return("※艦娘保有数が上限に達しているため、新しい艦娘との邂逅はできません。"); } if (memberMaxInfo.MaxCount - 6 <= memberMaxInfo.NowCount) { AlertMessage.color = WarningColor; return("※艦娘保有数が上限に近いため、新しい艦娘と邂逅できない可能性があります。"); } if (memberMaxInfo2.MaxCount <= memberMaxInfo2.NowCount) { AlertMessage.color = AlertColor; return("※装備保有数が上限に達しているため、新しい艦娘との邂逅はできません。"); } if (memberMaxInfo2.MaxCount - 24 <= memberMaxInfo2.NowCount) { AlertMessage.color = WarningColor; return("※装備保有数が上限に近いため、新しい艦娘と邂逅できない可能性があります。"); } if (deck.GetShips().Any((ShipModel x) => x.FuelRate < 100.0 || x.AmmoRate < 100.0)) { AlertMessage.color = WarningColor; return("※十分な補給を受けていない艦娘がいます。(本来の戦闘力を発揮できません)"); } return(string.Empty); }
private void SetAllShipsLevel(int LV) { if (LV == 0) { return; } UserInfo = StrategyTopTaskManager.GetLogicManager().UserInfo; Dictionary <int, int> dictionary = Mst_DataManager.Instance.Get_MstLevel(shipTable: true); int num = 1; while (true) { int num2 = num; MemberMaxInfo memberMaxInfo = UserInfo.ShipCountData(); if (num2 < memberMaxInfo.NowCount + 1) { UserInfo.GetShip(num).AddExp(dictionary[LV] - UserInfo.GetShip(num).Exp); num++; continue; } break; } }