Skip to content

Commit

Permalink
Merge pull request #470 from MrPurple6411/467-remove-custom-tech-type…
Browse files Browse the repository at this point in the history
…-be-unlocked-by-default

Remove custom tech type be unlocked by default
  • Loading branch information
MrPurple6411 committed Sep 26, 2023
2 parents e1910c9 + b1ac985 commit 53734df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Nautilus/Assets/PrefabInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using Nautilus.Handlers;
using Nautilus.Utility;
using UnityEngine;
Expand Down Expand Up @@ -27,7 +27,7 @@ public record struct PrefabInfo(string ClassID, string PrefabFileName, TechType
/// <seealso cref="LanguageHandler.SetLanguageLine"/>
/// <seealso cref="LanguageHandler.RegisterLocalizationFolder"/>
/// <seealso cref="LanguageHandler.RegisterLocalization"/>
public static PrefabInfo WithTechType(string classId, bool unlockAtStart = true, Assembly techTypeOwner = null)
public static PrefabInfo WithTechType(string classId, bool unlockAtStart = false, Assembly techTypeOwner = null)
{
techTypeOwner ??= Assembly.GetCallingAssembly();
techTypeOwner = techTypeOwner == Assembly.GetExecutingAssembly()
Expand All @@ -51,7 +51,7 @@ public static PrefabInfo WithTechType(string classId, bool unlockAtStart = true,
/// <param name="unlockAtStart">Whether this tech type should be unlocked on game start or not. Default to <see langword="true"/>.</param>
/// <param name="techTypeOwner">The assembly that owns the created tech type. The name of this assembly will be shown in the PDA.</param>
/// <returns>An instance of the constructed <see cref="PrefabInfo"/>.</returns>
public static PrefabInfo WithTechType(string classId, string displayName, string description, string language = "English", bool unlockAtStart = true, Assembly techTypeOwner = null)
public static PrefabInfo WithTechType(string classId, string displayName, string description, string language = "English", bool unlockAtStart = false, Assembly techTypeOwner = null)
{
techTypeOwner ??= Assembly.GetCallingAssembly();
techTypeOwner = techTypeOwner == Assembly.GetExecutingAssembly()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static partial class EnumExtensions
/// <param name="language">The language for this entry. Defaults to English.</param>
/// <param name="unlockAtStart">Whether this instance should be unlocked on game start or not.</param>
/// <returns>A reference to this instance after the operation has completed.</returns>
public static EnumBuilder<TechType> WithPdaInfo(this EnumBuilder<TechType> builder, string displayName, string tooltip, string language = "English", bool unlockAtStart = true)
public static EnumBuilder<TechType> WithPdaInfo(this EnumBuilder<TechType> builder, string displayName, string tooltip, string language = "English", bool unlockAtStart = false)
{
TechType techType = builder;
var name = techType.ToString();
Expand Down

0 comments on commit 53734df

Please sign in to comment.