use warn instead of error
All checks were successful
Build / build (22) (push) Successful in 37s
Build / build (20) (push) Successful in 1m13s
Build / build (18) (push) Successful in 1m16s
Build / build (18) (pull_request) Successful in 41s
Build / build (20) (pull_request) Successful in 1m13s
Build / build (22) (pull_request) Successful in 1m14s

This commit is contained in:
Sainan 2025-04-05 21:20:24 +02:00
parent e1b97f972d
commit 9f38b1cc87

View File

@ -1071,7 +1071,7 @@ const addCrewShip = (
inventoryChanges: IInventoryChanges = {}
): IInventoryChanges => {
if (inventory.CrewShips.length != 0) {
logger.error("refusing to add CrewShip because account already has one");
logger.warn("refusing to add CrewShip because account already has one");
} else {
const index = inventory.CrewShips.push({ ItemType: typeName }) - 1;
inventoryChanges.CrewShips ??= [];
@ -1086,7 +1086,7 @@ const addCrewShipHarness = (
inventoryChanges: IInventoryChanges = {}
): IInventoryChanges => {
if (inventory.CrewShipHarnesses.length != 0) {
logger.error("refusing to add CrewShipHarness because account already has one");
logger.warn("refusing to add CrewShipHarness because account already has one");
} else {
const index = inventory.CrewShipHarnesses.push({ ItemType: typeName }) - 1;
inventoryChanges.CrewShipHarnesses ??= [];
@ -1101,7 +1101,7 @@ const addMotorcycle = (
inventoryChanges: IInventoryChanges = {}
): IInventoryChanges => {
if (inventory.Motorcycles.length != 0) {
logger.error("refusing to add Motorcycle because account already has one");
logger.warn("refusing to add Motorcycle because account already has one");
} else {
const index = inventory.Motorcycles.push({ ItemType: typeName }) - 1;
inventoryChanges.Motorcycles ??= [];