Capital gives all ships +1/+1 ,so each strike now has 2hp.

# New Game Idea

**JayKyburz**#22

In Blight there are Generals that give all of a race +X Strength and Terrain Masters that give all units fighting is a special terrain +y strength.

You should look at the Blight combat model if you are going to track individual ships with different abilities.

**x_Molotov**#23

hmmā¦ what about a point system?

Like Capitals have 150 points,

heavy 35

strike 10 points, but 5 on def.

So if you were attacking w/

25 strike, 12 heavy, and 1 cap,

you would do 250 + 420 + 150 damage.

However, on def, it would be 420 + 150 + 175.

So strike would go first, then heavy, then cap.

So

would go

(25x15)+(35x10)+(150x1)

375 + 350 + 150 = 875 attack

v

15 + 420 + 150 = 585 def.

(1)

Attacker wins, destroying everything, while losing (x) ships.

875-585=290 worth of ships remaining.

1 cap left, = 290-150 = 140.

140/35 = 4.

So attacker has 5 ships left, his capitol and 4 heavy, while the defender gets wiped.

Only a small example.

**Ahamkara**#25

I created a test app so that we can test some of the various combat calculations. Right now it isnāt wired up, only spent 10 minutes getting the form up and running. Iāll start with @Rosslessnessās formula, then I will try @x_Molotovās next. Thereāll be some sort of switcher to allow us to quickly switch. Feel free to fork and implement. Please be sure to post back on here so we can test some of the ideas out. Thanks

**AnnanFay**#26

I havenāt the time to read the above, but for interesting reading on combat mechanics Force concentration and Salvo combat model may interest the people here.

Thereās also this video I found a while ago if you just want the rough idea: Can you win a war through MATH[S]!?

NOTE: this is not how Triton works, but force concentration is how, for example, Sins of a Solar Empire and Endless Space work.

**Ahamkara**#27

The salvo combat model looks very simple (once you interpret all the algorithmic symbols they use to explain it). Thanks for the links. I might try to implement them first into the combat calculator I made.

**Ahamkara**#28

So Iāve implemented a few different algorithms including NPās formula, a force-multiplier model and a salvo combat model. Currently theyāre only accounting for a single type of ship like in NP. So no class calculations at this stage. One thing that doesnāt seem to work at the moment is the salvo combat model, maybe I can **get some help** on figuring out a solution for testing:

- A = fleet Aās number of ships
- Ī± = fleet Aās offensive power
- y = fleet Aās defensive power
- u = fractional amount it takes to destroy on ship in Aās fleet (for now I assumed 1)

- B = fleet Bās number of ships
- Ī² = fleet Bās offensive power
- z = fleet Bās defensive power
- v = fractional amount it takes to destroy on ship in Bās fleet (for now I assumed 1)

ĪA = -(Ī²B - yA)u, subject to 0 ā¤ -ĪA ā¤ A

ĪB = -(Ī±A - zB)v, subject to 0 ā¤ -ĪB ā¤ B

### salvo combat model example

Letās use an example fight to demonstrate:

```
fleetA = { num: 25, ap: 2, dp: 1 }
fleetB = { num: 18, ap: 1, dp: 2 }
```

####salvo 1 (original)

ĪA = -(18 * 1 - 25 * 1) = -(18 - 25) = 7

ĪB = -(25 * 2 - 18 * 2) = -(50 - 36) = -14

**note** - Because there is a positive number for one and a negative number for the other, something is not right. According to this, depending on if you add or subtract the Īval, one will gain ships, the other will lose shipsā¦ anyway, letās assume we **add** the difference back to the number of ships

āFleet A lost -7 ships and has 32 remaining. Fleet B lost 14 ships and has 4 ships remainingā

If we utilize an absolute value subtraction method it makes a little bit more sense, but does it address all cases? Letās see.

####salvo 1 (modād)

ĪA = -(18 * 1 - 25 * 1) = -(18 - 25) = 7

ĪB = -(25 * 2 - 18 * 2) = -(50 - 36) = -14

ĪA *= -1 if ĪA > 0

ĪB *= -1 if ĪB > 0

āFleet A lost 7 ships and has 11 remaining. Fleet B lost 14 ships and has 4 ships remainingā

####salvo 2 (modād)

ĪA = -(4 * 1 - 11 * 1) = -(4 - 11) = 3

ĪB = -(11 * 2 - 4 * 2) = -(22 - 8) = -14

ĪA *= -1 if ĪA > 0

ĪB *= -1 if ĪB > 0

āFleet A lost 3 ships and has 8 remaining. Fleet B lost 14 ships and has -10 ships remainingā

So does this all add up in your minds? Something is a little off. I still need to update the testing calculator and plug these formulas in.

**Ahamkara**#29

Here is the updated battle calculator. Itās simplified meaning it doesnāt account for the various ship classes I had discussed. It still needs work on the *salvo combat model*. I think that probably works best with non-integer ap/dp values.