This plugin allows to create "hybrid weapons", which behave as different weapon types depending on the range of the attack.
For example, you can make a "Wind Sword" which acts as a Sword weapon during melee and acts as a Wind weapon during ranged attacks. It is also possible to make the melee attacks deal phyisical damage, while the ranged attacks deal magic damage, or make all attacks do either phyisical or magic damage.
To use this plugin, you need to add the custom parameter "hybrid" to the weapon. For example:
{hybrid: [ {type:"Sword", range: 1, physical: true}, {type:"Wind", range: 2, physical: false} ]}
This is a complex parameter, so let's analyze it part by part:
Note that if the unit attacks from a range that is not specified on the custom parameter, the weapon type and type of damage will be the default used by the weapon.
Also, in the example used above, if the weapon belongs to the Sword weapon type and deals phyisical damage by default, then the object that specifies the damage at melee was not necessary. That means that you don't need to specify the type of weapon and damage at ranges where the weapon uses its default values.