Skip to content

Commit

Permalink
修复舰娘改造判断 Bug
Browse files Browse the repository at this point in the history
忘了加否定……
  • Loading branch information
Yoctillion committed Mar 2, 2016
1 parent e4ac4ba commit a2178c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RemodelHelper/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace RemodelHelper
[Export(typeof(IPlugin))]
[ExportMetadata("Title", "改修助手")]
[ExportMetadata("Description", "改修工厂辅助插件")]
[ExportMetadata("Version", "1.1.1")]
[ExportMetadata("Version", "1.1.2")]
[ExportMetadata("Author", "Yoctillion")]
[ExportMetadata("Guid", "71C1EE7A-A153-437F-B75F-E3E22ED833F1")]
public class Plugin : ITool, IPlugin
Expand Down
2 changes: 1 addition & 1 deletion RemodelHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyVersion("1.1.2")]
7 changes: 5 additions & 2 deletions RemodelHelper/ViewModels/DetailViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,12 @@ protected override bool FilterAssistant(BaseSlotItemInfo baseSlotItem, UpgradeSl
var set = new HashSet<int>();
while (client.Homeport.Organization.Ships.Values.All(ship => ship.Info.Id != shipId))
{
// 改造链循环(如霞改二/乙)
if (!set.Add(shipId)) return false;

int.TryParse(client.Master.Ships[shipId].RawData.api_aftershipid, out shipId);
// 没有后续改造舰娘 or 循环(如霞改二/乙)
if (shipId == 0 || set.Add(shipId)) return false;
// 没有后续改造舰娘
if (shipId == 0) return false;
}
}
}
Expand Down

0 comments on commit a2178c0

Please sign in to comment.