Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
为老虎的“表莲华”技能添加伤害计算
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Sep 24, 2013
1 parent 874d205 commit 3e7f101
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/skills/skills_tiger.c
Expand Up @@ -15,8 +15,13 @@
static int AttackDamage_SpinDrill( GamePlayer *attacker, GamePlayer *victim, int victim_state )
{
double damage;
damage = 20 + attacker->property.punch/5.0;
return (int)1000;
damage = victim->property.cur_hp * 0.5;
if( damage > 800 ) {
damage = 800;
} else if( damage < 100 ) {
damage = 100;
}
return DamageReduce( victim, victim_state, (int)damage );
}

static LCUI_BOOL CanUseSpinDrill( GamePlayer *player )
Expand Down Expand Up @@ -62,6 +67,7 @@ static void StartBounce( LCUI_Widget *widget )
GamePlayer_UnlockAction( player );
GamePlayer_ChangeState( player, STATE_FALL );
GamePlayer_LockAction( player );
Game_RecordAttack( player, ATK_SPIN_DRILL, player->other, STATE_HALF_LYING );
player->other = NULL;
GameObject_AtLanding(
player->object, ZSPEED_BOUNCE,
Expand Down

0 comments on commit 3e7f101

Please sign in to comment.