Fix for the wrong placement of purchased and upgraded units (#2006)

* Place the unit at the current position firstly

* More simple solution

* Try to place unit with traceability taken into account

* Return money and notify about the problem

* Popup dialog instead of notification

* Refactoring: Split UI and logic
This commit is contained in:
JackRainy
2020-02-27 09:22:24 +02:00
committed by GitHub
parent 85ea92cf72
commit f621ed5192
9 changed files with 60 additions and 38 deletions

View File

@ -857,6 +857,7 @@ Buy for [amount] gold = Купить за [amount] золота
Buy = Купить
Currently you have [amount] gold. = Сейчас у вас есть [amount] золота.
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Хотите купить [constructionName] за [buildingGoldCost] золота?
No space available to place [unit] near [city] = Возле [city] нет места, чтобы разместить [unit]
Maintenance cost = Стоимость обслуживания
Pick construction = Выбрать здание
Pick improvement = Выбрать улучшение

View File

@ -861,6 +861,7 @@ Buy for [amount] gold = Купити за [amount] золота
Buy = Купити
Currently you have [amount] gold. = Зараз у вас в наявності [amount] золота.
Would you like to purchase [constructionName] for [buildingGoldCost] gold? = Бажаєте придбати [constructionName] за [buildingGoldCost] золота?
No space available to place [unit] near [city] = Біля [city] немає місця, щоб розмістити [unit]
Maintenance cost = Вартість обслуговування
Pick construction = Вибрати споруду
Pick improvement = Вибрати вдосконалення

View File

@ -857,6 +857,7 @@ Buy for [amount] gold =
Buy =
Currently you have [amount] gold. =
Would you like to purchase [constructionName] for [buildingGoldCost] gold? =
No space available to place [unit] near [city] =
Maintenance cost =
Pick construction =
Pick improvement =