mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
New feature: advanced repair/dirt system
- items now have an internal repair value that can be lowered through damage taken. They can only be repaired up to that value by your mercs, onyl smiths can fully restore it to 100% - guns get dirty over time, especially when shooting. Thsi can cause them to jam. Use cleaning kits (item #1576) to clean them by pressing 'Alt' + '.' - more on this feature in http://www.bears-pit.com/board/ubbthreads.php/topics/308926/New_feature_advanced_repair_di.html#Post308926 - this requires GameDir revision 1496 or higher WARING! THIS BREAKS SAVEGAME COMPATIBIITY! git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5480 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+3
-6
@@ -22,7 +22,6 @@
|
||||
#include "Campaign Types.h"
|
||||
#include "Drugs And Alcohol.h"
|
||||
#include "environment.h"
|
||||
//#include "Game Clock.h"
|
||||
#include "WorldDat.h"
|
||||
#include "Facilities.h"
|
||||
#endif
|
||||
@@ -33,13 +32,11 @@ class SOLDIERTYPE;
|
||||
|
||||
extern MoraleEvent gbMoraleEvent[NUM_MORALE_EVENTS];
|
||||
|
||||
UINT8 gSectorWaterType[256][4];
|
||||
|
||||
//extern BOOLEAN HandleSoldierDeath( SOLDIERTYPE *pSoldier , BOOLEAN *pfMadeCorpse );
|
||||
//extern BOOLEAN TacticalRemoveSoldier( UINT16 usSoldierIndex );
|
||||
extern BOOLEAN GetSectorFlagStatus( INT16 sMapX, INT16 sMapY, UINT8 bMapZ, UINT32 uiFlagToSet );
|
||||
extern BOOLEAN IsVehicle(SOLDIERTYPE *pSoldier);
|
||||
|
||||
extern SECTOR_EXT_DATA SectorExternalData[256][4];
|
||||
|
||||
// these midifiers are applied separately for both food and water
|
||||
// apart from the ubStatDamageChance values, be careful not to set any modifiers below -50 or above 0 unless you know what you are doing!!!
|
||||
FoodMoraleMod FoodMoraleMods[NUM_FOOD_MORALE_TYPES] =
|
||||
@@ -724,7 +721,7 @@ UINT8 GetWaterQuality(INT16 asMapX, INT16 asMapY, INT8 asMapZ)
|
||||
UINT8 ubSectorId = SECTOR(asMapX, asMapY);
|
||||
if (asMapZ == 0 && ubSectorId >= 0 && ubSectorId < 256 )
|
||||
{
|
||||
waterquality = gSectorWaterType[ubSectorId][asMapZ];
|
||||
waterquality = SectorExternalData[ubSectorId][asMapZ].usWaterType;
|
||||
}
|
||||
|
||||
return waterquality;
|
||||
|
||||
Reference in New Issue
Block a user