-
Notifications
You must be signed in to change notification settings - Fork 43
/
TweakedDifficultyModel.cs
32 lines (27 loc) · 1.37 KB
/
TweakedDifficultyModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using TaleWorlds.CampaignSystem.SandBox.GameComponents;
namespace BannerlordTweaks
{
public class TweakedDifficultyModel : DefaultDifficultyModel
{
public override float GetDamageToFriendsMultiplier()
{
return Settings.Instance.DamageToFriendsTweakEnabled ? Settings.Instance.DamageToFriendsMultiplier : base.GetDamageToFriendsMultiplier();
}
public override float GetDamageToPlayerMultiplier()
{
return Settings.Instance.DamageToPlayerTweakEnabled ? Settings.Instance.DamageToPlayerMultiplier : base.GetDamageToPlayerMultiplier();
}
public override float GetPlayerTroopsReceivedDamageMultiplier()
{
return Settings.Instance.DamageToTroopsTweakEnabled ? Settings.Instance.DamageToTroopsMultiplier : base.GetPlayerTroopsReceivedDamageMultiplier();
}
public override float GetCombatAIDifficultyMultiplier()
{
return Settings.Instance.CombatAIDifficultyTweakEnabled ? Settings.Instance.CombatAIDifficultyMultiplier : base.GetCombatAIDifficultyMultiplier();
}
public override float GetPlayerMapMovementSpeedBonusMultiplier()
{
return Settings.Instance.PlayerMapMovementSpeedBonusTweakEnabled ? Settings.Instance.PlayerMapMovementSpeedBonusMultiplier : base.GetPlayerMapMovementSpeedBonusMultiplier();
}
}
}