mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-17 00:44:49 +01:00
28 lines
762 B
C#
28 lines
762 B
C#
namespace MoleMole.Config
|
|
{
|
|
[GeneratePartialHash(CombineGeneratedFile = true)]
|
|
public class ByAttackAniDamageRatio : ConfigAbilityPredicate, IHashable
|
|
{
|
|
public enum LogicType
|
|
{
|
|
MoreThan = 0,
|
|
LessThan = 1
|
|
}
|
|
|
|
public float AniDamageRatio;
|
|
|
|
public LogicType CompareType;
|
|
|
|
public void ObjectContentHashOnto(ref int lastHash)
|
|
{
|
|
HashUtils.ContentHashOnto(AniDamageRatio, ref lastHash);
|
|
HashUtils.ContentHashOnto((int)CompareType, ref lastHash);
|
|
}
|
|
|
|
public override bool Call(ActorAbilityPlugin abilityPlugin, ActorAbility instancedAbility, ActorModifier instancedModifier, BaseAbilityActor target, BaseEvent evt)
|
|
{
|
|
return abilityPlugin.ByAttackAniDamageRatioHandler(this, instancedAbility, instancedModifier, target, evt);
|
|
}
|
|
}
|
|
}
|