Adds proficiency bonus to monster detail.
This commit is contained in:
@@ -231,6 +231,7 @@ struct MonsterDetail: View {
|
|||||||
|
|
||||||
ResistancesAndImmunitiesView(monster: monster)
|
ResistancesAndImmunitiesView(monster: monster)
|
||||||
|
|
||||||
|
Group {
|
||||||
// Languages
|
// Languages
|
||||||
if (!monsterLanguagesDescription.isEmpty) {
|
if (!monsterLanguagesDescription.isEmpty) {
|
||||||
LabeledField("Languages") {
|
LabeledField("Languages") {
|
||||||
@@ -243,8 +244,11 @@ struct MonsterDetail: View {
|
|||||||
LabeledField("Challenge") {
|
LabeledField("Challenge") {
|
||||||
Text(monsterChallengeRatingDescription)
|
Text(monsterChallengeRatingDescription)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: add proficiency bonus
|
// Proficiency Bonus
|
||||||
|
LabeledField("Proficiency Bonus") {
|
||||||
|
Text(String(monster.proficiencyBonus))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abilities
|
// Abilities
|
||||||
@@ -261,7 +265,7 @@ struct MonsterDetail: View {
|
|||||||
if (monsterActions.count > 0) {
|
if (monsterActions.count > 0) {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Text("Actions")
|
Text("Actions")
|
||||||
.fontWeight(.bold)
|
.font(.system(size: 24, weight: .bold))
|
||||||
ForEach(monsterActions) { action in
|
ForEach(monsterActions) { action in
|
||||||
VStack {
|
VStack {
|
||||||
Markdown(Document(action.renderedText(monster)))
|
Markdown(Document(action.renderedText(monster)))
|
||||||
@@ -275,7 +279,7 @@ struct MonsterDetail: View {
|
|||||||
if (monsterLegendaryActions.count > 0) {
|
if (monsterLegendaryActions.count > 0) {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
Text("Legendary Actions")
|
Text("Legendary Actions")
|
||||||
.fontWeight(.bold)
|
.font(.system(size: 20, weight: .bold))
|
||||||
ForEach(monsterLegendaryActions) { action in
|
ForEach(monsterLegendaryActions) { action in
|
||||||
VStack {
|
VStack {
|
||||||
Markdown(Document(action.renderedText(monster)))
|
Markdown(Document(action.renderedText(monster)))
|
||||||
@@ -284,7 +288,7 @@ struct MonsterDetail: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.foregroundColor(kTextColor)
|
.foregroundColor(kTextColor)
|
||||||
|
|||||||
Reference in New Issue
Block a user