NPC/Reputation
* try to fix reputation spillover * fix extra colon on reputation gains
This commit is contained in:
parent
a9ed897ea6
commit
215ad39cc6
2 changed files with 3 additions and 3 deletions
|
|
@ -832,7 +832,7 @@ class NpcBaseResponse extends TemplateResponse implements ICache
|
|||
$spill[0][1] = $set[1][1] / 2;
|
||||
|
||||
$spillover[$factions->getField('cat')] = $spill;
|
||||
$set[6] = $factions->getField('cat'); // set spillover
|
||||
$set[5] = $factions->getField('cat'); // set spillover
|
||||
}
|
||||
|
||||
$result[] = $set;
|
||||
|
|
@ -872,7 +872,7 @@ class NpcBaseResponse extends TemplateResponse implements ICache
|
|||
|
||||
foreach ($reputation as $i => [, $data])
|
||||
{
|
||||
foreach ($data as [$factionId, , , , , , $spillover])
|
||||
foreach ($data as [$factionId, , , , , $spillover])
|
||||
{
|
||||
if (!$spillover)
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ if ($this->reputation):
|
|||
?>
|
||||
<h3><?=Lang::main('gains'); ?></h3>
|
||||
<?php
|
||||
echo Lang::npc('gainsDesc').Lang::main('colon');
|
||||
echo Lang::npc('gainsDesc');
|
||||
|
||||
foreach ($this->reputation as [$mode, $data]):
|
||||
if (count($this->reputation) > 1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue