Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Paragon production update rate #6671

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Feb 21, 2025

Issue

High-consumption tasks like overcharge (1 tick of huge energy drain), Czar, Salvation, or modded build rates can cause the Paragon to not give the appropriate resources, and leaves resources drained from storage despite the Paragon supposedly always matching consumption.
The same tasks can cause the Paragon to overflow resources as well, since it has high production but will update to a reduced production value only several ticks after resource usage has decreased.

Description of the proposed changes

Increase the production update rate from once per 5 ticks to once per tick.

Testing done on the proposed changes

The aforementioned high consumption tasks no longer empty storage.

Spawn test units command
for i = 1, 70 do
   CreateUnitAtMouse('ual0301_engineer', 0, 30 + 1.2 * math.mod(i, 10), 1.2 * math.floor(i / 10), 0.00000)
end
for i = 1, 100 do
   CreateUnitAtMouse('ual0309', 0, 70 + 1.2 * math.mod(i, 10), 1.2 * math.floor(i / 10), 0.00000)
end
CreateUnitAtMouse('xab1401', 0, 0, 0, 0.00000)
CreateUnitAtMouse('xsl0301_advancedcombat', 0, 2, 34, -0.00000)
CreateUnitAtMouse('xsl0301_advancedcombat', 0, 4, 34, -0.00000)
for i = 1, 20 do
   CreateUnitAtMouse('xsl0301_rambo', 1, -20/2+1.2*i, 60, -0.00000)
end
for i = 1, 100 do
   CreateUnitAtMouse('xsl0309', 0, -30 + 1.2 * math.mod(i, 10), 1.2 * math.floor(i / 10), 0.00000)
end

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@lL1l1 lL1l1 added type: enhancement area: balance related to units balance, but not as a suggestion area: sim Area that is affected by the Simulation of the Game labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: balance related to units balance, but not as a suggestion area: sim Area that is affected by the Simulation of the Game type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant