mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Feature enhancement: Drop All now allows to use the following settings:
0 = Drop All is off and drop chances are used 1 = Drop All is on and everything is dropped 2 = Mild Drop All which means that everything is dropped (like 1) but items that are usually not dropped (like 0) are severely damaged. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8675 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2327,7 +2327,7 @@ void RandomlyChooseWhichItemsAreDroppable( SOLDIERCREATE_STRUCT *pp, INT8 bSoldi
|
||||
|
||||
//Madd
|
||||
//if ( gGameSettings.fOptions[TOPTION_DROP_ALL] ) // EXTERNILIZED TO THE INI INSTEAD - SANDRO
|
||||
if ( UsingEnemiesDropAllItemsSystem() )
|
||||
if ( gGameExternalOptions.fEnemiesDropAllItems == 1 )
|
||||
{
|
||||
ENEMYAMMODROPRATE = 100;
|
||||
ENEMYGRENADEDROPRATE = 100;
|
||||
@@ -2446,7 +2446,7 @@ else
|
||||
//TODO: someday maybe pp->Inv[i].fFlags &= ~ITEM_REPAIRABLE;
|
||||
|
||||
//if ( gGameSettings.fOptions[TOPTION_DROP_ALL] ) // EXTERNILIZED TO THE INI INSTEAD - SANDRO
|
||||
if ( UsingEnemiesDropAllItemsSystem() )
|
||||
if ( gGameExternalOptions.fEnemiesDropAllItems == 1 )
|
||||
{
|
||||
// WANNE: "Drop all" should mean "Drop all"
|
||||
/*
|
||||
@@ -2488,7 +2488,7 @@ else
|
||||
}
|
||||
|
||||
//if ( gGameSettings.fOptions[TOPTION_DROP_ALL] ) // EXTERNILIZED TO THE INI INSTEAD - SANDRO
|
||||
if ( UsingEnemiesDropAllItemsSystem() )
|
||||
if ( gGameExternalOptions.fEnemiesDropAllItems == 1 )
|
||||
return;
|
||||
|
||||
// WANNE: Randomly choose which type of items should be dropped
|
||||
|
||||
Reference in New Issue
Block a user