Critical hit system

The critical hit system in Driftmoon allows each attack type to have several types of critical hits.

The player can have any number of attack skills, and they can be tied to the weapon type using tags. The default Driftmoon defines that the player has the skill meleeAttackWithCriticals at the start, and it is the default melee attack type when no special skills are selected.

The skill meleeAttackWithCriticals is defined in skills.ini, and it holds the following specification for critical hits:


 * criticals=0.2|commonCriticalMelee,0.05|criticalMelee

That means that using the meleeAttackWithCriticals skill has a 20% change of firing an another skill called commonCriticalMelee, and a 5% change of firing a skill called criticalMelee. The player has to own the specified critical skill the for the hit to succeed.