mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
subtracting research cost
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ namespace battleship{
|
||||
if(researchQueue.empty()){
|
||||
if(health > .3 * maxHealth && player->getResource(ResourceType::REFINEDS) >= researchCost && canUpdateResearch()){
|
||||
player->updateResource(ResourceType::RESEARCH, generationSpeed, true);
|
||||
player->updateResource(ResourceType::REFINEDS, researchCost, true);
|
||||
player->updateResource(ResourceType::REFINEDS, -researchCost, true);
|
||||
lastUpdateTime = getTime();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user