Skip to content

Commit

Permalink
Missing case for Ships/Script auto spec version
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Aug 12, 2024
1 parent cab3c32 commit 7d6d90e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Netkan/Transformers/SpecVersionTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ private static ModuleVersion MinimumSpecVersion(JObject json)
: HasLicense(json, "MPL-2.0") ? v1p30

: (json["install"] as JArray)?.OfType<JObject>().Any(stanza =>
(string)stanza["install_to"] == "Ships" && (
((string)stanza["install_to"]).StartsWith("Ships/Script")
|| ((string)stanza["install_to"] == "Ships" && (
// find: .../Script, install_to: Ships
((string)stanza["find"])?.Split(new char[] {'/'})?.LastOrDefault() == "Script"
// file: .../Script, install_to: Ships
|| ((string)stanza["file"])?.Split(new char[] {'/'})?.LastOrDefault() == "Script"
// install_to: Ships, as: Script
|| (((string)stanza["as"])?.EndsWith("Script") ?? false))) ?? false ? v1p29
|| (((string)stanza["as"])?.EndsWith("Script") ?? false)))) ?? false ? v1p29

: (string)json["kind"] == "dlc" ? v1p28

Expand Down

0 comments on commit 7d6d90e

Please sign in to comment.