mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 17:35:12 +00:00
give Battleships & Destroyers health, make shells more frequent & larger
This commit is contained in:
@@ -30,6 +30,11 @@ export class PlayerExecution implements Execution {
|
||||
|
||||
tick(ticks: number) {
|
||||
this.player.units().forEach(u => {
|
||||
if (u.health() <= 0) {
|
||||
u.delete()
|
||||
return
|
||||
}
|
||||
u.modifyHealth(1)
|
||||
const tileOwner = u.tile().owner()
|
||||
if (u.info().territoryBound) {
|
||||
if (tileOwner.isPlayer()) {
|
||||
|
||||
Reference in New Issue
Block a user