Skip to content

Commit

Permalink
bonuses to disarm and parry for higher tiers of saber offense and def…
Browse files Browse the repository at this point in the history
…ense
  • Loading branch information
TwelveEyes committed Jun 30, 2024
1 parent 16fbd38 commit d53b05b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/qcommon/q_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -1783,6 +1783,10 @@ class PlayerStateBase
disarmBonus += 1 + saber[1].disarmBonus;
}
}
if ( forcePowerLevel[FP_SABER_OFFENSE] > 1 )
{//bonus for saber offense above 1
disarmBonus += forcePowerLevel[FP_SABER_OFFENSE] - 1;
}
return disarmBonus;
};
int SaberParryBonus( void )
Expand All @@ -1796,6 +1800,10 @@ class PlayerStateBase
{//bonus for having 2 sabers
parryBonus += 1 + saber[1].parryBonus;
}
if ( forcePowerLevel[FP_SABER_DEFENSE] > 1 )
{//bonus for saber defense above 1
parryBonus += forcePowerLevel[FP_SABER_DEFENSE] - 1;
}
return parryBonus;
};
#endif // !JK2_MODE
Expand Down

0 comments on commit d53b05b

Please sign in to comment.