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
+11 -1
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"状态: ",
@@ -2469,6 +2469,7 @@ CHAR16 gWeaponStatsDesc[][ 17 ] =
L"连发/5AP: ", //15
L"剩余弹药:", //16
L"默认:", //17 //WarmSteel - So we can also display default attachments
L"Dirt:", // 18 //added by Flugente // TODO.Translate
};
@@ -6513,6 +6514,11 @@ STR16 ChineseSpecString4 = L"%s (%s) [%d%]\n%s %d\n%s %d\n%s %d (%d)\n%s (%d)
STR16 ChineseSpecString5 = L"%s [%d%]\n%s %d\n%s %d\n%s %1.1f %s";
STR16 ChineseSpecString6 = L"%s [%d%]\n%s %d% (%d/%d)\n%s %d%\n%s %1.1f %s";
STR16 ChineseSpecString7 = L"%s [%d%]\n%s %1.1f %s";
STR16 ChineseSpecString8 = L"%s (%s) [%d%(%d%)]\n%s %d\n%s %d\n%s %d (%d)\n%s (%d) %s\n%s %1.1f %s\n%s %.2f%%"; // added by Flugente
STR16 ChineseSpecString9 = L"%s [%d%(%d%)]\n%s %d\n%s %d\n%s %1.1f %s"; // added by Flugente
STR16 ChineseSpecString10 = L"%s [%d%(%d%)]\n%s %d% (%d/%d)\n%s %d%\n%s %1.1f %s"; // added by Flugente
STR16 ChineseSpecString11 = L"%s (%s) [%d%(%d%)]\n%s %d\n%s %d\n%s %d (%d)\n%s (%d) %s\n%s %1.1f %s"; // added by Flugente
STR16 ChineseSpecString12 = L"%s (%s) [%d%]\n%s %d\n%s %d\n%s %d (%d)\n%s (%d) %s\n%s %1.1f %s\n%s %.2f%%"; // added by Flugente
// Following strings added - SANDRO
STR16 pSkillTraitBeginIMPStrings[] =
@@ -6971,6 +6977,7 @@ STR16 szUDBGenAmmoStatsTooltipText[]=
L"|爆|炸|力||炸|子|儿|",
L"|过|热|修|正",
L"|P|o|i|s|o|n |P|e|r|c|e|n|t|a|g|e", // TODO.Translate
L"|D|i|r|t |M|o|d|i|f|i|c|a|t|i|o|n", // TODO.Translate
};
STR16 szUDBGenAmmoStatsExplanationsTooltipText[]=
@@ -6980,6 +6987,7 @@ STR16 szUDBGenAmmoStatsExplanationsTooltipText[]=
L"\n \n该值是子弹在击中目标前已经造成的潜在伤害的倍率。\n \n大于1的数值可以增加伤害,\n反之则减少伤害。\n \n该数值越高越好。",
L"\n \n子弹温度系数。\n \n该数值越低越好。",
L"\n \nDetermines what percentage of a\nbullet's damage will be poisonous.", // TODO.Translate
L"\n \nAdditional dirt generated by this ammunition.\n \nLower is better.", // TODO.Translate
};
STR16 szUDBGenExplosiveStatsTooltipText[]=
@@ -7167,6 +7175,7 @@ STR16 szUDBAdvStatsTooltipText[]=
L"|卡|壳|阈|值",
L"|损|坏|阈|值",
L"|P|o|i|s|o|n |P|e|r|c|e|n|t|a|g|e", // TODO.Translate
L"|D|i|r|t |M|o|d|i|f|i|e|r", // TODO.Translate
};
// Alternate tooltip text for weapon Advanced Stats. Just different wording, nothing spectacular.
@@ -7229,6 +7238,7 @@ STR16 szUDBAdvStatsExplanationsTooltipText[]=
L"\n \n武器的卡壳阈值增加了(百分比)。\n \n该数值越高越好。",
L"\n \n武器的损坏阈值增加了(百分比)。\n \n该数值越高越好。",
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.", // TODO.Translate
L"\n \nA single shot causes this much dirt.\nAmmunition types and attachments can\naffect this value.\n \nLower is better.", // TODO.Translate
};
STR16 szUDBAdvStatsExplanationsTooltipTextForWeapons[]=