mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-14 09:34:32 +00:00
Unit menu (#867)
## Description: We are adding a modal to display information about a unit.  In the future, this modal will likely include buttons for upgrading or dismantling the unit. ## 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: aotumuri
This commit is contained in:
@@ -53,7 +53,8 @@ export class MissileSiloExecution implements Execution {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.silo.ticksLeftInCooldown() === 0) {
|
||||
const cooldown = this.silo.ticksLeftInCooldown();
|
||||
if (typeof cooldown === "number" && cooldown >= 0) {
|
||||
this.silo.touch();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,8 +149,8 @@ export class SAMLauncherExecution implements Execution {
|
||||
target = this.getSingleTarget();
|
||||
}
|
||||
|
||||
if (this.sam.ticksLeftInCooldown() === 0) {
|
||||
// Touch SAM to update sprite to show not in cooldown.
|
||||
const cooldown = this.sam.ticksLeftInCooldown();
|
||||
if (typeof cooldown === "number" && cooldown >= 0) {
|
||||
this.sam.touch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user