手牌泛光
原版
如果你只想发黄光和红光,直接在你的卡牌类里重写以下属性即可:
1 2 3 4 5
| protected override bool ShouldGlowGoldInternal => Owner.Creature.GetPowerAmount<TestPower>() > 5;
protected override bool ShouldGlowRedInternal => !Owner.Creature.HasPower<TestPower>();
|
任意发光
ritsulib提供发任意颜色光的能力。可以在初始化函数Entry.Init中注册。
1 2 3 4 5 6 7 8 9 10 11
| public static void Init() { var ctx = RitsuLibFramework.CreateContentPack(ModId) .CardHandOutline<TestCard>(new ModCardHandOutlineRule( card => card.Owner.Creature.CurrentHp <= 10, Colors.Purple )) .Apply(); }
|