mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
implemented weapons subsystem for units
This commit is contained in:
+2
-1
@@ -14,8 +14,9 @@ namespace battleship{
|
||||
void build(Order);
|
||||
private:
|
||||
vb01::s64 lastIncrementTime = 0;
|
||||
int buildRate = 100;
|
||||
|
||||
bool canIncrementStructureStatus(){return vb01::getTime() - lastIncrementTime > rateOfFire;}
|
||||
bool canIncrementStructureStatus(){return vb01::getTime() - lastIncrementTime > buildRate;}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user