Please bear with, there's quite a lot to this problem.
MAIN PROBLEM
I have a dual wielding setup in my game using the MalMZDualWield plugin. This is combining with an ammunition system I've got going on thanks to VisuStella'sSkillsStates core and a boat load of additional skill cost types (skills cost bullets).
This is all about guns and ammo. The idea is that you can equip one type of weapon in one hand and be able to fire that weapon's ammo type. You can equip a second type of gun in the your off-hand and use a second ammo type.(This is all working fine).
There are 5 handguns that can fire4 different types of basic Ammo and use Handgun Skills
There are 5 machineguns that can fire 4 different types of basic Ammo and use MachineGun Skills.
There are 5 handguns that can fire 6 different types of shotgun Ammo use Shotgun Skills.
+ others.
MAIN QUESTION
The problem arises at damage calculation.
Each gun has it's own attack stat.
Lets say I equip my best shotgun with +20 attack and my worst handgun with +2 Attack. The values combine to give me +22. But what I want is, if I use a shotgun skill I will get +20 damage and if I use a handgun skill I will get+2 damage. My rubbish handgun shouldn't be able to blow an opponents head off, just because I'm holding a shotgun in my other hand.
The primary point of dual wielding in my case is just to provide new available skills.
FUTURE HEADACHE
I'll leave it there for now, because I know there's other difficulties to come, particularly arising from equipping two guns of the same type, but I won't worry about that just yet.
MAIN PROBLEM
I have a dual wielding setup in my game using the MalMZDualWield plugin. This is combining with an ammunition system I've got going on thanks to VisuStella'sSkillsStates core and a boat load of additional skill cost types (skills cost bullets).
This is all about guns and ammo. The idea is that you can equip one type of weapon in one hand and be able to fire that weapon's ammo type. You can equip a second type of gun in the your off-hand and use a second ammo type.(This is all working fine).
There are 5 handguns that can fire4 different types of basic Ammo and use Handgun Skills
There are 5 machineguns that can fire 4 different types of basic Ammo and use MachineGun Skills.
There are 5 handguns that can fire 6 different types of shotgun Ammo use Shotgun Skills.
+ others.
MAIN QUESTION
The problem arises at damage calculation.
Each gun has it's own attack stat.
Lets say I equip my best shotgun with +20 attack and my worst handgun with +2 Attack. The values combine to give me +22. But what I want is, if I use a shotgun skill I will get +20 damage and if I use a handgun skill I will get+2 damage. My rubbish handgun shouldn't be able to blow an opponents head off, just because I'm holding a shotgun in my other hand.
The primary point of dual wielding in my case is just to provide new available skills.
FUTURE HEADACHE
I'll leave it there for now, because I know there's other difficulties to come, particularly arising from equipping two guns of the same type, but I won't worry about that just yet.