Combat Mechanism

## Health

Spaceventure's ability to withstand damages. When you first enter a PVE combat or PVP battle, each Spaceventure will have its own health value. When the Spaceventure receives damage, the health value will be reduced. When the health value is reduced to 0, the character will lose the battle. In a battle, the hero could face more than 2 monsters. After the end of a battle, the Spaceventure will regain all health.
$Health = 5*Vitality*(1+0.2*(Level-1)) + Additional Health from the equipment$

## Attack

The damage a Spaceventure can make to the enemies. The attack of the physical damage characters is a physical attack, and the attack of the magical damage character is a magical attack.
$PhysicalAttack=Strength∗(1+0.2∗(Level−1))+AdditionalAttackfromtheEquipment$
$MagicalAttack=Intelligence∗(1+0.2∗(Level−1))+AdditionalAttackfromtheEquipment$

## Defense

The ability to defend against physical attack.
$Defense=Courage∗(1+0.2∗(Level−1))+AdditionalDefensefromtheEquipment$
When Spaceventure is attacked by physical damage, the real cost of its
$Health=Attackofenemies∗(0.5−1.5randomnumber)∗100/(Defense+100)$
Eg. A Spaceventure has 100 in Defense. When he is attacked by an enemy with 70 Attacks, the real damage = 70*100/(100+100)=35, which means the Spaceventure will lose 35 in health value after this attack.

## Magic Resistance

The ability to resist magical attacks.
$MagicResistance=Stamina∗(1+0.2∗(Level−1))+AdditionalMagicResistancefromtheEquipment$
When Spaceventure is attacked by magical damage, the real cost of it is
$Health=Attackofenemies∗(0.5 1.5randomnumber)∗100/(MagicResistance+100)$
Eg. A Spaceventure has 100 in Magic Resistance. When he is attacked by an enemy with 70 Attacks, the real damage = 70*100/(100+100)=35, which means the Spaceventure will lose 35 in health value after this attack.

## Accuracy

The probability of hitting the target.
$AccuracyRate=Dexterity/(Dexterity+Enemy’sDexterity/2)$
Eg. A Spaceventure has 90 in Dexterity and hits another Spaceventure with 60 in Dexterity, the Accuracy Rate = 90/(90+60/2)=75%, which means there’s a probability of 75% that the Spaceventure can hit the enemy.