Skip to content

Commit

Permalink
NoEditor and noPurchase traits display added.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendek committed Apr 7, 2019
1 parent 3e90dd9 commit 7008a65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Expand Up @@ -46,7 +46,7 @@ function openDataFile($sourcePath, $filePath, $url = '', array &$files = [])
error_reporting(-1);
ini_set('error_log', 'logs/oobgdw-error-' . strftime('%Y%m%d') . '.log');

$version = '2019-03-24';
$version = '2019-04-07';

// configuration
$dataPath = 'src/game_data/Data/';
Expand Down Expand Up @@ -133,6 +133,8 @@ function openDataFile($sourcePath, $filePath, $url = '', array &$files = [])
'hardToHit' => 'Difficult Target',
'slowRepair' => 'Limited Replacements',
'supplyResilient' => 'Supply Resilient',
'noEditor' => 'No Editor',
'noPurchase' => 'No Purchase',
];

$customTraits = [
Expand Down Expand Up @@ -404,6 +406,8 @@ function openDataFile($sourcePath, $filePath, $url = '', array &$files = [])
foreach ($traitsLocalisedData as $item) {
$traitsLocalised[$item['title']] = $item['desc'];
}
$traitsLocalised['No Editor'] = 'Not available in editor';
$traitsLocalised['No Purchase'] = 'Not available for purchase';

// process units
$dataFile = openDataFile($dataPath, 'units.csv', $modUrl, $modFiles);
Expand Down

0 comments on commit 7008a65

Please sign in to comment.