Skip to content

Commit fa56ce4

Browse files
committed
Add A FullStarterDeck Creation Option accounting for the Title with path to IconTexture.
1 parent 29b4d19 commit fa56ce4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

InscryptionAPI/Ascension/StarterDeckManager.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ public static FullStarterDeck New(string pluginGuid, string title, string pathTo
172172
Texture2D texture = TextureHelper.GetImageAsTexture(pathToIconTexture);
173173
return New(pluginGuid, title, texture, cardNames, unlockLevel);
174174
}
175+
176+
public static FullStarterDeck New(string pluginGuid, string name, string title, string pathToIconTexture, string[] cardNames, int unlockLevel = 0)
177+
{
178+
Texture2D texture = TextureHelper.GetImageAsTexture(pathToIconTexture);
179+
return New(pluginGuid, name, title, texture, cardNames, unlockLevel);
180+
}
175181

176182
[HarmonyPatch(typeof(AscensionUnlockSchedule), "StarterDeckIsUnlockedForLevel")]
177183
[HarmonyPrefix]

0 commit comments

Comments
 (0)