Skip to content

Commit 29b4d19

Browse files
committed
Add A FullStarterDeck Creation Option accounting for the Title
1 parent 2287058 commit 29b4d19

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

InscryptionAPI/Ascension/StarterDeckManager.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,23 @@ public static FullStarterDeck New(string pluginGuid, string title, Texture2D ico
149149

150150
return fsd;
151151
}
152+
153+
public static FullStarterDeck New(string pluginGuid, string name, string title, Texture2D iconTexture, string[] cardNames, int unlockLevel = 0)
154+
{
155+
StarterDeckInfo info = ScriptableObject.CreateInstance<StarterDeckInfo>();
156+
info.title = title;
157+
info.iconSprite = TextureHelper.ConvertTexture(iconTexture, TextureHelper.SpriteType.StarterDeckIcon);
158+
info.name = pluginGuid + "_" + name;
159+
160+
FullStarterDeck fsd = new();
161+
fsd.Info = info;
162+
fsd.UnlockLevel = unlockLevel;
163+
fsd.CardNames = cardNames.ToList();
164+
165+
NewDecks.Add(fsd);
166+
167+
return fsd;
168+
}
152169

153170
public static FullStarterDeck New(string pluginGuid, string title, string pathToIconTexture, string[] cardNames, int unlockLevel = 0)
154171
{

0 commit comments

Comments
 (0)