ATTENTION! This needs at least GameDir 1777!

Fix and Enhancement for Repair Ease display in UDB

- Repair Ease is now displayed for all items and not only for weapons because other items use the <bRepairEase> tag too
- fixed tooltip display for explosives, half the values didn't show tooltips

There are new icons for repair ease display (ID 34 and 35 in ItemInfoWeaponIcons.sti). The old icon was changed to green color (ID 10).

The colors are used to show if the item is repairable and by whom:

- green for items that can be repaired by anyone
- yellow for items that need a technician or NPC to repair them beyond repair threshold
- red for items that have <Repairable> tag set to 0 in items.xml


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6417 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2013-09-18 18:14:30 +00:00
parent 8c643ef6fa
commit 6d431cd2e8
11 changed files with 480 additions and 19 deletions
+15 -2
View File
@@ -7008,7 +7008,7 @@ STR16 szUDBGenWeaponsStatsExplanationsTooltipText[]=
L"\n \nWhen this property is in effect, the weapon\nproduces no visible flash when firing.\n \nEnemies will not be able to spot you\njust by your muzzle flash (but they\nmight still HEAR you).",
L"\n \nWhen firing this weapon, Loudness is the\ndistance (in tiles) that the sound of\ngunfire will travel.\n \nEnemies within this distance will probably\nhear the shot.\n \nLower is better.",
L"\n \nDetermines how quickly this weapon will degrade\nwith use.\n \nHigher is better.",
L"\n \nDetermines how difficult it is to repair this weapon.\n \nHigher is better.",
L"\n \nDetermines how difficult it is to repair this weapon\nand who can fully repair it.\n \ngreen = Anybody can repair it.\n \nyellow = Only Technicians and special NPCs can\nrepair it beyond repair threshold.\n \nred = This item can't be repaired.\n \nHigher is better.",
L"\n \nThe minimum range at which a scope can provide it's aimBonus.",
L"\n \nTo hit modifier granted by laser sights.",
L"\n \nThe number of APs required to bring this\nweapon up to firing stance.\n \nOnce the weapon is raised, you may fire repeatedly\nwithout paying this cost again.\n \nA weapon is automatically 'Unreadied' if its\nwielder performs any action other than\nfiring or turning.\n \nLower is better.",
@@ -7027,6 +7027,7 @@ STR16 szUDBGenArmorStatsTooltipText[]=
L"|P|r|o|t|e|c|t|i|o|n |V|a|l|u|e",
L"|C|o|v|e|r|a|g|e",
L"|D|e|g|r|a|d|e |R|a|t|e",
L"|R|e|p|a|i|r |E|a|s|e",
};
STR16 szUDBGenArmorStatsExplanationsTooltipText[]=
@@ -7034,6 +7035,7 @@ STR16 szUDBGenArmorStatsExplanationsTooltipText[]=
L"\n \nThis primary armor property defines how much\ndamage the armor will absorb from any attack.\n \nRemember that armor-piercing attacks and\nvarious randomal factors may alter the\nfinal damage reduction.\n \nHigher is better.",
L"\n \nDetermines how much of the protected\nbodypart is covered by the armor.\n \nIf coverage is below 100%, attacks have\na certain chance of bypassing the armor\ncompletely, causing maximum damage\nto the protected bodypart.\n \nHigher is better.",
L"\n \nIndicates how quickly this armor's condition\ndrops when it is struck, proportional to\nthe damage caused by the attack.\n \nLower is better.",
L"\n \nDetermines how difficult it is to repair this armor\nand who can fully repair it.\n \ngreen = Anybody can repair it.\n \nyellow = Only Technicians and special NPCs can\nrepair it beyond repair threshold.\n \nred = This item can't be repaired.\n \nHigher is better.",
};
STR16 szUDBGenAmmoStatsTooltipText[]=
@@ -7082,6 +7084,7 @@ STR16 szUDBGenExplosiveStatsTooltipText[]=
// HEADROCK HAM 5: End Fragmentations
L"|L|o|u|d|n|e|s|s",
L"|V|o|l|a|t|i|l|i|t|y",
L"|R|e|p|a|i|r |E|a|s|e",
};
STR16 szUDBGenExplosiveStatsExplanationsTooltipText[]=
@@ -7110,7 +7113,17 @@ STR16 szUDBGenExplosiveStatsExplanationsTooltipText[]=
// HEADROCK HAM 5: End Fragmentations
L"\n \nThis is the distance (in Tiles) within which\nsoldiers and mercs will hear the explosion when\nit goes off.\n \nEnemies hearing the explosion will be alerted to your\npresence.\n \nLower is better.",
L"\n \nThis value represents a chance (out of 100) for this\nexplosive to spontaneously explode whenever it is damaged\n(for instance, when other explosions go off nearby).\n \nCarrying highly-volatile explosives into combat\nis therefore extremely risky and should be avoided.\n \nScale: 0-100.\nLower is better.",
L"\n \nDetermines how difficult it is to repair these explosives.\n \ngreen = Anybody can repair them.\n \nred = This item can't be repaired.\n \nHigher is better.",
};
STR16 szUDBGenCommonStatsTooltipText[]=
{
L"|R|e|p|a|i|r |E|a|s|e",
};
STR16 szUDBGenCommonStatsExplanationsTooltipText[]=
{
L"\n \nDetermines how difficult it is to repair this item.\n \ngreen = Anybody can repair it.\n \nred = This item can't be repaired.\n \nHigher is better.",
};
STR16 szUDBGenSecondaryStatsTooltipText[]=