fixed erronous formating of armor & block on items

This commit is contained in:
Sarjuuk
2013-06-01 17:12:58 +02:00
parent aef069e919
commit 86a85f4925
6 changed files with 14 additions and 14 deletions

View File

@@ -349,13 +349,13 @@ class ItemList extends BaseType
// Armor
if ($this->curTpl['class'] == ITEM_CLASS_ARMOR && $this->curTpl['ArmorDamageModifier'] > 0)
$x .= '<span class="q2"><!--addamr'.$this->curTpl['ArmorDamageModifier'].'--><span>'.($this->curTpl['armor'] + $this->curTpl['ArmorDamageModifier']).' '.Lang::$item['armor'].'</span></span><br />';
$x .= '<span class="q2"><!--addamr'.$this->curTpl['ArmorDamageModifier'].'--><span>'.sprintf(Lang::$item['armor'], $this->curTpl['armor'] + $this->curTpl['ArmorDamageModifier']).'</span></span><br />';
else if ($this->curTpl['armor'])
$x .= '<span><!--amr-->'.$this->curTpl['armor'].' '.Lang::$item['armor'].'</span><br />';
$x .= '<span><!--amr-->'.sprintf(Lang::$item['armor'], $this->curTpl['armor']).'</span><br />';
// Block
if ($this->curTpl['block'])
$x .= '<span>'.$this->curTpl['block'].' '.Lang::$item['block'].'</span><br />';
$x .= '<span>'.sprintf(Lang::$item['block'], $this->curTpl['block']).'</span><br />';
// Item is a gem (don't mix with sockets)
if ($this->curTpl['GemProperties'])

View File

@@ -401,8 +401,8 @@ $lang = array(
)
),
'item' => array(
'armor' => "Rüstung",
'block' => "Blocken",
'armor' => "%s Rüstung",
'block' => "%s Blocken",
'charges' => "Aufladungen",
'expend' => "Verbrauchen",
'locked' => "Verschlossen",

View File

@@ -396,8 +396,8 @@ $lang = array(
)
),
'item' => array(
'armor' => "Armor",
'block' => "Block",
'armor' => "%s Armor",
'block' => "%s Block",
'charges' => "Charges",
'expend' => "expendable",
'locked' => "Locked",

View File

@@ -354,8 +354,8 @@ $lang = array(
)
),
'item' => array(
'armor' => "armadura",
'block' => "bloqueo",
'armor' => "%s armadura",
'block' => "%s bloqueo",
'charges' => "cargas",
'expend' => "[expendable]", // drop this shit
'locked' => "Cerrado",

View File

@@ -353,8 +353,8 @@ $lang = array(
)
),
'item' => array(
'armor' => "Armure",
'block' => "Bloquer",
'armor' => "Armure : %s",
'block' => "Bloquer : %s",
'charges' => "Charges",
'expend' => "expendable",
'locked' => "Verrouillé",
@@ -474,7 +474,7 @@ $lang = array(
"Stat Inutilisée #%d (%d)",
)
),
'colon' => ' : '
'colon' => ' : '
);
?>

View File

@@ -353,8 +353,8 @@ $lang = array(
)
),
'item' => array(
'armor' => "Броня",
'block' => "Блок",
'armor' => "Броня: %s",
'block' => "Блок: %s",
'charges' => "зарядов",
'expend' => "expendable",
'locked' => "Заперт",