From 404e6f18eff218d470ed12a90395aace599d80e9 Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 26 Aug 2017 21:57:22 +0000 Subject: [PATCH] Fix: stat loss on torso hit never causes STR loss git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8461 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/MiniGame.h | 9 +++++++++ Tactical/Weapons.cpp | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Tactical/MiniGame.h b/Tactical/MiniGame.h index 3c42d721..f54ffc83 100644 --- a/Tactical/MiniGame.h +++ b/Tactical/MiniGame.h @@ -38,4 +38,13 @@ UINT32 MiniGame_Handle_Tetris(); void MiniGame_Init_Pong( ); UINT32 MiniGame_Handle_Pong( ); + +// for now, here +UINT32 KeyPadScreenInit( void ); +UINT32 KeyPadScreenHandle( void ); +UINT32 KeyPadScreenShutdown( void ); + +void KeyPad_Init( ); +UINT32 KeyPad_Handle( ); + #endif //__MINIGAME_H \ No newline at end of file diff --git a/Tactical/Weapons.cpp b/Tactical/Weapons.cpp index 8d9fbd98..d38715bf 100644 --- a/Tactical/Weapons.cpp +++ b/Tactical/Weapons.cpp @@ -8912,7 +8912,7 @@ INT32 BulletImpact( SOLDIERTYPE *pFirer, BULLET *pBullet, SOLDIERTYPE * pTarget, else { // 50:50 to lose strength or dexterity - if (PreRandom( 3 ) < 4 ) + if ( Chance(50) ) { if (bStatLoss >= pTarget->stats.bDexterity) {