Wigfrid does not gain as much inspiration when attacking on a beefalo, this is due to how the "player_damage" variable in the singinginspiration:OnAttack function is calculated
local player_damage = (data.weapon ~= nil and data.weapon.components.weapon:GetDamage(self.inst, target)) or self.inst.components.combat.defaultdamage
The variable fails to take into account if the player is on a beefalo or mount of some kind. A possible fix could be this
local mount = self.inst.components.rider ~= nil and self.inst.components.rider:GetMount() local player_damage = (data.weapon ~= nil and data.weapon.components.weapon:GetDamage(self.inst, target)) or (mount ~= nil and mount.components.combat.defaultdamage) or self.inst.components.combat.defaultdamage
This would make sure to take into account the damage of the mount, and not the players.
If this is intended, then I hope it might be changed, because it makes gathering inspiration as Wigfrid when riding a beefalo needlessly difficult.
Steps to Reproduce
1. Ride a beefalo
2. Attack stuff
3. Notice you don't get a lot of inspiration
- 1
- 1
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now