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

AI - Remove blueprint threat rounding #6052

Conversation

relent0r
Copy link
Contributor

@relent0r relent0r commented Apr 5, 2024

Description of changes

This PR removes the threat rounding within the blueprints-ai.lua file. It was found to have two issues. One is that any unit that produced a less than 1 threat value would get set to zero. It would drop unit threat for some units and increase for others causing increased variation for units with slight differences in threat levels depending on if that were below or above 0.5.

Testing method
Use the AI blueprint utility window to verify threat numbers that are being generated.

@Garanas Garanas added the area: AI related to AI functions label Apr 6, 2024
@Garanas Garanas merged commit 7b79265 into FAForever:deploy/fafdevelop Apr 6, 2024
Garanas pushed a commit that referenced this pull request Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: AI related to AI functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants