Commit Graph

118 Commits

Author SHA1 Message Date
1brucben 23b13971c6 strengthen dogpile 2025-05-06 00:12:08 +02:00
1brucben f862ad36df dogpile fix again 2025-05-05 22:28:24 +02:00
1brucben 82a5f1795c dogpile fix 2025-05-05 21:27:05 +02:00
1brucben e3052546c5 nations attack terra nulla first. 2025-05-05 02:13:53 +02:00
1brucben 425d0166f4 adjustments 2025-05-01 20:45:16 +02:00
1brucben 7d7b19de3f further calibration 2025-04-26 23:55:42 +02:00
1brucben 69d036da39 dogpile time fix 2025-04-26 23:06:55 +02:00
1brucben b935045962 dogpile mode fix 2025-04-26 23:05:45 +02:00
1brucben 662282c676 update countries 2025-04-26 21:27:35 +02:00
1brucben dea380337e more balance 2025-04-26 20:35:45 +02:00
1brucben 5bf012385b ai updates. more balance 2025-04-26 18:41:04 +02:00
1brucben be1d12ec54 dogpile mode update 2025-04-26 17:46:19 +02:00
1brucben b0cb066e36 bots will attack out of control crown 2025-04-26 17:05:42 +02:00
1brucben a9f899a9de ai doesnt try to nuke sams 2025-04-26 15:07:27 +02:00
1brucben 681d071167 bots build SAM 2025-04-26 05:09:25 +02:00
1brucben 5de9da3241 adjust target ratios for ports and cities in FakeHumanExecution 2025-04-26 03:08:58 +02:00
1brucben 63f5a7858e defense posts builds by bots require 1 city 2025-04-25 23:31:21 +02:00
1brucben 58b8a94b2e Adjust city gold production and fix defense post bug 2025-04-24 13:09:57 +02:00
1brucben a26ffb3cb3 Adjust defense post target ratio for improved gameplay balance 2025-04-24 06:00:09 +02:00
1brucben 34443591be Adjust defense post parameters and starting manpower for improved gameplay balance 2025-04-24 05:57:41 +02:00
1brucben 11bd204bd0 fix nuke bug, boost attack speed for large attacks 2025-04-24 03:56:58 +02:00
1brucben 5b60fc8498 ai builds defense posts. 2025-04-24 02:26:19 +02:00
Scott Anderson 228539ba78 Merge main into nations-ai 2025-04-23 03:04:49 -04:00
evanpelle 71849b47cd better transport ship spawn (#587)
## Description:

Taken from PR #506

Improve transport source tile by considering border extremums

Only calculate better spawn tile for humans, and have the sender
calculate it and send the src tile in the intent for better performance.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>
evan

Co-authored-by: evan <openfrontio@gmail.com>
2025-04-21 19:49:17 -07:00
Scott Anderson ae30c88b03 Merge main into nations-ai 2025-04-18 02:09:56 -04:00
Scott Anderson 1b672420b3 Combine Bot and Nation behaviors in to a shared class (#434)
This is the first move in the effort to combine the redundant logic that
exists between BotExecution and FakeHumonExecution.

This commit:
1. Combines the alliance request handler, moving bots to use the same
logic as nations for acceptance.
2. Combines the sendAttack() functions, which may later be reworked.
3. Introduces selectEnemy() function to wrap enemy selection logic that
nations use.
4. Blocks nations from nuking bots.
5. Alters enemy selection to prefer neighboring bots if there are any.

## Description:

Fixes #467 

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-17 19:37:16 -07:00
Scott Anderson ccadd7f6a8 Nations target structures with nukes (#393)
## Description:

Nations will prefer to target their nukes at structures. This updates
the existing logic, which attempts ten times to randomly select a
coordinate 15 tiles inside the border, to instead generate a list of ten
random tiles in addition to a list of all of the tiles of relevant
structures. The two lists are concatenated to create a set of tile
candidates. These candidates are scored, and the tile with the highest
score, if one is found, is nuked.

The scoring function considers three factors:
1. Damage potential: values of structures with 25 tiles of the target
tile.
2. Distance from silo to target (hang time).
3. Recently nuked locations.


![image](https://github.com/user-attachments/assets/10c7bd96-ad51-404c-84c9-c0840dc8250c)

Fixes #471 

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-17 19:22:35 -07:00
Scott Anderson 6af9e32157 Merge main into nations-ai 2025-04-16 01:06:00 -04:00
Evan 0dbc246a63 reduce transport frequency for fakehumanexecution, make transport render more efficient 2025-04-05 17:14:56 -07:00
Scott Anderson 01ac56e62a Merge main into nations-ai 2025-04-04 20:41:22 -04:00
Scott Anderson 11d7eaee99 wip 2025-04-04 20:40:36 -04:00
Evan 2cb8c239cf make sendBoat() more efficient: find random tiles instead of doing a breadth first search 2025-04-04 16:04:57 -07:00
Scott Anderson 0a3397b8c6 wip 2025-04-04 00:06:41 -04:00
Scott Anderson 8e9d6ce07e refactor bot attacking 2025-04-03 19:45:24 -04:00
Scott Anderson 10c411b1ee bug: lastEmojiSet is never used (#406)
## Description:

In the existing code, lastEmojiSent can only ever be set if it is
already set, causing it to never be used. This change updates the logic
to work as intended.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-03 16:12:07 -07:00
Scott Anderson 52542baa63 Remove unnecessary casts 2025-04-03 01:35:29 -04:00
Scott Anderson 7df6f271ed maybeSpawnStructure 2025-04-03 01:24:02 -04:00
Scott Anderson 6ee58f4191 cost 2025-04-03 01:23:42 -04:00
Scott Anderson b27ac3ae87 refactor tick 2025-04-03 00:59:31 -04:00
Scott Anderson 2778d1e480 Refactor attack rate 2025-04-02 23:55:08 -04:00
Scott Anderson 769080e289 Merge branch 'nations-nuke' into nations-ai 2025-04-02 22:22:35 -04:00
Scott Anderson fe9b6c2801 bug: lastEmojiSet is never used 2025-04-02 22:02:00 -04:00
Scott Anderson 564ebcab4d Nations target structures with nukes 2025-04-01 18:14:39 -04:00
Evan 8b6895d745 add prettier import plugin 2025-03-31 13:09:27 -07:00
PilkeySEK d6e596f7d8 fix: Make bots not attack teammates (#368)
Bug report:
https://discord.com/channels/1284581928254701718/1355194642592694412
## Please complete the following:

- [X] I have added screenshots for all UI updates
- [X] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [X] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:
PilkeySEK
2025-03-30 10:43:24 -07:00
evanpelle d8fe41de7a teams (#349) 2025-03-27 20:43:56 -07:00
Readixyee e02361c2f4 Disable nukes option (#237)
This makes it possible to disable all nukes as well as missile silos
from the game in privat lobbies and singleplayer games
2025-03-21 13:52:36 -07:00
Ilan Schemoul 70c3c43a5f feat: handle embargo fake human (#240) 2025-03-13 14:53:27 -07:00
Evan 3dd02ec4df remove max boat distance 2025-03-07 10:38:26 -08:00
Evan e3896127d5 bugfix: full sending with boat makes you lose troops 2025-02-18 18:55:26 -08:00