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:
Flugente
2012-08-18 00:03:40 +00:00
parent 50b849997b
commit 8275a1231b
39 changed files with 1285 additions and 377 deletions
+7 -2
View File
@@ -2444,7 +2444,7 @@ STR16 sKeyDescriptionStrings[2] =
//The headers used to describe various weapon statistics.
CHAR16 gWeaponStatsDesc[][ 17 ] =
CHAR16 gWeaponStatsDesc[][ 19 ] =
{
// HEADROCK: Changed this for Extended Description project
L"Status:",
@@ -2469,6 +2469,7 @@ CHAR16 gWeaponStatsDesc[][ 17 ] =
L"AUTO/5:", //15
L"Remaining ammo:", //16
L"Default:", //17 //WarmSteel - So we can also display default attachments
L"Dirt:", // 18 //added by Flugente
};
@@ -6958,6 +6959,7 @@ STR16 szUDBGenAmmoStatsTooltipText[]=
L"|P|r|e|-|I|m|p|a|c|t |E|x|p|l|o|s|i|o|n",
L"|T|e|m|p|e|r|a|t|u|r|e |M|o|d|i|f|i|c|a|t|i|o|n",
L"|P|o|i|s|o|n |P|e|r|c|e|n|t|a|g|e",
L"|D|i|r|t |M|o|d|i|f|i|c|a|t|i|o|n",
};
STR16 szUDBGenAmmoStatsExplanationsTooltipText[]=
@@ -6967,6 +6969,7 @@ STR16 szUDBGenAmmoStatsExplanationsTooltipText[]=
L"\n \nA multiplier to the bullet's damage potential\nthat is applied immediately before hitting the\ntarget.\n \nValues above 1.0 indicate an increase in damage,\nvalues below 1.0 indicate a decrease.\n \nHigher is better.",
L"\n \nAdditional heat generated by this ammunition.\n \nLower is better.",
L"\n \nDetermines what percentage of a\nbullet's damage will be poisonous.",
L"\n \nAdditional dirt generated by this ammunition.\n \nLower is better.",
};
STR16 szUDBGenExplosiveStatsTooltipText[]=
@@ -7154,7 +7157,8 @@ STR16 szUDBAdvStatsTooltipText[]=
L"|C|o|o|l|d|o|w|n |M|o|d|i|f|i|e|r",
L"|J|a|m |T|h|r|e|s|h|o|l|d |M|o|d|i|f|i|e|r",
L"|D|a|m|a|g|e |T|h|r|e|s|h|o|l|d |M|o|d|i|f|i|e|r",
L"|P|o|i|s|o|n |P|e|r|c|e|n|t|a|g|e",
L"|P|o|i|s|o|n |P|e|r|c|e|n|t|a|g|e",
L"|D|i|r|t |M|o|d|i|f|i|e|r",
};
// Alternate tooltip text for weapon Advanced Stats. Just different wording, nothing spectacular.
@@ -7217,6 +7221,7 @@ STR16 szUDBAdvStatsExplanationsTooltipText[]=
L"\n \nA gun's jam threshold is\nincreased by this percentage.\n \nHigher is better.",
L"\n \nA gun's damage threshold is\nincreased by this percentage.\n \nHigher is better.",
L"\n \nThis is the percentage of damage dealt\nby this item that will be poisonous.\n\nUsefulness depends on wether enemy\nhas poison resistance or absorption.",
L"\n \nA single shot causes this much dirt.\nAmmunition types and attachments can\naffect this value.\n \nLower is better.",
};
STR16 szUDBAdvStatsExplanationsTooltipTextForWeapons[]=