Commit Graph

934 Commits

Author SHA1 Message Date
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 81d849dec1 make public games start every minute 2025-01-05 13:40:18 -08:00
Evan 4800e0dd29 NPCs only send emojis to players 2025-01-05 12:59:14 -08:00
Evan 2760b1110f fix calculate cluster conquering itself because removeCluster changed tile ownership 2025-01-04 13:51:12 -08:00
Evan 548532ca1e make medium easier 2025-01-02 11:18:57 -08:00
Evan 903a630953 added Black Sea 2025-01-02 11:16:43 -08:00
Evan f6b739e263 validate usernames on change, fix public lobby highlight bug, validate
strings with zod for safety
2025-01-02 09:02:23 -08:00
Mittani aba8e5dd81 + add validation server side 2024-12-31 13:06:43 -08:00
Mittani aa01ea7694 + add random bot names 2024-12-31 13:05:22 -08:00
evanpelle 2e913ed5e3 rebalance game, don't use startTroops when determine attack TN land speed 2024-12-31 12:14:10 -08:00
evanpelle 6e8a3b6f40 fix npe in radial menu when clicked right after spawn phase, rebalance weaken attacks to make up for expanded attack bonus range from previous commit 2024-12-31 10:45:58 -08:00
evanpelle b7af94ec47 bugfix: didn't call isTraitor so NPCs treated everyone as traitor 2024-12-31 10:26:43 -08:00
Evan 0553a56c06 Increase price of atom bomb to 750k 2024-12-30 20:27:44 -08:00
Evan 309ee84246 NPCs send boats at enemies when not adjacent 2024-12-30 20:23:09 -08:00
Evan c4061e8848 NPCs only attack target when friendly, more bonus for larger attack vs defender troops 2024-12-30 13:55:30 -08:00
Evan e9d9fe1d98 make hard & impossible more difficult 2024-12-30 13:21:46 -08:00
Evan f4c98318b6 Show player relations in player info overlay 2024-12-30 09:40:16 -08:00
Evan a159c50160 bugfix: NPCs not reseting enemy correctly, don't flip off NPCs, NPCs send messages to enemy 2024-12-27 20:56:07 -08:00
Evan ac1d0c0378 Add relations, NPCs attack enemies using relation, NPCs attack targeted players 2024-12-27 16:53:56 -08:00
Evan bb968ec6b6 always recalc name, NPCs spawn warships less frequently 2024-12-27 10:59:41 -08:00
Evan c9c10ccfa8 shell does not attack friendly units 2024-12-27 10:02:00 -08:00
Evan f12fd23e2b battleship doesn't attack trade ship if destroyer nearby 2024-12-27 10:01:07 -08:00
Evan 1eb6066653 NPCs send nukes 2024-12-27 09:35:50 -08:00
Evan 5fdfc98893 NPCs spawn cities 2024-12-26 20:19:11 -08:00
Evan 4afe6f4cbf make territory more opaque, space bar makes territory invisible. 2024-12-26 19:41:52 -08:00
Evan fa3b3478b7 don't delete nukes when player dies. was creating a an error because nukeexecution tried deleting inactive unit. 2024-12-26 09:56:12 -08:00
evanpelle 99e5a62ba6 make leaderboard & events box smaller 2024-12-25 15:36:28 -08:00
evanpelle 57cbf5c55e Refactor: Split config into Config and ServerConfig 2024-12-25 14:04:19 -08:00
evanpelle 111775a3f4 generate mini map offline and load it from binary. this reduces loading time by 30-40% 2024-12-25 11:27:36 -08:00
Evan d39aa245d3 rebalance troops increase & max population 2024-12-23 20:03:34 -08:00
Evan 4e1b37d976 make NPCs less likely to build warships 2024-12-23 10:13:35 -08:00
Evan 10d70d3327 fix nuke bug, make spawn phase longer, show trade ships in overview 2024-12-22 20:27:49 -08:00
Evan 240036a07c only send errors back to server 2024-12-22 12:59:52 -08:00
Evan f1119858e0 make atom bomb cheaper 2024-12-21 13:24:56 -08:00
Evan 2e2eea82e9 make NPCs less likely build boat 2024-12-21 13:24:29 -08:00
Evan 8347190c70 highlight human spawn 2024-12-21 13:09:17 -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
Evan 422f4bdfac rebalance nukes, make fallout much harder to recapture 2024-12-20 20:31:41 -08:00
Evan 3b2d831dfc have multiplayer game start every 10 mins 2024-12-20 20:31:41 -08:00
Evan 5307285d8b give Battleships & Destroyers health, make shells more frequent & larger 2024-12-20 20:31:41 -08:00
Evan 17d75324f8 hit space bar for alternate view 2024-12-20 20:31:24 -08:00
Evan 66fbe8e6b4 don't render player info on top of exit button, render unit type 2024-12-20 20:31:12 -08:00
evanpelle ff02d9d8b6 have core/ directory use consolex for remote logging 2024-12-18 12:00:00 -08:00
evanpelle 642d5dc4ca create consolex class for remote logging 2024-12-18 11:50:31 -08:00
evanpelle e3ea353b22 log locally for transport related logs to avoid stack overflow 2024-12-18 10:53:26 -08:00
evanpelle f3cb220711 don't use crypto.randomUUID() because older browsers may not support it 2024-12-18 08:01:13 -08:00
Evan 113518a96e use better structured logging 2024-12-17 20:34:15 -08:00
Evan 94992e1144 send all logs from client to server and log them 2024-12-17 19:53:17 -08:00
evanpelle 031f62c701 have clients send logs to server 2024-12-17 17:14:24 -08:00
evanpelle 1417808c14 store user's persistent id in bigquery 2024-12-17 14:30:16 -08:00