Skip to content

Commit 8e492a8

Browse files
Merge pull request #8 from Dark-Matter-Restore-Point/Dark-Matter-Restore-Point-patch-1
Dark Matter's combat description
2 parents 3d4099c + f22c0a5 commit 8e492a8

File tree

4 files changed

+135
-60
lines changed

4 files changed

+135
-60
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
3131
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
3232
# do not have a Java counterpart.
3333
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
34+
35+
gem "webrick", "~> 1.8"

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ GEM
249249
unf_ext
250250
unf_ext (0.0.8.2)
251251
unicode-display_width (1.8.0)
252+
webrick (1.8.1)
252253
zeitwerk (2.6.0)
253254

254255
PLATFORMS
@@ -262,6 +263,7 @@ DEPENDENCIES
262263
tzinfo (~> 1.2)
263264
tzinfo-data
264265
wdm (~> 0.1.1)
266+
webrick (~> 1.8)
265267

266268
BUNDLED WITH
267269
2.3.21

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Prerequisites
44
Install the following:
55

6-
- [Ruby v2.7.0](https://www.ruby-lang.org/en/documentation/installation/)
6+
- [Ruby v3.0.0](https://www.ruby-lang.org/en/documentation/installation/)
77
- [Jekyll](https://jekyllrb.com/docs/installation/ubuntu/)
88

99
For more information see [here](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll)

combat.markdown

Lines changed: 130 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,176 @@
11
# Combat
2+
(Updated May 18, 2024)
23

34
Combat occurs when a Carrier arrives at a non-allied Star or when a Carrier intercepts a non-allied Carrier in hyperspace. The combat summary can be viewed in the event log.
45

56
![Summary of a combat in the event log](img/combat-summary.png)
67

7-
When 2 opposing Carriers arrive at a Star on the same tick, the Carrier that has the most ships (or if equal, travelled the least distance in the current tick) will arrive at the Star first and receive the Defender Bonus (if enabled).
8+
When 2 opposing Carriers arrive at an unclaimed Star on the same tick, the Carrier that has the most ships (or if equal, traveled the least distance in the current tick) will arrive at the Star first and receive the Defender Bonus (if enabled).
89

9-
Starting with the defender, each player takes it in turns to deal damage to the opposing player. Damage dealt per turn is equal to the effective weapons level, factoring in weapons technology and specialist abilities. Damage is dealt roughly equally to all Carriers and the Star per turn.
10+
Starting with the defender, each side takes it in turns to deal damage to the opposing side. Damage dealt per turn is equal to the effective weapons level, factoring in weapons technology and specialist abilities. When damage is dealt, it destroys ships on Carriers and ships on the Star. Damage is dealt roughly uniformly to all Carriers and the Star per turn.
1011

11-
If multiple opposing Players are in combat at the same time, they will be split into Attackers and Defenders. Where the defender is the player who owns the star and the attackers are all other players. Combat is repeated until there is one player remaining.
12+
If multiple opposing Players are in combat at the same time, they will be split into Attackers and Defenders. The Defenders include the player who owns the star and the defender’s allies; the Attackers are all other players. Combat is repeated until there is one player remaining.
1213

13-
When a Star is captured, **all** of its Economy is destroyed and the winner is awarded credits (default `$10`) per point of Economy. Industry, Science, Warp Gates and Star Specialists are undamaged and are captured by the winning player.
14+
When a Star is captured, **all** of its Economy is destroyed and the winner is awarded credits (default is `$10`) per point of Economy. Industry, Science, Warp Gates and Star Specialists are undamaged and are captured by the winning player.
1415

15-
Combat can also occur between two carriers. When two carriers from different players intercept each other they will engage in carrier to carrier combat. In carrier to carrier combat there is no defender bonus.
16+
Combat can also occur between two carriers. When two carriers from non-allied players intercept each other they will engage in carrier to carrier combat. In carrier to carrier combat there is no defender bonus and damage is dealt simultaneously (not in turns).
1617

17-
> Note: In carrier to carrier combat, if the either side has **less than or equal ships** than the opposing side's weapons technology level then the carrier(s) will fight with **level 1 weapons**. This prevents players from exploiting 1 ship carriers to chip away at incoming enemy forces.
18+
> Note: In carrier to carrier combat, if the either side has **less than or equal ships** than the opposing sides weapons technology level then the carriers will fight with **level 1 weapons**. This prevents players from exploiting one-ship carriers to chip away at incoming enemy forces.
1819
19-
The combat calculator is a useful tool to predict the outcome of combat. Simply input the defender and attacker's weapons level and number of ships and it will present the outcome.
20+
The combat calculator is a useful tool to predict the outcome of combat. Simply input the defender and attackers weapons level and number of ships and it will present the outcome.The combat calculator may not account for all specialist buff/debuffs or other incoming reinforcements. Players should verify weapon levels and ship counts which are expected to be in effect during the combat.
2021

21-
## Combat FAQ
2222

23-
Here are some commonly asked rule clarifications for carrier-to-star and carrier-to-carrier combat:
23+
## Combat Weapons Technology
2424

25-
#### Carrier to Star Combat
25+
When specialists with Weapons buffs/debuffs participate in combat, the following rules apply:
2626

27-
- Allies of the defender will join the defending side.
28-
- Enemies of the defender will join the attacking side.
29-
- Combat occurs in turns, the defender going first dealing damage equal to their effective weapons level each turn.
30-
- Attackers are awarded credits (default $10) per point of Economy destroyed.
31-
- If the star is captured and the star has a specialist, it will be captured by the attacker.
32-
- If there are more than 2 players attacking and the defender is defeated then the player with a carrier with the highest ship count will capture the star.
33-
- If there are 2 or more players attacking an unclaimed star then the player with a carrier with the highest ship count will capture the star.
34-
- If the attackers defeat the defender and they are enemies, then combat will continue until only one player remains or all players who remain are allied with the defender.
27+
`effective weapons level = weapons technology + max debuff + max buff + defender's bonus`
3528

36-
#### Carrier to Carrier Combat
29+
1. Defender bonus is added independently of buffs/debuffs.
30+
2. Weapon deduction (i.e Infiltrator specialist) is applied to the opposing side independently of buffs/debuffs.
31+
3. If multiple specialists with buffs/debuffs participate, then the **highest** buff and **lowest** debuff are used.
3732

38-
- Combat occurs at the same time, mutual destruction.
39-
- Combat occurs between carriers traveling to and from the same stars.
40-
- Carriers can attack from the front (head-to-head combat) and catch up from behind.
41-
- All carriers travel independently, prioritizing carriers with the largest number of ships first.
4233

43-
## Combat Weapons Technology
34+
<details markdown="1" style="color:orange;background-color:#222222">
35+
<summary><small><i>Click here for more details about combat effective weapons calculation</i></small></summary>
4436

45-
When specialists with Weapons buffs/debuffs participate in combat, the following rules apply:
37+
`effective weapons level = weapons technology level + max debuff + max buff + combined defender bonus + deduction by enemy + special buff`
4638

47-
```
48-
effective weapons level = max debuff + max buff
49-
```
39+
* `weapons technology level` = largest technology level available to any of the players participating on the player’s side in a combat
40+
41+
* `max debuff` = lowest (worst) debuff from any of the specialist belonging to any of the players participating on player’s side; debuff is negative, so it lowers the effective weapons level of the player’s side; debuffs do not stack, only the lowest one is used
42+
* Both Star and Carrier specialist with weapon debuffs are included in this category
43+
44+
* `max buff` = highest (best) buff from any of the specialist belonging to any of the players participating on player’s side; buff is positive, so it increases the effective weapons level of the player’s side; buffs do not stack, only the highest one is used
45+
* Only Star specialist that provides weapon buff in this category is War Machine
46+
47+
* `combined defender bonus` = defender bonus + asteroid field bonus + orbital cannon bonus (this is applicable at a Star only)
48+
* Orbital Cannon falls under this category and would stack with any other weapon buff
49+
50+
* `deduction by enemy` = lowest (worst) deduction imposed by an enemy’s specialist available to any of the players on enemy’s side; deduction by enemy is negative, so it lowers the effective weapons level of the player’s side; deductions by enemy do not stack, only the lowest (largest negative) one is used
51+
52+
* `special buff` = additional buff provided only by War Hero specialist (see War Hero specialist description for more information)
53+
54+
If calculated effective weapons level < 1, then effective weapons level = 1
55+
56+
Notes:
57+
58+
1. Effective weapons level is calculated at the start of the combat and is in effect until combat resolves, even if a carrier weapons specialist runs out of ships mid-combat and is destroyed during the combat.
59+
60+
2. Ship placement does not affect the effective weapons level calculation, as long as the ships participate in the combat. Star defender bonuses and star specialists are in effect even if there are zero ships on the star (i.e., all ships are on carriers orbiting the star).
61+
62+
</details>
5063

51-
1. Defender bonus is applied **after** effective weapons level is calculated.
52-
2. Weapon deductions (i.e Infiltrator specialist) is applied **after** effective weapons level is calculated.
53-
3. If multiple specialists with buffs/debuffs participate, then the **highest** buff and **lowest** debuff are used.
5464

5565
For example:
5666

67+
- Player's weapon technology level = 10
5768
- Specialist A has Weapons +3
5869
- Specialist B has Weapons +1
5970
- Specialist C has Weapons -2
60-
- `effective weapons level = -2 + 3 = +1 weapons` *(Specialist B is ignored)*
71+
- `effective weapons level = 10 - 2 + 3 = 11 weapons` *(Specialist B is ignored)*
6172

6273
## Formal Alliance Combat Rules
6374

64-
When formal alliances is enabled then a there are a few conditions that need to be met in order for combat to take place:
75+
When formal alliances option is enabled then there are a few conditions that need to be met in order for combat to take place:
6576

6677
1. When a carrier arrives at a star, if the player is allied with the defender then no combat occurs.
67-
2. When a carrier arrives at a star, if the player is not allied with the defender then combat occurs.
68-
2a. Carriers in orbit who are allied to the defender will help defend.
69-
2b. If the attacker wins and captures the star, then combat will repeat until there are no non-allies to the defender.
78+
2. When a carrier arrives at a star, if the player is not allied with the defender then combat occurs.
79+
* 2a. Carriers in orbit (or arriving on the same tick) who are allied to the defender will help the defender. If the player whose carrier is helping the defender is also allied with the attacker, their diplomatic status will not be affected.
80+
* 2b. If the attacker wins and captures the star, then combat will repeat until there are no non-allies to the defender.
7081
3. When a carrier intercepts another carrier in space, then combat occurs between non-allies.
71-
4. When a player changes their diplomatic status from allied to neutral or enemy, then combat occurs.
82+
4. When a player changes their diplomatic status from allied to neutral or enemy, then combat occurs with combat outcome displayed on the next tick. If diplomatic status is restored back to allies within the same tick, no combat occurs.
83+
84+
> Note: More than 2 players can be in orbit at the star provided that they are allied with the defender. Combat will not occur if the guest players are enemies but are both allied to the defender.
7285
73-
> Note: More than 2 players can be in orbit at the star providing that they are allied with the defender. Combat will not occur if the guest players are enemies but are both allied to the defender.
7486

7587
## Weapon Buffs and Specialists Stacking Example
7688

7789
Scenario:
7890

79-
- **Player A** - `weapons level 11`
80-
- Defending star:
81-
- Trade Port - `-5 weapons`
82-
- **Player B** - `weapons level 13`
83-
- Attacking with carriers:
84-
- Lieutenant - `+1 weapons`
85-
- Destroyer - `+5 weapons`
86-
- Scrambler - `-1 weapons`
87-
- Infiltrator - `-1 weapons to the enemy`
91+
Player A: weapon technology level = 11
92+
Defending star:
93+
Trade Port: -3 weapon
94+
Player B: weapon technology level = 10
95+
Attacking star with carriers:
96+
▪ Lieutenant: +1 weapon
97+
▪ Destroyer: +5 weapon
98+
▪ Smuggler: -1 weapon
99+
Infiltrator -1 weapon from the opposing side
88100

89101
The combat weapons level resolves to this:
90102

91-
**Player A** - `weapons level 11`:
103+
• Player A - weapons technology level 11 :
104+
◦ Defender bonus = +1
105+
◦ Max buff = 0
106+
◦ Max (worst) debuff = -3 (due to Trade Port)
107+
◦ Additional debuff = -1 (due to enemy's Infiltrator)
108+
Total weapons = 8
109+
110+
111+
• Player B - weapons technology level 10 :
112+
◦ Defender bonus = 0
113+
◦ Max buff = +5 (due to Destroyer; Lieutenant is ignored)
114+
◦ Max (worst) debuff = -1 (due to Smuggler)
115+
◦ Additional debuff = 0
116+
Total weapons = 14
117+
118+
119+
## Combat FAQ
120+
121+
Here are some commonly asked rule clarifications for carrier-to-star and carrier-to-carrier combat:
122+
123+
#### Carrier to Star Combat
124+
125+
- Combat occurs in turns, the defender going first dealing damage equal to their effective weapons level each turn.
126+
- Attackers are awarded credits (default $10) per point of Economy destroyed.
127+
- If the star is captured and the star has a specialist, it will be captured by the attacker.
128+
- If there are more than 2 players attacking and the defender is defeated then the player with a carrier with the highest ship count will capture the star.
129+
- If there are 2 or more players attacking an unclaimed star on same tick then the player with a carrier with the highest ship count will capture the star.
130+
- If the attackers defeat the defender and they are enemies, then combat will continue until only one player remains or all players who remain are allied with the defender.
131+
- Ship distribution among the Carriers and the Star does not affect combat outcome, except carriers (with or without specialist) are destroyed once they run out of ships.
132+
133+
#### Carrier to Carrier Combat
134+
135+
- Players deal damage simultaneously, not in turns. This could lead to mutual deduction.
136+
- Combat occurs between carriers traveling to and from the same star.
137+
- Carriers can attack from the front (head-to-head combat) and catch up from behind (i.e., faster carriers can catch up to slower carriers).
138+
- Carrier to carrier combat occurs when carriers travel through the same wormhole in opposite directions on the same tick.
139+
- Gifted carriers do not participate in carrier to carrier combat.
140+
- All carriers travel independently. When carrier-to-carrier combat occurs with one or both opposing sides having two or more carriers that end up at the same point of interception, the rules of combat are relatively complicated and are presented below.
141+
142+
<details markdown="1" style="color:orange;background-color:#222222">
143+
<summary><i><small>Click here for more details about C2C combat</small></i></summary><br>
144+
145+
Let's assume there are 2 stars, StarA and StarB.
146+
Let carriers A, B, C, D, constructed in this order.
147+
148+
A, B are in the same position on StarA => StarB and owned by Player1.
149+
C, D are in the same position on StarB => StarA and owned by Player2 (who is hostile with Player1).
150+
The positions of A, B and C, D are below 0.2ly in distance, which will be crossed within a tick.
151+
152+
C2C combat is computed:
153+
154+
1. A list of carrier positions is constructed, collecting metadata about the carrier, the current position and the predicted position next tick.
155+
This list is ordered in what MongoDB calls "natural order", practically likely equivalent to insertion order/age.
156+
2. A carrier graph is constructed, mapping (destination, source) to the carrier position objects traveling between source and destination. The graph looks like this:
157+
(StarA, StarB) => [C, D]
158+
(StarB, StarA) => [A, B]
159+
160+
3. The graph is traversed, in order of insertion of the key. This means that the paths are sorted ascending by the oldest (by natural order) carrier traveling on them.
161+
For each carrier X traveling on that path (in natural order, starting with oldest), all other carriers are checked if they will collide head-on or be overtaken by X within the next tick.
162+
Gift carriers and carriers with combat-avoiding specialists are filtered out.
163+
164+
4. Combat ensues if one of the carriers collected in 3 is not allied to X's owner.
165+
166+
In this example, it means that A will fight the group of C, D.
92167

93-
- Defender bonus = `+1 weapons`
94-
- Largest buff = `N/A`
95-
- Largest debuff = `-5 weapons` (Trade Port)
96-
- Additional debuff = `-1 weapons` (Enemy Infiltrator)
97-
- **Total weapons** = `6`
168+
</details>
98169

99-
**Player B** - `weapons level 13`
170+
<span style="color:grey">
100171

101-
- Defender bonus = `N/A`
102-
- Largest buff = `+5 weapons` (Destroyer)
103-
- Largest debuff = `-1 weapons` (Scrambler)
104-
- Additional debuff = `N/A`
105-
- **Total weapons** = `17`
172+
\
173+
*While this guide provides the general overview of the basic combat rules, each combat is unique and could be impacted by many different factors, including monthly flux, specific game settings, etc. If in doubt, it is recommended to seek advice on Solaris Discord server.*
174+
\
175+
\
176+
<a href="#top">Back to top</a>

0 commit comments

Comments
 (0)