mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: The Brass Knuckles tag didn't count as bare hand attacks anymore since revision 6465. I changed that back because Martial Arts trait includes brass knuckle items. Single attack AP display of such items in EDB was fixed as well.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8207 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6474,7 +6474,7 @@ void DrawWeaponValues( OBJECTTYPE * gpItemDescObject )
|
||||
{
|
||||
static CHAR16 pStr[ 100 ];
|
||||
INT16 usX, usY;
|
||||
INT16 ubAttackAPs;
|
||||
INT16 ubAttackAPs, ubBasicAttackAPs;
|
||||
UINT8 ubNumLine;
|
||||
|
||||
OBJECTTYPE *gpComparedItemDescObject = NULL;
|
||||
@@ -6483,8 +6483,17 @@ void DrawWeaponValues( OBJECTTYPE * gpItemDescObject )
|
||||
return;
|
||||
|
||||
// ShotsPer4Turns -> ubAttackAPs, used later for all shot AP values
|
||||
ubAttackAPs = BaseAPsToShootOrStab( APBPConstants[DEFAULT_APS], APBPConstants[DEFAULT_AIMSKILL], gpItemDescObject, gpItemDescSoldier );
|
||||
INT16 ubBasicAttackAPs = BaseAPsToShootOrStabNoModifier( APBPConstants[DEFAULT_APS], APBPConstants[DEFAULT_AIMSKILL], gpItemDescObject );
|
||||
// silversurfer: Knuckle Dusters count as bare hand attacks and use the AP_PUNCH constant.
|
||||
if ( Item[gpItemDescObject->usItem].brassknuckles )
|
||||
{
|
||||
ubAttackAPs = APBPConstants[AP_PUNCH];
|
||||
ubBasicAttackAPs = APBPConstants[AP_PUNCH];
|
||||
}
|
||||
else
|
||||
{
|
||||
ubAttackAPs = BaseAPsToShootOrStab( APBPConstants[DEFAULT_APS], APBPConstants[DEFAULT_AIMSKILL], gpItemDescObject, gpItemDescSoldier );
|
||||
ubBasicAttackAPs = BaseAPsToShootOrStabNoModifier( APBPConstants[DEFAULT_APS], APBPConstants[DEFAULT_AIMSKILL], gpItemDescObject );
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// The following attributes are only drawn when the UDB is set to show the General Page.
|
||||
|
||||
Reference in New Issue
Block a user