mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
repair and dirt system change:
Dirt is now part of gun status. The original dirt system has been removed. For details see: http://thepit.ja-galaxy-forum.com/index.php?t=msg&th=20198&goto=347370&#msg_347370 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8325 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1277,10 +1277,6 @@ BOOLEAN ItemIsLegal( UINT16 usItemIndex, BOOLEAN fIgnoreCoolness )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// silversurfer: we don't need cleaning kits if the dirt system is off
|
||||
if ( !gGameExternalOptions.fDirtSystem && HasItemFlag(usItemIndex, CLEANING_KIT) )
|
||||
return FALSE;
|
||||
|
||||
//if the user has selected the reduced gun list
|
||||
if( !gGameOptions.fGunNut )
|
||||
{
|
||||
@@ -7962,7 +7958,6 @@ BOOLEAN CreateGun( UINT16 usItem, INT16 bStatus, OBJECTTYPE * pObj )
|
||||
pStackedObject->data.bTemperature = 0.0f;
|
||||
|
||||
pStackedObject->data.sRepairThreshold = (200 + bStatus)/3; // arbitrary threshold
|
||||
pStackedObject->data.bDirtLevel = 0.0f;
|
||||
pStackedObject->data.sObjectFlag = 0;
|
||||
|
||||
if (Weapon[ usItem ].ubWeaponClass == MONSTERCLASS)
|
||||
@@ -8117,7 +8112,6 @@ BOOLEAN CreateItem( UINT16 usItem, INT16 bStatus, OBJECTTYPE * pObj )
|
||||
else
|
||||
(*pObj)[0]->data.sRepairThreshold = 100;
|
||||
|
||||
(*pObj)[0]->data.bDirtLevel = 0.0f;
|
||||
}
|
||||
if (fRet)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user