|
|
@@ -327,6 +327,8 @@ public class MoveCharacter : Character
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public float easyToGetHit = 0.2f;
|
|
|
+
|
|
|
public override void BeHit(int damage, Vector3 force, bool changeHurt, float repelValue)
|
|
|
{
|
|
|
if (!isTran)
|
|
|
@@ -341,6 +343,10 @@ public class MoveCharacter : Character
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if (isFloat)
|
|
|
+ {
|
|
|
+ damage = (int)((1 + easyToGetHit) * damage);
|
|
|
+ }
|
|
|
hp -= damage;
|
|
|
uiHp.Show(hp, totalHp);
|
|
|
if (hp <= 0)
|