mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
structures work only once complete
research structures research when they have min 30% HP
This commit is contained in:
@@ -8,6 +8,8 @@ namespace battleship{
|
||||
}
|
||||
|
||||
void PointDefense::attack(Order order){
|
||||
if(!isComplete()) return;
|
||||
|
||||
Unit *targUnit = order.targets[0].unit;
|
||||
Vector3 targDir = (targUnit ? targUnit->getPos() : order.targets[0].pos) - pos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user