Added the "crudely-drawn map" to ancient ruins outcomes (#1645)
* Added the "crudely-drawn map" to ancient ruins outcomes Closes #1640 * Extracted the constants for readability Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
This commit is contained in:
parent
0aa2061637
commit
ba324c9fad
19 changed files with 53 additions and 1 deletions
|
@ -677,6 +677,8 @@ We have discovered the lost technology of [techName] in the ruins! = V troskách
|
|||
A [unitName] has joined us! = Jednotka [unitName] se přidala na naši stranu!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Starodávný kmen cvičí naši jednotku [unitName] v jejich bojových uměních!
|
||||
We have found a stash of [amount] gold in the ruins! = Skrýš, která obsahovala [amount] zlata byla objevena v ruinách!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = Jednotka [unit] dokončila průzkum.
|
||||
[unit] has no work to do. = Jednotka [unit] nemá nic dalšího na práci.
|
||||
You're losing control of [name]. = Ztratili jsme přátelství s městským státem [name].
|
||||
|
|
|
@ -1072,6 +1072,8 @@ A [unitName] has joined us! = Een [unitName] heeft zich bij ons aangesloten!
|
|||
An ancient tribe trains our [unitName] in their ways of combat! = Een oude stam traint onze [unitName] in hun manier van vechten!
|
||||
We have found a stash of [amount] gold in the ruins! = We hebben een voorraad [amount] Goud gevonden in de ruïnes!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
# Requires translation!
|
||||
[unit] finished exploring. =
|
||||
# Requires translation!
|
||||
[unit] has no work to do. =
|
||||
|
|
|
@ -1196,6 +1196,8 @@ An ancient tribe trains our [unitName] in their ways of combat! =
|
|||
# Requires translation!
|
||||
We have found a stash of [amount] gold in the ruins! =
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
# Requires translation!
|
||||
[unit] finished exploring. =
|
||||
# Requires translation!
|
||||
[unit] has no work to do. =
|
||||
|
|
|
@ -667,6 +667,8 @@ We have discovered the lost technology of [techName] in the ruins! = Nous avons
|
|||
A [unitName] has joined us! = Un(e) [unitName] nous a rejoint!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Une tribue ancienne a entrainée notre [unitName] au combat
|
||||
We have found a stash of [amount] gold in the ruins! = Nous avons trouvés un tas de [amount] ors dans les ruines!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] a fini d'explorer
|
||||
[unit] has no work to do. = [unit] n'a rien à faire
|
||||
You're losing control of [name]. = Vous perdez le contrôle de [name]
|
||||
|
@ -951,7 +953,6 @@ Clear improvements = Effacer les améliorations
|
|||
Clear resource = Effacer les ressources
|
||||
Requires = Requiert
|
||||
Menu = Menu
|
||||
# Requires translation!
|
||||
Brush Size = Taille de Brosse
|
||||
|
||||
# Civilopedia Tutorials names
|
||||
|
|
|
@ -680,6 +680,8 @@ We have discovered the lost technology of [techName] in the ruins! = Wir haben d
|
|||
A [unitName] has joined us! = Ein(e) [unitName] hat sich uns angeschlossen!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Ein antiker Stamm bringt unserer(em) [unitName] dessen Kampftechniken bei!
|
||||
We have found a stash of [amount] gold in the ruins! = Wir haben [amount] Gold in den Ruinen gefunden!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] hat die Erkundung abgeschlossen.
|
||||
[unit] has no work to do. = [unit] hat keine Arbeit mehr.
|
||||
You're losing control of [name]. = Die Freundschaft mit [name] wird brüchig.
|
||||
|
|
|
@ -683,6 +683,8 @@ We have discovered the lost technology of [techName] in the ruins! = Kita telah
|
|||
A [unitName] has joined us! = Seorang [unitName] telah bergabung dengan kita!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Sebuah suku kuno melatih [unitName] kita dalam cara bertarung!
|
||||
We have found a stash of [amount] gold in the ruins! = Kita telah menemukan [amount] emas di reruntuhan
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] selesai menjelajah.
|
||||
[unit] has no work to do. = [unit] tidak punya pekerjaan lain.
|
||||
You're losing control of [name]. = Anda kehilangan kendali dari [name]
|
||||
|
|
|
@ -665,6 +665,8 @@ We have discovered the lost technology of [techName] in the ruins! = Abbiamo sco
|
|||
A [unitName] has joined us! = L'unità [unitName] si è unita a noi!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Un'antica tribù ha addestrato la nostra unità [unitName] nelle loro arti della guerra!
|
||||
We have found a stash of [amount] gold in the ruins! = Abbiamo trovato un tesoro di [amount] pezzi d'oro nelle rovine!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] non sta più esplorando.
|
||||
[unit] has no work to do. = [unit] è ora inattivo.
|
||||
You're losing control of [name]. = Stai perdendo il controllo di [name].
|
||||
|
|
|
@ -700,6 +700,8 @@ We have discovered the lost technology of [techName] in the ruins! = 고대 유
|
|||
A [unitName] has joined us! = [unitName]이(가) 아군이 되었습니다!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = 아군 [unitName]이(가) 고대 부족으로부터 전투 훈련을 받았습니다!
|
||||
We have found a stash of [amount] gold in the ruins! = 고대 유적에서 금 [amount]을(를) 찾았습니다!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit]의 탐사가 끝났습니다.
|
||||
[unit] has no work to do. = [unit]이(가) 할 수 있는 작업이 없습니다.
|
||||
You're losing control of [name]. = 도시 국가 [name]에 대한 영향력을 잃기 직전입니다.
|
||||
|
|
|
@ -1085,6 +1085,8 @@ An ancient tribe trains our [unitName] in their ways of combat! =
|
|||
# Requires translation!
|
||||
We have found a stash of [amount] gold in the ruins! =
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
# Requires translation!
|
||||
[unit] finished exploring. =
|
||||
# Requires translation!
|
||||
[unit] has no work to do. =
|
||||
|
|
|
@ -667,6 +667,8 @@ We have discovered the lost technology of [techName] in the ruins! = Odkryliśmy
|
|||
A [unitName] has joined us! = [unitName] włączyła się w nasze szeregi!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Starożytne plemie nauczyło jednostkę [unitName] ich sztuk walki!
|
||||
We have found a stash of [amount] gold in the ruins! = Znaleźliśmy w ruinach [amount] złota!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = Jednostka [unit] zakończyła eksplorację.
|
||||
[unit] has no work to do. = Jednostka [unit] jest bez zajęcia.
|
||||
You're losing control of [name]. = Tracisz kontrolę nad [name].
|
||||
|
|
|
@ -701,6 +701,8 @@ A [unitName] has joined us! = Um [unitName] se juntou a nós!
|
|||
An ancient tribe trains our [unitName] in their ways of combat! = Uma antiga tribo treina nosso [unitName] em suas formas de combate!
|
||||
We have found a stash of [amount] gold in the ruins! = Encontramos um estoque de [amount] de ouro nas ruínas!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
# Requires translation!
|
||||
[unit] finished exploring. =
|
||||
# Requires translation!
|
||||
[unit] has no work to do. =
|
||||
|
|
|
@ -979,6 +979,8 @@ A [unitName] has joined us! = Un [unitName] ni s-a alăturat!
|
|||
An ancient tribe trains our [unitName] in their ways of combat! = Un trib străvechi ne invață un [unitName] metodele lor de luptă!
|
||||
We have found a stash of [amount] gold in the ruins! = Am descoperit un depozit de [amount] aur printre ruine!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
# Requires translation!
|
||||
[unit] finished exploring. =
|
||||
# Requires translation!
|
||||
[unit] has no work to do. =
|
||||
|
|
|
@ -667,6 +667,8 @@ We have discovered the lost technology of [techName] in the ruins! = Мы обн
|
|||
A [unitName] has joined us! = [unitName] присоединился к нам!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Древнее племя обучает наших [unitName] своим способам ведения боя!
|
||||
We have found a stash of [amount] gold in the ruins! = Мы нашли сундук с [amount] золота в руинах!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] завершил исследование местности.
|
||||
[unit] has no work to do. = [unit] завершил все доступные работы.
|
||||
You're losing control of [name]. = Вы теряете влияние на [name].
|
||||
|
|
|
@ -678,6 +678,8 @@ We have discovered the lost technology of [techName] in the ruins! = 我们在
|
|||
A [unitName] has joined us! = [unitName]加入了我们!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = 一个古老的部落以他们的战斗方式训练了我们的[unitName]!
|
||||
We have found a stash of [amount] gold in the ruins! = 我们在废墟中找到了[amount]金钱!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit]已完成探索
|
||||
[unit] has no work to do. = [unit]处于闲置状态
|
||||
You're losing control of [name]. = 您正在失去与[name]的脆弱友谊
|
||||
|
|
|
@ -671,6 +671,8 @@ We have discovered the lost technology of [techName] in the ruins! = ¡Hemos des
|
|||
A [unitName] has joined us! = ¡Un [unitName] se ha unido a nosotros!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = ¡Una antigua tribu entrena a nuestros [unitName] en sus formas de combate!
|
||||
We have found a stash of [amount] gold in the ruins! = ¡Hemos encontrado un alijo de [amount] de oro en las ruinas!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit] terminó de explorar.
|
||||
[unit] has no work to do. = [unit] no tiene trabajo.
|
||||
You're losing control of [name]. = Estás perdiendo el control de [name].
|
||||
|
|
|
@ -678,6 +678,8 @@ We have discovered the lost technology of [techName] in the ruins! = 我們在
|
|||
A [unitName] has joined us! = [unitName]加入了我們!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = 一個古老的部落以他們的戰鬥方式訓練了我們的[unitName]!
|
||||
We have found a stash of [amount] gold in the ruins! = 我們在廢墟中找到了[amount]金錢!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = [unit]已完成探索
|
||||
[unit] has no work to do. = [unit]處於閒置狀態
|
||||
You're losing control of [name]. = 您正在失去與[name]的脆弱友誼
|
||||
|
|
|
@ -667,6 +667,8 @@ We have discovered the lost technology of [techName] in the ruins! = В руїн
|
|||
A [unitName] has joined us! = До нас приєднався підрозділ [unitName]!
|
||||
An ancient tribe trains our [unitName] in their ways of combat! = Давнє племʼя навчило їхнього способу битви наш підрозділ [unitName]!
|
||||
We have found a stash of [amount] gold in the ruins! = В руїнах знайдено скарб золота кількістю [amount]!
|
||||
# Requires translation!
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. = Підрозділ [unit] закінчив обстеження.
|
||||
[unit] has no work to do. = Підрозділ [unit] без роботи.
|
||||
You're losing control of [name]. = Втрачається контроль над містом-державою [name].
|
||||
|
|
|
@ -665,6 +665,7 @@ We have discovered the lost technology of [techName] in the ruins! =
|
|||
A [unitName] has joined us! =
|
||||
An ancient tribe trains our [unitName] in their ways of combat! =
|
||||
We have found a stash of [amount] gold in the ruins! =
|
||||
We have found a crudely-drawn map in the ruins! =
|
||||
[unit] finished exploring. =
|
||||
[unit] has no work to do. =
|
||||
You're losing control of [name]. =
|
||||
|
|
|
@ -15,6 +15,7 @@ import com.unciv.models.ruleset.tile.TerrainType
|
|||
import com.unciv.models.ruleset.unit.BaseUnit
|
||||
import com.unciv.models.ruleset.unit.UnitType
|
||||
import java.text.DecimalFormat
|
||||
import kotlin.random.Random
|
||||
|
||||
class MapUnit {
|
||||
|
||||
|
@ -63,6 +64,12 @@ class MapUnit {
|
|||
var promotions = UnitPromotions()
|
||||
var due: Boolean = true
|
||||
|
||||
companion object {
|
||||
private const val ANCIENT_RUIN_MAP_REVEAL_OFFSET = 4
|
||||
private const val ANCIENT_RUIN_MAP_REVEAL_RANGE = 4
|
||||
private const val ANCIENT_RUIN_MAP_REVEAL_CHANCE = 0.8f
|
||||
}
|
||||
|
||||
//region pure functions
|
||||
fun clone(): MapUnit {
|
||||
val toReturn = MapUnit()
|
||||
|
@ -507,6 +514,17 @@ class MapUnit {
|
|||
civInfo.addNotification("We have found a stash of [$amount] gold in the ruins!",tile.position, Color.GOLD)
|
||||
}
|
||||
|
||||
// Map of the surrounding area
|
||||
actions.add {
|
||||
val revealCenter = tile.getTilesAtDistance(ANCIENT_RUIN_MAP_REVEAL_OFFSET).random()
|
||||
val tilesToReveal = revealCenter
|
||||
.getTilesInDistance(ANCIENT_RUIN_MAP_REVEAL_RANGE)
|
||||
.filter { Random.nextFloat() < ANCIENT_RUIN_MAP_REVEAL_CHANCE }
|
||||
.map { it.position }
|
||||
civInfo.exploredTiles.addAll(tilesToReveal)
|
||||
civInfo.addNotification("We have found a crudely-drawn map in the ruins!", tile.position, Color.RED)
|
||||
}
|
||||
|
||||
(actions.random())()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue