mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Show seperate message for "scratches"; localize
This commit is contained in:
parent
c6118901b4
commit
ba377dfd3a
@ -129,11 +129,21 @@ if (_show) then {
|
||||
_selectionBloodLoss set [_forEachIndex, _target getHitPointDamage _x];
|
||||
|
||||
if (_target getHitPointDamage _x > 0 && {_forEachIndex == _selectionN}) then {
|
||||
// @todo localize
|
||||
_allInjuryTexts pushBack [format ["%1 %2",
|
||||
["Lightly wounded", "Heavily wounded"] select (_target getHitPointDamage _x > 0.5),
|
||||
["head", "torso", "left arm", "right arm", "left leg", "right leg"] select _forEachIndex
|
||||
], [1,1,1,1]];
|
||||
_pointDamage = _target getHitPointDamage _x;
|
||||
_severity = switch (true) do {
|
||||
case (_pointDamage > 0.5): {localize "STR_ACE_Medical_HeavilyWounded"};
|
||||
case (_pointDamage > 0.1): {localize "STR_ACE_Medical_LightlyWounded"};
|
||||
default {localize "STR_ACE_Medical_VeryLightlyWounded"};
|
||||
};
|
||||
_part = localize ([
|
||||
"STR_ACE_Medical_Head",
|
||||
"STR_ACE_Medical_Torso",
|
||||
"STR_ACE_Medical_LeftArm",
|
||||
"STR_ACE_Medical_RightArm",
|
||||
"STR_ACE_Medical_LeftLeg",
|
||||
"STR_ACE_Medical_RightLeg"
|
||||
] select _forEachIndex);
|
||||
_allInjuryTexts pushBack [format ["%1 %2", _severity, toLower _part], [1,1,1,1]];
|
||||
};
|
||||
} forEach ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
|
||||
};
|
||||
|
@ -1284,5 +1284,29 @@
|
||||
<Polish>%1 założył stazę</Polish>
|
||||
<French>%1 a appliqué un garrot</French>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Head">
|
||||
<English>Head</English>
|
||||
<German>Kopf</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Torso">
|
||||
<English>Torso</English>
|
||||
<German>Torso</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_LeftArm">
|
||||
<English>Left Arm</English>
|
||||
<German>Linker Arm</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_RightArm">
|
||||
<English>Right Arm</English>
|
||||
<German>Rechter Arm</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_LeftLeg">
|
||||
<English>Left Leg</English>
|
||||
<German>Linkes Bein</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_RightLeg">
|
||||
<English>Right Leg</English>
|
||||
<German>Rechtes Bein</German>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user