[TASK] style boat damage screen

This commit is contained in:
Marie Birner
2023-09-28 17:31:20 +02:00
committed by philipp
parent a544d5d060
commit 9fbd3d970b
3 changed files with 69 additions and 42 deletions

View File

@ -92,7 +92,8 @@ function reloadPage() {
}
function setMaxAmountRowers(rowers: number, isShipmasterSteering='false') {
let curSelection = choiceObjects['newrower'].getValue(true);
if(choiceObjects['newrower']) {
let curSelection = choiceObjects['newrower'].getValue(true);
let amount_to_delete = (<any>curSelection).length - rowers;
if (amount_to_delete > 0){
@ -135,6 +136,7 @@ function setMaxAmountRowers(rowers: number, isShipmasterSteering='false') {
only_steering.parentElement?.parentElement?.parentElement?.classList.add('opacity-50');
}
}
}
}
function initBoatActions() {