Skip to content

Commit

Permalink
hardcode boombox odds because date detection doesn't seem to work as …
Browse files Browse the repository at this point in the history
…expected
  • Loading branch information
Damgam committed Mar 31, 2024
1 parent 4a75a22 commit 2a67217
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luarules/gadgets/game_boombox_spawner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2a67217

Please sign in to comment.