mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
-fixed new ammo types not coming out of enemy guns properly
-minor AI fixes -reduced minimum default status for bonus depreciation from 100 to 85 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@251 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -5863,7 +5863,7 @@ void DumpItemsList( void )
|
||||
const INT8 STANDARD_STATUS_CUTOFF = 85;
|
||||
|
||||
// Scale bonus with item status
|
||||
INT16 BonusReduce( INT16 bonus, INT8 status, INT8 statusCutoff = 100 )
|
||||
INT16 BonusReduce( INT16 bonus, INT8 status, INT8 statusCutoff = STANDARD_STATUS_CUTOFF )
|
||||
{
|
||||
if ( bonus > 0 && status < statusCutoff && statusCutoff > 0 && statusCutoff <= 100 )
|
||||
return ( ( status * 100 ) / statusCutoff * bonus ) / 100;
|
||||
|
||||
Reference in New Issue
Block a user