X-Git-Url: https://git.xangelo.ca/?a=blobdiff_plain;f=src%2Frender%2Funit-training.ts;h=0214bfe301402ff31de4ad328a4a1c5cd9b5ac54;hb=9c0287740b282030291008cd9cf204c7f1ca8958;hp=bfed36e2cd33cca3d346141b203327a92370b239;hpb=6e2f57a73eb2fa9a58d4304d13a688d9635b0ebd;p=browser-rts.git diff --git a/src/render/unit-training.ts b/src/render/unit-training.ts index bfed36e..0214bfe 100644 --- a/src/render/unit-training.ts +++ b/src/render/unit-training.ts @@ -2,7 +2,6 @@ import _ from "lodash"; import { CityWithLocation } from "../repository/city"; import { UnitTrainingQueue } from "../repository/training-queue"; import { Unit } from "../repository/unit"; -import { topbar } from "./topbar"; function progressBar(current, max): string { const percent = Math.ceil((current/max) * 100); @@ -24,18 +23,19 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini Unit Avail. + Cost Soldiers ${city.population}
- +
- + Attackers @@ -46,8 +46,8 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini - + Defenders @@ -58,8 +58,8 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini - + Special Attackers @@ -72,6 +72,7 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini + Special Defenders @@ -82,8 +83,8 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini - + `; @@ -115,5 +116,5 @@ export function renderUnitTraining(city: CityWithLocation, units: Unit[], traini `; - return html + queues + topbar(city); -} \ No newline at end of file + return html + queues; +}