use new flag on pbm api

This commit is contained in:
Ben Harris 2023-09-24 12:56:30 -04:00
parent 7e0f5e62b8
commit cdb7c1351d
3 changed files with 71 additions and 54 deletions

View File

@ -1,18 +1,31 @@
Avengers: Infinity Quest (Pro) Aerosmith (Pro) (Stern, 2017)
Cactus Canyon (Remake LE) Attack From Mars (Remake) (Chicago Gaming, 2017)
Deadpool (Pro) Avengers: Infinity Quest (Pro) (Stern, 2020)
Elvira's House of Horrors (Premium) Batman 66 (Catwoman Signature Edition) (Stern, 2019)
Foo Fighters (LE) Beatles (Stern, 2018)
Foo Fighters (Pro) Cactus Canyon (Remake LE) (Chicago Gaming, 2021)
Ghostbusters (Pro) Deadpool (Pro) (Stern, 2018)
Godzilla (Pro) Elvira's House of Horrors (Premium) (Stern, 2019)
Iron Maiden: Legacy of the Beast (Pro) Family Guy (Stern, 2006)
James Bond 007 (Pro) Foo Fighters (Pro) (Stern, 2023)
Jurassic Park (Premium) Game of Thrones (Pro) (Stern, 2015)
Rush (Pro) Ghostbusters (Pro) (Stern, 2016)
Scooby-Doo (CE) Godzilla (Pro) (Stern, 2021)
Star Wars (Comic Art Pro) Guardians of the Galaxy (Pro) (Stern, 2017)
Stranger Things (Pro) Iron Maiden: Legacy of the Beast (Pro) (Stern, 2018)
Teenage Mutant Ninja Turtles (Pro) Iron Man (Stern, 2010)
The Mandalorian (Pro) James Bond 007 (Pro) (Stern, 2022)
The Munsters (Pro) Jurassic Park (Premium) (Stern, 2019)
Led Zeppelin (Pro) (Stern, 2020)
Lord of the Rings (Stern, 2003)
The Mandalorian (Pro) (Stern, 2021)
Monster Bash (Remake) (Chicago Gaming, 2018)
The Munsters (Pro) (Stern, 2019)
Spider-Man (Stern, 2007)
Star Trek (Vault) (Stern, 2018)
Star Wars (Comic Art Pro) (Stern, 2019)
Stranger Things (Pro) (Stern, 2019)
Teenage Mutant Ninja Turtles (Pro) (Stern, 2020)
Venom (Pro) (Stern, 2023)
The Walking Dead (Pro) (Stern, 2014)
X-Men Wolverine (LE) (Stern, 2012)

View File

@ -8,8 +8,8 @@ if (isset($_GET["location"])) {
} }
if (isset($_GET["pbmid"])) { if (isset($_GET["pbmid"])) {
$pbmid = $_GET["pbmid"]; $pbmid = $_GET["pbmid"];
$json = json_decode(file_get_contents("https://pinballmap.com/api/v1/locations/$pbmid/machine_details.json")); $json = json_decode(file_get_contents("https://pinballmap.com/api/v1/locations/$pbmid/machine_details.json?machines_only=1"));
foreach ($json->machines as $pin) { $games[] = $pin->name; } foreach ($json->machines as $pin) { $games[] = $pin; }
$game = $games[array_rand($games)]; $game = $games[array_rand($games)];
} }
@ -29,6 +29,9 @@ if (isset($_GET["pbmid"])) {
<?php if (isset($loc) || isset($pbmid)) { ?> <?php if (isset($loc) || isset($pbmid)) { ?>
<p><a href=".">&lt;- back to list</a></p> <p><a href=".">&lt;- back to list</a></p>
<p>reload the page to pick a table</p> <p>reload the page to pick a table</p>
<?php if (isset($pbmid)) { ?>
<p><a href="https://pinballmap.com/map/?by_location_id=<?=$pbmid?>">pinballmap</a></p>
<?php } ?>
<br> <br>
<?php foreach ($games as $g) { <?php foreach ($games as $g) {
if ($g === $game) { ?> if ($g === $game) { ?>

View File

@ -1,34 +1,35 @@
Beatles The Addams Family (Bally, 1992)
Big Guns Beatles (Stern, 2018)
Black Knight Big Guns (Williams, 1987)
Centaur Black Knight (Williams, 1980)
Cirqus Voltaire Centaur (Bally, 1981)
Comet The Champion Pub (Bally, 1998)
Cyclone Cirqus Voltaire (Bally, 1997)
Diner Comet (Williams, 1985)
Elvira's House of Horrors (LE) Diner (Williams, 1990)
Fire! Elvira's House of Horrors (LE) (Stern, 2019)
Godzilla (Premium) Fire! (Williams, 1987)
Hercules Foo Fighters (Premium) (Stern, 2023)
Hook Funhouse 2.0 (Rudy's Nightmare) (Pedretti Gaming, 2021)
Indianapolis 500 The Godfather (LE) (Jersey Jack, 2023)
Jurassic Park Godzilla (Premium) (Stern, 2021)
Led Zeppelin (Premium) Harley-Davidson (Sega, 1999)
Lost World Hercules (Atari, 1979)
Monster Bash Hook (Data East, 1992)
Rotation VIII Indiana Jones: The Pinball Adventure (Williams, 1993)
Shaq Attaq Led Zeppelin (Premium) (Stern, 2020)
Silverball Mania The Mandalorian (Premium) (Stern, 2021)
Sinbad Monster Bash (Williams, 1998)
Spy Hunter Rotation VIII (Midway, 1978)
Star Wars Shaq Attaq (Gottlieb, 1995)
Star Wars (Premium) Sinbad (Gottlieb, 1978)
Star Wars Episode 1 Spy Hunter (Bally, 1984)
Star Wars Trilogy Star Trek (Data East, 1991)
Taxi Star Wars (Data East, 1992)
Terminator 2: Judgment Day Star Wars (Premium) (Stern, 2017)
The Addams Family Star Wars Episode 1 (Williams, 1999)
The Godfather (LE) Star Wars Trilogy (Sega, 1997)
The Mandalorian (Premium) Taxi (Williams, 1988)
Toy Story 4 (LE) Terminator 2: Judgment Day (Williams, 1991)
World Cup Soccer Toy Story 4 (LE) (Jersey Jack, 2022)
World Cup Soccer (Bally, 1994)