From 2a67217665e7cce76715cbebf8d18059101214d9 Mon Sep 17 00:00:00 2001 From: Damgam Date: Mon, 1 Apr 2024 01:52:56 +0200 Subject: [PATCH] hardcode boombox odds because date detection doesn't seem to work as expected --- luarules/gadgets/game_boombox_spawner.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luarules/gadgets/game_boombox_spawner.lua b/luarules/gadgets/game_boombox_spawner.lua index 30a62a44859..fbcb1adde5e 100644 --- a/luarules/gadgets/game_boombox_spawner.lua +++ b/luarules/gadgets/game_boombox_spawner.lua @@ -63,7 +63,8 @@ end function gadget:GameFrame(frame) if frame == 1 then for i = 1,10*#Spring.GetTeamList() do - if (AprilFoolsCounter >= #Spring.GetPlayerList()*0.4 and math.random(1,10) == 1) or math.random(1,10000) == 1 then + --if (AprilFoolsCounter >= #Spring.GetPlayerList()*0.4 and math.random(1,10) == 1) or math.random(1,10000) == 1 then -- date detection doesn't seem to work as expected + if math.random(1,10) == 1 then for j = 1,1000 do local posx = math.random(math.floor(Game.mapSizeX*0.02), math.ceil(Game.mapSizeX*0.98)) local posz = math.random(math.floor(Game.mapSizeX*0.02), math.ceil(Game.mapSizeX*0.98))