Skip to content

Commit

Permalink
halves frequency of frame consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Jan 4, 2025
1 parent 7546b12 commit b1738ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bees/apiary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ function getFrames(dt)
-- check if any frames are consumed over time
self.frameTakeTimers[frameCounter]=(self.frameTakeTimers[frameCounter] or 0) + (dt or 0)
if (self.frameTakeTimers[frameCounter] >= 20) and hasDrones and queen then
local randomChanceToTake = math.random(1)
local randomChanceToTake = math.random(40)
if randomChanceToTake == 1 and contents[frameSlot].count > 1 then
local consumed = world.containerTakeNumItemsAt(entity.id(), frameSlot-1, 1)
if consumed then
Expand Down

0 comments on commit b1738ec

Please sign in to comment.