Commit Graph

597 Commits

Author SHA1 Message Date
Evan 1becff9fd1 Merge branch 'main' of github.com:openfrontio/OpenFrontIO 2025-03-04 16:32:32 -08:00
evanpelle 7d79c299f4 Merge pull request #143 from ilan-schemoul/warship-target
feat: WarShips red color outside if target current player
2025-03-04 15:53:47 -08:00
ilan schemoul d2208755c4 feat: WarShips red color outside if target current player
Hard to know when warship captures your trade so if they target one of
your trade or war ship they are highlighted in red.
Known limitation: doesn't work well if the WarShip is already in red
(player's color)
2025-03-05 00:45:35 +01:00
Evan 6a22d58281 use admin key token for admin auth 2025-03-04 08:43:17 -08:00
evanpelle fe0e0f0dca Merge pull request #140 from BeGj/fix/missile-silo-wrong-log-text
corrects port to missile silo
2025-03-04 06:08:45 -08:00
BeGj 8bd1d84dae corrects port to missile silo 2025-03-04 14:06:35 +00:00
evanpelle 718b572b59 Merge pull request #117 from ilan-schemoul/cance-attacks
feat: cancel attack
2025-03-04 05:20:01 -08:00
Evan 226112beb5 have MIRV target all non allied players, increase price to 25 million 2025-03-03 20:46:28 -08:00
Evan ccebe86664 reduce alliance to 4 minutes 2025-03-03 20:32:09 -08:00
Evan 49a54cd879 traitors have .8 defense debuff 2025-03-03 20:31:39 -08:00
Evan 3aa375b210 have warships favor attacking transport ships 2025-03-03 20:23:27 -08:00
Evan 0a482e2e6e infinity checks on bigint 2025-03-03 19:21:39 -08:00
Evan c1383d76f1 allow boating on lakes 2025-03-03 19:19:16 -08:00
Evan 399cf4aab0 optimize trade ships 2025-03-03 14:37:24 -08: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
evanpelle b43bfa1194 Merge pull request #118 from ilan-schemoul/fix-comment-nuke
refactor: remove comment outdated
2025-03-02 20:03:23 -08:00
evanpelle ef50ceffbc Merge pull request #119 from BrunoJurkovic/show-attack-boats-in-chat
Naval attack message added
2025-03-02 20:03:08 -08:00
Bruno Jurković b488bcea68 naval invasion alert added 2025-03-02 22:45:00 +01:00
evanpelle db3f62d0b1 Merge pull request #88 from ilan-schemoul/click
Left click now open menu (double click or shift+click to attack)
2025-03-02 13:38:09 -08:00
ilan schemoul e45c4b5ba4 refactor: remove comment outdated 2025-03-02 22:30:38 +01:00
ilan schemoul fc7b08402f feat: stats system to see number of nukes sent by a player in PlayerPanel 2025-03-02 21:41:00 +01:00
evanpelle 38b762b8bc Merge pull request #95 from ilan-schemoul/embargoes
feat: everyone trade with everyone, anyone can embargo a player to stop trade
2025-03-02 10:58:05 -08:00
Evan 5e09c0db47 fix build errors from cherry-pick 2025-03-02 09:51:25 -08:00
Evan bad74a0488 schedule game duration based on time of day 2025-03-02 09:39:54 -08:00
Evan d726fd66b5 store values as bigints to prevent floating point drift 2025-03-02 09:39:51 -08:00
NewHappyRabbit 9b85651ad8 Fixed dark mode class being added in different places (body and html elements).
Fixed flag "None" (xx.svg) being able to be set and used ingame.

All menu modals will now close if you click outside of them.

Fixed info icon in instructions.

Added an icon to show the number of new events that happened while the events panel is hidden.

Removed opacity from the svg icons files and added it to the player-icons div, making them have the same opacity and being more visible.
2025-03-02 09:39:36 -08:00
Evan fb332bc827 make games every 30s 2025-03-02 09:39:36 -08:00
Evan 6ce412f51b update num workers to 2 2025-03-02 09:39:36 -08:00
Evan a029b4277f use node cluster to shard server 2025-03-02 09:39:09 -08:00
evanpelle 0a077ebf4d Merge pull request #100 from d3n0x8/scrollAttackRatio
add shift + scroll command in HelpModal hotkeys table
2025-03-02 18:34:04 +01:00
NewHappyRabbit c057f70c45 UI fixes 2025-03-02 09:29:10 -08:00
Evan ff33c2db50 have server check hashes, crash game if out of sync 2025-03-02 09:29:10 -08:00
NewHappyRabbit a21181c059 Added a button to focus the player that sent an alliance request. Increased bots name color brightness 2025-03-02 09:29:10 -08:00
Evan e0938253df send game hash to server each second 2025-03-02 09:29:10 -08:00
ilan schemoul d6b29a655c feat: left click now opens menu (to avoid misclicks), shift+left click is attack
It happens very frequently that I misclick (meant to click on neighbor,
mean to click modal, sensitive touchpad and many others) and ruin my
game (and another player's). So by default left click opens the menu. As
the attack button is in the middle you can just double click to attack.
You can also shift+click to attack.
I have updated the Help modal to document all that + the existing (just
discovered in the code) ctrl+click to open build menu.
2025-03-02 17:56:14 +01:00
ilan schemoul c2b90a52a3 feat: add icon when player request alliance
To spot who asked alliance on the map add an email icon next to them
2025-03-02 00:13:05 +01:00
ilan schemoul 40b9613f67 feat: 60% health for units when they spawn so 2 warships vs 1 always win 2025-02-28 19:23:50 +01:00
NewHappyRabbit 02d5060352 Customizable creative mode 2025-02-24 23:06:50 +02:00
Evan 7c0564377b bugfix: make port 125k 2025-02-24 06:38:26 -08:00
Evan e2185b6222 make ports cheaper to encourage more trades, reduce large territory attack bonus to prevent snowballing 2025-02-23 20:40:53 -08:00
Evan 33c634f928 allow ü in schema 2025-02-20 19:16:31 -08:00
Evan 74f56d8fac allow ü 2025-02-20 19:10:40 -08:00
Evan ee56d68748 get eaten if surrounded by same player while on lake 2025-02-20 15:14:29 -08:00
evanpelle 012b04606f Merge pull request #61 from NewHappyRabbit/maps
Added Mars. Excluded from public lobby playlist. Changed Africa image…
2025-02-20 13:30:17 -08:00
Evan f23f84e693 reduce tolerance for pathfinding to make shells hit target better. 2025-02-20 11:53:11 -08:00
Evan 82667b413d warships prioritize other warships, always recalcs target 2025-02-20 11:41:25 -08:00
Evan f8c5d29b36 bugfix: show updated cost when building a unit while another unit of same type is under construction 2025-02-20 10:45:58 -08:00
NewHappyRabbit 1dfc0aef39 Added Mars. Excluded from public lobby playlist. Changed Africa image background to transparent. 2025-02-20 20:42:17 +02:00
SunnyBoyWTF e523b3eda3 Update TerrainMapFileLoader.ts 2025-02-20 08:45:54 -05:00
SunnyBoyWTF 2f48c0cb6b Update Game.ts 2025-02-20 08:44:31 -05:00