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
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:
parent
e1b97f972d
commit
9f38b1cc87
@ -1071,7 +1071,7 @@ const addCrewShip = (
|
|||||||
inventoryChanges: IInventoryChanges = {}
|
inventoryChanges: IInventoryChanges = {}
|
||||||
): IInventoryChanges => {
|
): IInventoryChanges => {
|
||||||
if (inventory.CrewShips.length != 0) {
|
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 {
|
} else {
|
||||||
const index = inventory.CrewShips.push({ ItemType: typeName }) - 1;
|
const index = inventory.CrewShips.push({ ItemType: typeName }) - 1;
|
||||||
inventoryChanges.CrewShips ??= [];
|
inventoryChanges.CrewShips ??= [];
|
||||||
@ -1086,7 +1086,7 @@ const addCrewShipHarness = (
|
|||||||
inventoryChanges: IInventoryChanges = {}
|
inventoryChanges: IInventoryChanges = {}
|
||||||
): IInventoryChanges => {
|
): IInventoryChanges => {
|
||||||
if (inventory.CrewShipHarnesses.length != 0) {
|
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 {
|
} else {
|
||||||
const index = inventory.CrewShipHarnesses.push({ ItemType: typeName }) - 1;
|
const index = inventory.CrewShipHarnesses.push({ ItemType: typeName }) - 1;
|
||||||
inventoryChanges.CrewShipHarnesses ??= [];
|
inventoryChanges.CrewShipHarnesses ??= [];
|
||||||
@ -1101,7 +1101,7 @@ const addMotorcycle = (
|
|||||||
inventoryChanges: IInventoryChanges = {}
|
inventoryChanges: IInventoryChanges = {}
|
||||||
): IInventoryChanges => {
|
): IInventoryChanges => {
|
||||||
if (inventory.Motorcycles.length != 0) {
|
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 {
|
} else {
|
||||||
const index = inventory.Motorcycles.push({ ItemType: typeName }) - 1;
|
const index = inventory.Motorcycles.push({ ItemType: typeName }) - 1;
|
||||||
inventoryChanges.Motorcycles ??= [];
|
inventoryChanges.Motorcycles ??= [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user