We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
19 | public function build(AbstractSmrPlayer $player, Template $template): void { |
||
20 | $template->assign('PageTopic', 'Trader Relations'); |
||
21 | |||
22 | Menu::trader(); |
||
23 | |||
24 | $politicalRelations = []; |
||
25 | $personalRelations = []; |
||
26 | |||
27 | $raceRelations = Globals::getRaceRelations($player->getGameID(), $player->getRaceID()); |
||
28 | foreach (Race::getAllNames() as $raceID => $raceName) { |
||
29 | $politicalRelations[$raceName] = $raceRelations[$raceID]; |
||
30 | $personalRelations[$raceName] = $player->getPersonalRelation($raceID); |
||
31 | } |
||
32 | $template->assign('PoliticalRelations', $politicalRelations); |
||
33 | $template->assign('PersonalRelations', $personalRelations); |
||
34 | } |
||
37 |