implemented weapons subsystem for units

This commit is contained in:
devZoGok
2024-01-20 15:50:35 +02:00
parent a956e754bf
commit e1dde2c90f
11 changed files with 167 additions and 123 deletions
+2 -1
View File
@@ -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;}
};
}