Added damage type localization for health analyzer (#10249)
This commit is contained in:
@@ -56,7 +56,7 @@ namespace Content.Client.HealthAnalyzer.UI
|
|||||||
// Show the total damage and type breakdown for each damage group.
|
// Show the total damage and type breakdown for each damage group.
|
||||||
foreach (var (damageGroupId, damageAmount) in DamagePerGroup)
|
foreach (var (damageGroupId, damageAmount) in DamagePerGroup)
|
||||||
{
|
{
|
||||||
text.Append($"\n{Loc.GetString("health-analyzer-window-damage-group-text", ("damageGroup", damageGroupId), ("amount", damageAmount))}");
|
text.Append($"\n{Loc.GetString("health-analyzer-window-damage-group-text", ("damageGroup", Loc.GetString("health-analyzer-window-damage-group-" + damageGroupId)), ("amount", damageAmount))}");
|
||||||
// Show the damage for each type in that group.
|
// Show the damage for each type in that group.
|
||||||
var group = protos.Index<DamageGroupPrototype>(damageGroupId);
|
var group = protos.Index<DamageGroupPrototype>(damageGroupId);
|
||||||
foreach (var type in group.DamageTypes)
|
foreach (var type in group.DamageTypes)
|
||||||
@@ -67,7 +67,7 @@ namespace Content.Client.HealthAnalyzer.UI
|
|||||||
if (!shownTypes.Contains(type))
|
if (!shownTypes.Contains(type))
|
||||||
{
|
{
|
||||||
shownTypes.Add(type);
|
shownTypes.Add(type);
|
||||||
text.Append($"\n- {Loc.GetString("health-analyzer-window-damage-type-text", ("damageType", type), ("amount", typeAmount))}");
|
text.Append($"\n- {Loc.GetString("health-analyzer-window-damage-type-text", ("damageType", Loc.GetString("health-analyzer-window-damage-type-" + type)), ("amount", typeAmount))}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,3 +4,26 @@ health-analyzer-window-entity-damage-total-text = Total Damage: {$amount}
|
|||||||
health-analyzer-window-damage-group-text = {$damageGroup}: {$amount}
|
health-analyzer-window-damage-group-text = {$damageGroup}: {$amount}
|
||||||
health-analyzer-window-damage-type-text = {$damageType}: {$amount}
|
health-analyzer-window-damage-type-text = {$damageType}: {$amount}
|
||||||
health-analyzer-window-damage-type-duplicate-text = {$damageType}: {$amount} (duplicate)
|
health-analyzer-window-damage-type-duplicate-text = {$damageType}: {$amount} (duplicate)
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Brute = Brute
|
||||||
|
health-analyzer-window-damage-type-Blunt = Blunt
|
||||||
|
health-analyzer-window-damage-type-Slash = Slash
|
||||||
|
health-analyzer-window-damage-type-Piercing = Piercing
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Burn = Burn
|
||||||
|
health-analyzer-window-damage-type-Heat = Heat
|
||||||
|
health-analyzer-window-damage-type-Shock = Shock
|
||||||
|
health-analyzer-window-damage-type-Cold = Cold
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Airloss = Airloss
|
||||||
|
health-analyzer-window-damage-type-Asphyxiation = Asphyxiation
|
||||||
|
health-analyzer-window-damage-type-Bloodloss = Bloodloss
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Toxin = Toxin
|
||||||
|
health-analyzer-window-damage-type-Poison = Poison
|
||||||
|
health-analyzer-window-damage-type-Radiation = Radiation
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Genetic = Genetic
|
||||||
|
health-analyzer-window-damage-type-Cellular = Cellular
|
||||||
|
|
||||||
|
health-analyzer-window-damage-group-Caustic = Caustic
|
||||||
|
|||||||
Reference in New Issue
Block a user