Commit Graph

37 Commits

Author SHA1 Message Date
icslucas 7567052ed5 Update TradeShipExecution.ts 2025-05-14 21:19:50 +02:00
icslucas df9ffb8eef Update TradeShipExecution.ts 2025-05-14 21:02:50 +02:00
evanpelle 1d0732d3d9 Refactor UnitSpecific info => AllUnitParams type union (#701)
## Description:

By using a type union we get better type safety, enforcing each unit
type have the appropriate params when initializing

## 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:
evan

---------

Co-authored-by: evan <openfrontio@gmail.com>
2025-05-10 11:40:47 -07:00
APuddle210 f713254081 Address-River-Criticisms (#536)
## Description:

Please see description on: #535 

fixes #535 

## 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:

aPuddle

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-18 18:05:27 -07:00
Evan 190a67b72a delete tradeship if path not found 2025-04-04 12:11:10 -07:00
Evan 8b6895d745 add prettier import plugin 2025-03-31 13:09:27 -07:00
Readixyee 665a8c3823 Executions dont switch owner (#326)
when an building is taken over by another player the execution for it
doesnt change its owner this makes it so when a sam is captured it tries
to intercept your own nukes and doesnt intercept the ones by the
previous player

this change makes executions of buildings automaticly switch their owner
2025-03-27 16:03:15 -07:00
Ilan Schemoul cb3f36a74f fix: update dst port when ship captured (#217) 2025-03-13 06:31:41 -07:00
Ilan Schemoul 3ce5785d1e nuke icon (#207)
- **feat: white nuke icon next to name if player nukes you**
![Capture d'écran 2025-03-10
220439](https://github.com/user-attachments/assets/1b717b2d-bffb-45fc-96ea-2feb57d25de0)
- **feat: red nuke icon if player sends nuke towards you**
- 
![Capture d'écran 2025-03-10
220358](https://github.com/user-attachments/assets/b755fa06-9510-4bd1-8312-7180dc681d85)
2025-03-11 15:44:45 -07:00
Ilan Schemoul c4b8d6b92e cancel trade if port is captured (no trade inside same country) (#194)
If the port of destination and of source have same owner it means a
player captures port of another player, we cease all trade that happens
inside same country.
Also added a check in the canTrade code to be more reliable and correct
even outside of the specific case of capturing a port.
2025-03-11 12:33:45 -07:00
Evan 399cf4aab0 optimize trade ships 2025-03-03 14:37:24 -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
Evan 4ee37323f9 format codebase with prettier 2025-02-01 12:05:11 -08:00
evanpelle 75fe718f16 Combine Unit & MutableUnit 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 f0f5bae79f thread_split: convert all tile to tileref 2025-02-01 12:05:11 -08:00
Evan 8616e9bfcb game runs in seperate thread 2025-02-01 12:05:11 -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
Evan 05746ebecd add capture alert 2024-12-13 11:05:01 -08:00
Evan 2816ba1807 don't alert on delete trade ship or shell 2024-12-12 21:12:29 -08:00
evanpelle ee97ae8197 improve capture trade ship message 2024-12-10 20:28:39 -08:00
evanpelle e1d22193c1 render emoji on top of name, better trade notification 2024-12-10 20:28:39 -08:00
Evan a0a40262a6 render trade ship when stopped, hash units 2024-12-03 19:47:27 -08:00
Evan 4899196613 refactor: move worker into worker file 2024-11-29 15:57:39 -08:00
Evan 020d193667 create async path finder, trade ships use async when captured 2024-11-29 15:41:13 -08:00
Evan 3e4f4e42cf created path finding web worker 2024-11-29 11:34:03 -08:00
Evan 146a7ef657 bugfix: destroys not capturing tradeships 2024-11-25 09:19:22 -08:00
Evan 0b062179ac ports increase in price, NPC attack more frequently, tradeship destroyed if dst port destroyed or captured 2024-11-24 21:03:09 -08:00
Evan 5431aff30c NPCs less agressive, trade ship less gold, NPCs recapture after nuke 2024-11-23 21:53:26 -08:00
Evan a2a6654bf5 fixed bug where each intent was duplicated
destroyers find and capture trade ships
ports generate more trade ships
2024-11-22 20:28:58 -08:00
Evan 3f315cd433 display message when trade ship arrives 2024-11-22 15:03:00 -08:00
Evan 371a33b406 fixed units() returning empty when no units specified, moved canBuild logic to PlayerImpl 2024-11-17 12:38:54 -08:00
Evan 8f8de97d9b remove BuildValidator 2024-11-17 10:33:13 -08:00
Evan b5a8339eb3 move unit info to config 2024-11-16 21:09:25 -08:00
Evan b1e1d7263c Created TradeShips 2024-11-15 20:43:15 -08:00