Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JFranklin3000 committed Aug 28, 2024
1 parent ce808ae commit adb7319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/helpers/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ preLocalize("energonTypes");
// Vehicle Roles
E20.vehicleRoles = {
driver: "E20.VehicleRoleDriver",
passenger: "E20.VehicleRolePassenger",
passenger: "E20.VehicleRolePassenger",
};
preLocalize("vehicleRoles");

Expand Down
5 changes: 3 additions & 2 deletions module/sheet-handlers/power-ranger-handler.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export async function onVehicleRoleUpdate(event, actorSheet) {
numberOfType++;
}
}

if (newRole == 'driver') {
if (numberOfType < actor.system.crew.numDrivers) {
updateValue = true;
Expand All @@ -100,9 +101,9 @@ export async function onVehicleRoleUpdate(event, actorSheet) {

await actor.update ({
[updateString]: newRole,
})
});
} else {
ui.notifications.error(game.i18n.localize('E20.VehicleRoleError'));
actor.render()
actor.render();
}
}

0 comments on commit adb7319

Please sign in to comment.