Commit 53e1a5b
committed
fix: add Unit.maxHealth() missing from cherry-picked warship decay
The doomsday-clock warship decay commit (#4499) calls ws.maxHealth(),
which was introduced on main by the warship veterancy PR (#4433) — not
present on this branch — breaking the build.
Add maxHealth() to the Unit interface and UnitImpl, returning the
unit-info base (info().maxHealth ?? 1), the same value modifyHealth
already caps against. No veterancy bonus here since this branch lacks
the veterancy system; merging with main will pick up the adjusted
version with only a one-line conflict in the method body.1 parent 2767929 commit 53e1a5b
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
0 commit comments