예제 #1
0
        public static CardData Make()
        {
            ChampionCardDataBuilder championCardDataBuilder = new ChampionCardDataBuilder
            {
                Cost                   = 0,
                Champion               = BuildUnit(),
                ChampionIconPath       = "influka/Clan/Icon_ClassSelect_Marisa.png",
                ChampionSelectedCue    = "",
                StarterCardData        = CustomCardManager.GetCardDataByID(AliceGift.ID),
                CardID                 = ID,
                NameKey                = ID + "_Name",
                OverrideDescriptionKey = ID + "_Desc",
                LinkedClass            = RetrospectiveUnknownVoyage.getClan(),
                ClanID                 = TouhouClan.ID,
                CardPoolIDs            = new List <string> {
                    TouhouClan.ID, UnitsAllBanner
                },
                CardType    = CardType.Monster,
                TargetsRoom = true,
                AssetPath   = AssetAdder.rootPath + AssetAdder.ucardPath,
                UpgradeTree = GetUpgradeTreeDataBuilder(),
            };

            AssetAdder.AddImg(championCardDataBuilder, ID);
            return(championCardDataBuilder.BuildAndRegister(1));
        }
예제 #2
0
        public static CardData Make()
        {
            CardDataBuilder cardDataBuilder = new CardDataBuilder
            {
                Cost   = 1,
                Rarity = CollectableRarity.Common
            };

            AssetAdder.AddUnit(cardDataBuilder, ID, BuildUnit());
            AssetAdder.AddImg(cardDataBuilder, ID);

            return(cardDataBuilder.BuildAndRegister());
        }
예제 #3
0
        public static CharacterDataBuilder BuildUnit()
        {
            // Monster card, so we build an attached unit
            CharacterDataBuilder characterDataBuilder = new CharacterDataBuilder
            {
                CharacterID  = ID,
                NameKey      = ID + "_Name",
                Size         = 2,
                Health       = 10,
                AttackDamage = 5,
            };

            AssetAdder.AddUnitImg(characterDataBuilder, ID);
            return(characterDataBuilder);
        }
예제 #4
0
        public static void Make()
        {
            var relic = new CollectableRelicDataBuilder
            {
                IconPath     = "influka/Relic/debug.png",
                RelicPoolIDs = new List <string> {
                    MegaRelicPool
                },
                EffectBuilders = new List <RelicEffectDataBuilder>
                {
                }
            };

            AssetAdder.AddRelic(relic, ID);

            var r = relic.BuildAndRegister();

            r.GetNameEnglish();
        }
예제 #5
0
        public static CharacterData BuildUnit()
        {
            CardPool cardPool = UnityEngine.ScriptableObject.CreateInstance <CardPool>();

            CharacterDataBuilder characterDataBuilder = new CharacterDataBuilder
            {
                characterID  = ID,
                NameKey      = ID + "_Name",
                Size         = 1,
                Health       = 10,
                AttackDamage = 3,


                TriggerBuilders = new List <CharacterTriggerDataBuilder>
                {
                    new CharacterTriggerDataBuilder
                    {
                        Trigger = CharacterTriggerData.Trigger.PostCombat,
                        AdditionalTextOnTrigger = "",
                        EffectBuilders          = new List <CardEffectDataBuilder>
                        {
                            new CardEffectDataBuilder
                            {
                                EffectStateType = typeof(CardEffectAddBattleCard),
                                ParamCardPool   = cardPool,
                                ParamInt        = 1
                            }
                        }
                    }
                }
            };

            AssetAdder.AddUnitImg(characterDataBuilder, ID);

            CardData forPool = CustomCardManager.GetCardDataByID(AliceGift.ID);

            var cardDataList = (Malee.ReorderableArray <CardData>)AccessTools.Field(typeof(CardPool), "cardDataList").GetValue(cardPool);

            cardDataList.Add(forPool);

            return(characterDataBuilder.BuildAndRegister());
        }
예제 #6
0
        public static CardData Make()
        {
            CardDataBuilder cardDataBuilder = new CardDataBuilder
            {
                Cost        = 0,
                Rarity      = CollectableRarity.Starter,
                TargetsRoom = true,

                EffectBuilders = new List <CardEffectDataBuilder>
                {
                    new CardEffectDataBuilder
                    {
                        EffectStateName = "CardEffectDamage",
                        ParamInt        = 5,
                        TargetMode      = TargetMode.DropTargetCharacter,
                        TargetTeamType  = Team.Type.Heroes | Team.Type.Monsters,
                    },

                    new CardEffectDataBuilder
                    {
                        EffectStateName = "CardEffectDamage",
                        ParamInt        = 5,
                        TargetMode      = TargetMode.DropTargetCharacter,
                        TargetTeamType  = Team.Type.Heroes | Team.Type.Monsters,
                    }
                },

                TraitBuilders = new List <CardTraitDataBuilder>
                {
                    new CardTraitDataBuilder
                    {
                        TraitStateName = "CardTraitExhaustState"
                    },
                }
            };

            AssetAdder.AddSpell(cardDataBuilder, ID);
            AssetAdder.AddImg(cardDataBuilder, ID);

            return(cardDataBuilder.BuildAndRegister());
        }