Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
helpLost authored Jun 25, 2023
1 parent 00fa53f commit a89cb88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/scripts/game/logic-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export function increaseBuilding(bld, building_label, plural_label) {
civData.storedResources.food -= Object.values(civData.buildings.costs.tribal_era)[bld].Food;
civData.storedResources.wood -= Object.values(civData.buildings.costs.tribal_era)[bld].Wood;
civData.storedResources.stone -= Object.values(civData.buildings.costs.tribal_era)[bld].Stone;
if(bld == 5) {appendResearch(0, 0)};
} else {
consoleLog("Your tribe doesn't have enough resources to build another " + Object.keys(civData.buildings.explanations.tribal_era)[bld].replace("_", " ") + ".");
}
Expand Down Expand Up @@ -291,4 +292,4 @@ export function applyResearch(research_id, neededTech) {
//- Events -//
export function clockLabel(input) {
document.getElementById("timeLabel").innerHTML = input;
}
}

0 comments on commit a89cb88

Please sign in to comment.