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)); }
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()); }
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); }
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(); }
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()); }
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()); }