public static CardDataBuilder CreateCard() { CardDataBuilder cardDataBuilder = new CardDataBuilder { CardID = "NyoBlast", Name = "Nyo-Blast", Cost = 6, OverrideDescriptionKey = "CardData_overrideDescriptionKey-ecb95717c140b89f-64f8b55236b461741b1feea18f971216-v2", TargetsRoom = true, Targetless = false, Clan = MTClan.Hellhorned }; cardDataBuilder.CreateAndSetCardArtPrefabVariantRef( "Assets/GameData/Cards/Portrait_Prefabs/CardArt_Spell_Awoken_Smite.prefab", "c1ffdd3f20795fb46a210716ab0775fd" ); cardDataBuilder.AddToCardPool(MTCardPool.StandardPool); var damageEffectBuilder = new CardEffectDataBuilder { EffectStateName = "CardEffectDamage", ParamInt = 500, TargetMode = TargetMode.DropTargetCharacter }; cardDataBuilder.Effects.Add(damageEffectBuilder.Build()); cardDataBuilder.Traits.Add(new CardTraitData { traitStateName = "CardTraitIgnoreArmor" }); return(cardDataBuilder); }
public static void RegisterCard() { CardDataBuilder cardDataBuilder = new CardDataBuilder { CardID = "TestMod_NotHornBreak", Name = "Not Horn Break", Description = "Deal [effect0.power] damage", Cost = 2, TargetsRoom = true, Targetless = false, Clan = MTClan.Awoken, CardPoolIDs = new List <int> { CardPoolIDs.GetCardPoolID(MTCardPool.StandardPool) }, EffectBuilders = new List <CardEffectDataBuilder> { new CardEffectDataBuilder { EffectStateName = "CardEffectDamage", ParamInt = 12, TargetMode = TargetMode.DropTargetCharacter } }, TraitBuilders = new List <CardTraitDataBuilder> { new CardTraitDataBuilder { TraitStateName = "CardTraitIgnoreArmor" } } }; cardDataBuilder.CreateAndSetCardArtPrefabVariantRef( "Assets/GameData/CardArt/Portrait_Prefabs/CardArt_Spell_FlashFreeze.prefab", "52471f4f40ea12d4a9a80a91f211fd07" ); cardDataBuilder.BuildAndRegister(); }