Example #1
0
        public static void AddUnit(CardDataBuilder r, string IDName, CharacterData character)
        {
            r.CardID  = IDName;
            r.NameKey = IDName + "_Name";
            r.OverrideDescriptionKey = IDName + "_Desc";
            r.LinkedClass            = MechClan.getClan();
            r.ClanID = Clan.IDName;

            r.CardPoolIDs = new List <string> {
                "Mech", UnitsAllBanner
            };
            r.CardType    = CardType.Monster;
            r.TargetsRoom = true;

            r.AssetPath = rootPath + ucardPath;

            if (!r.NameKey.HasTranslation())
            {
                API.Log(BepInEx.Logging.LogLevel.All, r.NameKey + ",Text,,,,," + r.CardID + ",,,,,");
            }
            if (!r.OverrideDescriptionKey.HasTranslation())
            {
                API.Log(BepInEx.Logging.LogLevel.All, r.OverrideDescriptionKey + ",Text,,,,,<desc>,,,,,");
            }

            //API.Log(BepInEx.Logging.LogLevel.All, string.Join("\t", new string[] { "Unit", r.NameKey.Localize(), r.Rarity.ToString(), r.Cost.ToString(), character.GetSize().ToString(), character.GetHealth().ToString(), character.GetAttackDamage().ToString(), character.GetLocalizedSubtype(), r.OverrideDescriptionKey.Localize() }));
        }
Example #2
0
        public static void AddSpell(CardDataBuilder r, string IDName)
        {
            r.CardID  = IDName;
            r.NameKey = IDName + "_Name";
            r.OverrideDescriptionKey = IDName + "_Desc";
            r.LinkedClass            = MechClan.getClan();

            r.ClanID      = Clan.IDName;
            r.CardPoolIDs = new List <string> {
                "Mech", MegaPool
            };

            r.AssetPath = rootPath + scardPath;

            if (!r.NameKey.HasTranslation())
            {
                API.Log(BepInEx.Logging.LogLevel.All, r.NameKey + ",Text,,,,," + r.CardID + ",,,,,");
            }
            if (!r.OverrideDescriptionKey.HasTranslation())
            {
                API.Log(BepInEx.Logging.LogLevel.All, r.OverrideDescriptionKey + ",Text,,,,,<desc>,,,,,");
            }

            //API.Log(BepInEx.Logging.LogLevel.All, string.Join("\t", new string[] { "Spell", r.NameKey.Localize(), r.Rarity.ToString(), r.Cost.ToString(), r.OverrideDescriptionKey.Localize() }));
        }
Example #3
0
        public static void Make()
        {
            // Basic Card Stats
            ChampionCardDataBuilder railyard = new ChampionCardDataBuilder
            {
                Cost                = 0,
                Champion            = BuildUnit(),
                ChampionIconPath    = "ag88/Clan Assets/Icon_ClassSelect_Mech.png",
                ChampionSelectedCue = "",
                StarterCardData     = CustomCardManager.GetCardDataByID(FlawedMech.IDName),
                UpgradeTree         = new CardUpgradeTreeDataBuilder
                {
                    UpgradeTrees = new List <List <CardUpgradeDataBuilder> >
                    {
                        new List <CardUpgradeDataBuilder>
                        {
                            MechVanguardGuzzlerBasic.Builder(),
                                    MechVanguardGuzzlerPremium.Builder(),
                                    MechVanguardGuzzlerPro.Builder(),
                        },
                        new List <CardUpgradeDataBuilder>
                        {
                            MechVanguardSupporterBasic.Builder(),
                                    MechVanguardSupporterPremium.Builder(),
                                    MechVanguardSupporterPro.Builder(),
                        },
                        new List <CardUpgradeDataBuilder>
                        {
                            MechVanguardSweeperBasic.Builder(),
                                    MechVanguardSweeperPremium.Builder(),
                                    MechVanguardSweeperPro.Builder(),
                        },
                    },
                },

                CardID  = IDName,
                NameKey = IDName + "_Name",
                OverrideDescriptionKey = IDName + "_Desc",
                LinkedClass            = MechClan.getClan(),
                ClanID = Clan.IDName,

                CardPoolIDs = new List <string> {
                    "AG88", UnitsAllBanner
                },
                CardType    = CardType.Monster,
                TargetsRoom = true,

                AssetPath = Utils.rootPath + Utils.ucardPath,
            };

            Utils.AddImg(railyard, imgName + ".png");

            // Do this to complete
            railyard.BuildAndRegister();
        }