AdmiralRank.LORD_ADMIRAL -> "Hokst Fletsleydar"
}
Faction.VESTIGIUM -> when (this) {
- AdmiralRank.REAR_ADMIRAL -> "Lieutenant Colonel"
- AdmiralRank.VICE_ADMIRAL -> "Colonel"
- AdmiralRank.ADMIRAL -> "Brigadier General"
- AdmiralRank.HIGH_ADMIRAL -> "Major General"
- AdmiralRank.LORD_ADMIRAL -> "Lieutenant General"
+ AdmiralRank.REAR_ADMIRAL -> "Rear Marshal"
+ AdmiralRank.VICE_ADMIRAL -> "Vice Marshal"
+ AdmiralRank.ADMIRAL -> "Marshal"
+ AdmiralRank.HIGH_ADMIRAL -> "Grand Marshal"
+ AdmiralRank.LORD_ADMIRAL -> "Chief Marshal"
}
}
val navyName: String,
val polityName: String,
val demonymSingular: String,
+ val currencyName: String,
val shipPrefix: String,
val blurbDesc: TagConsumer<*>.() -> Unit,
) {
navyName = "Mechyrdian Star Fleet",
polityName = "Empire of Mechyrdia",
demonymSingular = "Mechyrdian",
+ currencyName = "throne",
shipPrefix = "CMS ", // Ciarstuos Mehurdiasi Štelnau
blurbDesc = {
p {
navyName = "Masra Draetsen Khoy'qan",
polityName = "Diadochus Masra Draetsen",
demonymSingular = "Diadochi",
+ currencyName = "sylaph",
shipPrefix = "", // The Diadochi don't use ship prefixes
blurbDesc = {
p {
navyName = "Isarnareyksk Styurnamariyn",
polityName = "Isarnareyksk Iunta",
demonymSingular = "Isarnareyksk",
+ currencyName = "mark",
shipPrefix = "ISMS ", // Isarnareyksk StyurnaMariyn nu Skyf
blurbDesc = {
p {
navyName = "Imperial States Space Force",
polityName = "Imperial States of America",
demonymSingular = "American",
+ currencyName = "dollar",
shipPrefix = "ISFC ", // Imperial Space Force Craft
blurbDesc = {
p {
td {
val opponent = recordOpponents[record.id]
if (opponent == null)
- +"(Deleted Admiral)"
+ i { +"(Deleted Admiral)" }
else
a(href = "/admiral/${opponent.id}") {
+opponent.fullName
section {
h2 { +"Manage Fleet" }
p {
- +"${admiral.fullName} currently owns ${admiral.money} Electro-Ducats, and earns ${admiral.rank.dailyWage} Electro-Ducats every day."
+ +"${admiral.fullName} currently owns ${admiral.money} ${admiral.faction.currencyName}s, and earns ${admiral.rank.dailyWage} ${admiral.faction.currencyName}s every day."
}
table {
tr {
}
td {
+ship.shipType.weightClass.sellPrice.toString()
- +" Electro-Ducats"
+ +" "
+ +admiral.faction.currencyName
+ +"s"
if (ship.status == DrydockStatus.Ready && !ship.shipType.weightClass.isUnique) {
br
a(href = "/admiral/${admiralId}/sell/${ship.id}") { +"Sell" }
}
td {
+st.weightClass.buyPrice.toString()
- +" Electro-Ducats"
+ +" "
+ +admiral.faction.currencyName
+ +"s"
br
a(href = "/admiral/${admiralId}/buy/${st.toUrlSlug()}") {
+"Buy"
section {
h1 { +"Are You Sure?" }
p {
- +"${admiral.fullName} is about to sell the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} Electro-Ducats."
+ +"${admiral.fullName} is about to sell the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} ${admiral.faction.currencyName}s."
}
form(method = FormMethod.get, action = "/admiral/${admiral.id}/manage") {
submitInput {
section {
h1 { +"Too Expensive" }
p {
- +"Unfortunately, the ${shipType.fullDisplayName} is out of ${admiral.fullName}'s budget. It costs ${shipType.weightClass.buyPrice} Electro-Ducats, and ${admiral.name} only has ${admiral.money} Electro-Ducats."
+ +"Unfortunately, the ${shipType.fullDisplayName} is out of ${admiral.fullName}'s budget. It costs ${shipType.weightClass.buyPrice} ${admiral.faction.currencyName}s, and ${admiral.name} only has ${admiral.money} ${admiral.faction.currencyName}s."
}
form(method = FormMethod.get, action = "/admiral/${admiral.id}/manage") {
submitInput {
section {
h1 { +"Are You Sure?" }
p {
- +"${admiral.fullName} is about to buy a ${shipType.fullDisplayName} for ${shipType.weightClass.buyPrice} Electro-Ducats."
+ +"${admiral.fullName} is about to buy a ${shipType.fullDisplayName} for ${shipType.weightClass.buyPrice} ${admiral.faction.currencyName}s."
}
form(method = FormMethod.get, action = "/admiral/${admiral.id}/manage") {
submitInput {