diff --git a/gamedir/Data-1.13/Interface/background_pong_game.png b/gamedir/Data-1.13/Interface/background_pong_game.png
new file mode 100644
index 000000000..ae40efabb
Binary files /dev/null and b/gamedir/Data-1.13/Interface/background_pong_game.png differ
diff --git a/gamedir/Data-1.13/Scripts/Overhead.lua b/gamedir/Data-1.13/Scripts/Overhead.lua
index 32d062f45..73ea3c466 100644
--- a/gamedir/Data-1.13/Scripts/Overhead.lua
+++ b/gamedir/Data-1.13/Scripts/Overhead.lua
@@ -411,6 +411,7 @@ ScreenTypes =
MiniGames =
{
TETRIS = 0,
+ PONG = 1,
}
-- We have an array of 1000 signed integers that a modder can use to set whatever data he wants.
@@ -498,6 +499,7 @@ ModSpecificActions =
-- |||||||||||||||||||||||||||||||||| minigames |||||||||||||||||||||||||||||||||||||
MINIGAME_TETRIS = 50,
+ MINIGAME_PONG = 51,
-- |||||||||||||||||||||||||||||||||| minigames |||||||||||||||||||||||||||||||||||||
}
@@ -1469,6 +1471,15 @@ function HandleInteractiveActionResult(sSectorX, sSectorY, bSectorZ, sGridNo, bL
SetMiniGameType(MiniGames.TETRIS)
SetPendingNewScreen(ScreenTypes.MINIGAME)
+ end
+ elseif ( sLuaactionid == ModSpecificActions.MINIGAME_PONG ) then
+
+ -- playing a game costs $1
+ if ( SoldierSpendMoney(ubID, 1) == 1 ) then
+
+ SetMiniGameType(MiniGames.PONG)
+ SetPendingNewScreen(ScreenTypes.MINIGAME)
+
end
end
diff --git a/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml b/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml
index fb9e92cec..dd38e6441 100644
--- a/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml
+++ b/gamedir/Data-1.13/TableData/Map/InteractiveActions.xml
@@ -1004,6 +1004,15 @@
5
50
+
+
+
+ lawless.sti
+ 1
+ 2
+ 5
+ 51
+