Code: Select all
private static int CalculateAttackDamage(DaggerfallEntity attacker, DaggerfallEntity target, int enemyAnimStateRecord, int weaponAnimTime, DaggerfallUnityItem weapon)
{
// Mod hook for adjusting final hit chance mod. (is a no-op in DFU)
chanceToHitMod = AdjustWeaponHitChanceMod(attacker, target, chanceToHitMod, weaponAnimTime, weapon);
}
Code: Select all
private static int CalculateWeaponAttackDamage(DaggerfallEntity attacker, DaggerfallEntity target, int damageModifier, int weaponAnimTime, DaggerfallUnityItem weapon)
{
// Mod hook for adjusting final damage. (is a no-op in DFU)
damage = AdjustWeaponAttackDamage(attacker, target, damage, weaponAnimTime, weapon);
}
If I try to put these "AdjustWeaponHitChanceMod" and "AdjustWeaponAttackDamage" inside my overridden method, I get a compile error since those are not inside my script, and if I try to call them from FormulaHelper like this "FormulaHelper.AdjustWeaponHitChanceMod" I get a compile error as well since these methods are private.
Anybody know anyway that I can get around this problem? I would really prefer not to make some good mods incompatible with my own, if possible.