Skip to content

Commit

Permalink
Grand Master EP/CS bonuses
Browse files Browse the repository at this point in the history
  • Loading branch information
cracrayol committed Nov 10, 2019
1 parent 74435f2 commit 45da34e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/ts/model/actionChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,14 @@ class ActionChart {
}
}

// Grand Master level bonus
if (state.book.isGrandMasterBook() && this.disciplines.length > 4) {
bonuses.push({
concept: translations.text("kaiLevel"),
increment: (this.disciplines.length - 4),
});
}

return bonuses;
}

Expand Down Expand Up @@ -765,6 +773,14 @@ class ActionChart {
bonuses.push(c);
}

// Grand Master level bonus
if (state.book.isGrandMasterBook() && this.disciplines.length > 4) {
bonuses.push({
concept: translations.text("kaiLevel"),
increment: (this.disciplines.length - 4) * 2,
});
}

return bonuses;
}

Expand Down
2 changes: 2 additions & 0 deletions src/ts/views/viewsUtils/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Translations {
"circleSolaris" : "Círculo de Solaris",
"circleSpirit" : "Círculo del Espíritu",
"circles" : "Círculos de la Ciencia:",
"kaiLevel" : "Kai Level", // TODO Translate
"dropMoney" : "Dejar dinero",
"pickMoney" : "Coger dinero",
"amount" : "Cantidad",
Expand Down Expand Up @@ -391,6 +392,7 @@ class Translations {
circleLight : "Circle of Light",
circleSolaris : "Circle of Solaris",
circleSpirit : "Circle of the Spirit",
kaiLevel : "Kai Level",
dropMoney : "Drop money",
pickMoney : "Pick money",
amount : "Amount",
Expand Down

0 comments on commit 45da34e

Please sign in to comment.