Fill bomber hull during cooldown
This commit is contained in:
parent
f5c60f8805
commit
7da4531f25
3 changed files with 47 additions and 12 deletions
|
|
@ -37,6 +37,9 @@ func _process(delta: float) -> bool:
|
|||
skill._process(0.0)
|
||||
if first.is_ready() or not second.is_ready() or not skill.button.enabled:
|
||||
return _fail("the first shot disabled more than its firing bomber")
|
||||
if not first._filled_hull(fleet.ships[0].definition.hull_points, 0.0).is_empty() \
|
||||
or first._filled_hull(fleet.ships[0].definition.hull_points, 0.5).size() < 3:
|
||||
return _fail("bomber cooldown did not produce an empty-to-filling hull")
|
||||
if skill.projectiles.size() != 1:
|
||||
return _fail("the first bomber did not launch exactly one projectile")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue