Skip to content

Commit

Permalink
Support products of GlobalCompany (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0hnHawk committed Aug 16, 2019
1 parent e8acea9 commit 11ef415
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions include/savegame/Commodities.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ private static function analyzeItems() {
foreach ( self::$xml ['items'] as $item ) {
$location = cleanFileName ( $item ['filename'] );
switch ($item ['className']) {
case 'FS19_GlobalCompany.GC_ProductionFactoryPlaceable' :
if (isset ( $item->productionFactory->outputProducts )) {
$location = $item ['modName'];
foreach ( $item->productionFactory->outputProducts->outputProduct as $product ) {
$fillType = $product ['name'];
$fillLevel = intval ( $product ['fillLevel'] );
self::addCommodity ( $fillType, $fillLevel, $location );
}
}
break;
case 'Bale' :
if ($item ['farmId'] == $_SESSION ['farmId']) {
$location = getLocation ( $item ['position'] );
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
$webStatsVersion = '0.9.6';
$webStatsVersion = '0.9.7';
ini_set ( 'error_reporting', E_ALL );
ini_set ( 'display_errors', 1 );
ini_set ( 'log_errors', 1 );
Expand Down
2 changes: 2 additions & 0 deletions language/de/global.lng
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ SATURDAY=Samstag
SUNDAY=Sonntag
ON=An
OFF=Aus
ONMAP=Landschaft
OUTOFMAP=Außerhalb der Karte

//install.tpl
WEBSTATS_DESCRIPTON=Auf dieser Webseite für Dedicated Server und lokale Spielstände von Farming Simulator 19 können Spieler, Fahrzeuge, Lagerbestände und Produktionsanlagen angezeigt werden. Fehlende Rohstoffe sowie volle Produktlager werden kenntlich gemacht.
Expand Down

0 comments on commit 11ef415

Please sign in to comment.