1brucben
efb93d03c2
improved search efficiency
2025-04-19 14:03:45 +02:00
1brucben
89ae7bc7ef
Optimize attack logic by reducing redundant neighbors() and owner() calls
2025-04-19 11:27:31 +02:00
1brucben
ce50336b8e
Reduced tile weight recalc
2025-04-19 11:02:56 +02:00
1brucben
436b56ae43
Merge branch '1brucbentest' into defenseposture
2025-04-19 01:27:05 +02:00
1brucben
9988b83b54
fix for empty tile set
2025-04-19 00:32:27 +02:00
1brucben
aeec377bef
Revised tile targeting
2025-04-19 00:00:43 +02:00
1brucben
76a1f1487c
added defensive posture options with experimental effect on defense
2025-04-18 18:18:38 +02:00
1brucben
97fa91769a
another adjustment
2025-04-18 04:34:55 +02:00
Quentin Siruguet
8de3a5f106
Add notifications for troops attacking wilderness ( #363 )
...
+Retreat cost no soldiers when coming back from wilderness
+ Also work with contamined area


## 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:
quentin.qsi
2025-04-02 08:37:58 -07:00
Evan
8b6895d745
add prettier import plugin
2025-03-31 13:09:27 -07:00
Evan
8dd5f654ff
Attacks don't create embargos against bots because they can't trade anyways
2025-03-28 14:02:29 -07:00
Ilan Schemoul
6834f0683f
embargo if attacked ( #353 )
...
## Responsibility Acknowledgment
- [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 basic manual testing:
- Significantly slows down the entire development process
- Blocks releases and new features for all contributors
- Harms the project's reliability and reputation
- Places additional debugging burden on maintainers who already have
limited time
- Diverts valuable resources away from new development and improvements
- Makes me seen as a loser
- Makes me more likely to go to hell
2025-03-27 16:39:37 -07:00
Ilan Schemoul
87d1a8d69d
feat: retreat stops attack + show when ennemy retreats ( #209 )
2025-03-10 17:25:21 -07:00
Ilan Schemoul
4375797d92
feat: show a message when attack is canceled (with number of deaths) ( #193 )
2025-03-10 13:30:07 -07:00
BeGj
619891741f
linting
2025-03-07 16:53:10 +00:00
PilkeySEK
e979e1184c
Add guard clause instead of nesting
2025-03-07 14:16:18 +01:00
ilan schemoul
9a1f916f4d
feat: cancel attack
...
Canceling attack takes time and incurs a malus (loose some troops).
Also prettier fixed a file HostLobbyModal.
2025-03-03 22:06:35 +01:00
Evan
e3896127d5
bugfix: full sending with boat makes you lose troops
2025-02-18 18:55:26 -08:00
Evan
5e6f8f5d91
validate all intent input
2025-02-18 16:26:49 -08:00
Evan
d9f2b683d7
add eq for zoom, chagne meta give more bonus large players, don't throw exception when attack self
2025-02-15 14:31:18 -08:00
Evan
64d13a46bd
bugfix: bots were not losing troops in attack. rebalanced difficulties.
2025-02-13 11:50:15 -08:00
Evan
40966ca3b9
format all files with prettier
2025-02-12 08:28:15 -08:00
Evan
6f02bd250e
refactor: have players store attacks
2025-02-11 10:16:08 -08:00
Evan
4f4b6adb80
add 5 second player immunity to prevent spawn kills
2025-02-08 19:34:16 -08:00
Evan
4ee37323f9
format codebase with prettier
2025-02-01 12:05:11 -08:00
evanpelle
de1dbff570
combine Game & MutableGame
2025-02-01 12:05:11 -08:00
evanpelle
7d15c0c065
combine Player & MutablePlayer interfaces
2025-02-01 12:05:11 -08:00
Evan
b91d9d4148
fix bugs from using tilerefs
2025-02-01 12:05:11 -08:00
Evan
f0f5bae79f
thread_split: convert all tile to tileref
2025-02-01 12:05:11 -08:00
evanpelle
a17ae48cd3
use TileRef instead of tile
2025-02-01 12:05:11 -08:00
Evan
8616e9bfcb
game runs in seperate thread
2025-02-01 12:05:11 -08:00
Evan
dab427d614
put methods onto terraintile
2025-02-01 12:05:11 -08:00
Evan
8a101b7a6a
update meta: population growth bit faster, reduce tile type differences, reduce attack bonus
2025-01-10 14:49:36 -08:00
Evan
5e0367ae55
bufix: NPC is targeted at the same time it allies with targeter, causing it to try to attack itself
2025-01-05 20:04:55 -08:00
Evan
f4c98318b6
Show player relations in player info overlay
2024-12-30 09:40:16 -08:00
Evan
ac1d0c0378
Add relations, NPCs attack enemies using relation, NPCs attack targeted players
2024-12-27 16:53:56 -08:00
Evan
06c00307e5
make discord link more noticeable, have attack bonus be based on number of troops sent, not player troop count (better full sends)
2024-12-20 20:31:54 -08:00
evanpelle
ff02d9d8b6
have core/ directory use consolex for remote logging
2024-12-18 12:00:00 -08:00
Evan
722165c401
adding persistent id
2024-12-17 14:30:16 -08:00
evanpelle
67288cb49f
alert when getting attacked
2024-12-10 20:28:39 -08:00
evanpelle
e7316c8fe9
display message & received gold when conquer player
2024-12-10 20:28:39 -08:00
Evan
2d2df14ae3
add GameConfig to Game
2024-12-07 09:45:39 -08:00
Evan
1654f73f43
require gold to buy items
2024-11-04 19:45:31 -08:00
Evan
7068758ae3
growth determined by manpower reserves
2024-11-03 12:38:40 -08:00
Evan
2afecf0f39
create troop slider
2024-11-03 12:37:56 -08:00
Evan
e77bb5e118
bugfix: boat attack troops count twice
2024-11-02 19:55:22 -07:00
evanpelle
af0726a1af
radial menu can send attack
2024-09-26 20:27:46 -07:00
evanpelle
d874392467
refactored alliance
2024-09-22 13:38:43 -07:00
evanpelle
49aafe6379
give fake humans alliance behavior
2024-09-22 13:00:48 -07:00
evanpelle
e559af941f
fix boat only captures single tile bug
2024-09-21 20:32:39 -07:00