Library Of Ruina

Library Of Ruina

Library of Runia Workshop
Custom Head WorkShop_TEST
Learn More
Making a Counter Dice based passive
Hi, just wondering How I would go about making a passive that could increase the min value of counter dice or anything do to with only counter dice. As im quite unsure what type of die I need to declare to gain such effects.
< >
Showing 1-2 of 2 comments
yarrrr 10 18 May, 2022 @ 5:39pm 
Pretty much all you have to do is make the passive check if the dice it is rolling is considered a counter die. You'll need the class BeforeRollDice and check for BehaviourType.Standby

Here's an example passive that increases min roll of counter dice by 1
public class PassiveAbility_counterMin : PassiveAbilityBase { public override void BeforeRollDice(BattleDiceBehavior behavior) { if (behavior.Type == BehaviourType.Standby) { behavior.ApplyDiceStatBonus(new DiceStatBonus { min = 1 }); } } }
Last edited by yarrrr; 18 May, 2022 @ 5:41pm
wow. Thank you so much for the quick reply
< >
Showing 1-2 of 2 comments
Per page: 1530 50