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

Allow negative aix cheat multipliers #4525

Conversation

ANIALLATOR114
Copy link
Contributor

Description of changes:

I saw this mentioned here but couldn't find an open issue/pr for the change. #4324 (comment)

This PR changes the range of selectable aix cheat values to include negative multipliers. 0.5->0.9.

This also required a change to the default selection value as 5 entries are being added to the start of the list. The same default of 1.5 is retained.

This will allow players to choose a harder cheating aix in terms of resources, but lowering their build speed to allow more time for the player to react. Alternatively a player could restrict an aix's resources but retain its build speed.

Testing:

Open a lobby and observe the default value has retained at 1.5 and now values less than 1.0 are selectable.
image
image

Open a skirmish match with aix and observe their resource production and build speed match the value set in the lobby.
I set 0.5 for both in this example.
image

buildspeedhalf.mp4

ps - This is my first contribution to FAF so please let me know if I'm missing anything here!

Description of changes:
This PR changes the range of selectable aix cheat values to include some negative multipliers. 0.5->0.9.

This also required a change to the default selection value as 5 entries are being added to the start of the list. The same default of 1.5 is retained.

This will allow players to choose a harder cheating aix in terms of resources, but lowering their build speed to allow more time for the player to react. Alternatively a player could restrict an aix's resources but retain its build speed.
@Garanas
Copy link
Member

Garanas commented Dec 23, 2022

Looking good! I'll give it a closer look this weekend

@Garanas Garanas added area: lobby related to lobby: options, chat, etc area: AI related to AI functions labels Dec 23, 2022
@Garanas Garanas added this to the Development iteration I milestone Dec 23, 2022
@Garanas Garanas linked an issue Dec 23, 2022 that may be closed by this pull request
@Garanas Garanas merged commit 44603af into FAForever:deploy/fafdevelop Dec 23, 2022
@ANIALLATOR114 ANIALLATOR114 deleted the allow-lower-ai-cheat-multipliers branch December 23, 2022 18:17
@Garanas
Copy link
Member

Garanas commented Dec 23, 2022

@ANIALLATOR114 one minor note: you can use 'closing keywords' to automatically close the issue you're trying to solve when the pull request is merged. As an example: closes #4324

Garanas pushed a commit that referenced this pull request Jan 28, 2023
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 area: lobby related to lobby: options, chat, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change AI multiplier types and defaults
2 participants