forked from OpenWF/SpaceNinjaServer
Compare commits
No commits in common. "1d813a1b1b04f1a969f8054057f517213752216f" and "60236a115475a282d503d28820078e3c3ba914af" have entirely different histories.
1d813a1b1b
...
60236a1154
@ -118,7 +118,7 @@ export const claimCompletedRecipeController: RequestHandler = async (req, res) =
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pet.Details!.Status = canSetActive ? Status.StatusAvailable : Status.StatusStasis;
|
pet.Details!.Status = canSetActive ? Status.StatusAvailable : Status.StatusIncubating;
|
||||||
} else if (recipe.secretIngredientAction != "SIA_UNBRAND") {
|
} else if (recipe.secretIngredientAction != "SIA_UNBRAND") {
|
||||||
InventoryChanges = {
|
InventoryChanges = {
|
||||||
...InventoryChanges,
|
...InventoryChanges,
|
||||||
|
@ -1525,8 +1525,7 @@ export const applyClientEquipmentUpdates = (
|
|||||||
gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
|
gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
|
||||||
const item = category.id(fromOid(ItemId));
|
const item = category.id(fromOid(ItemId));
|
||||||
if (!item) {
|
if (!item) {
|
||||||
logger.warn(`Skipping unknown ${categoryName} item: id ${fromOid(ItemId)} not found`);
|
throw new Error(`No item with id ${fromOid(ItemId)} in ${categoryName}`);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (XP) {
|
if (XP) {
|
||||||
|
@ -233,7 +233,7 @@ export const isStoreItem = (type: string): boolean => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const toStoreItem = (type: string): string => {
|
export const toStoreItem = (type: string): string => {
|
||||||
if (type.startsWith("/Lotus/Types/Boosters/")) {
|
if (type.startsWith("/Lotus/Types/StoreItems/Boosters/")) {
|
||||||
const boosterEntry = Object.entries(ExportBoosters).find(arr => arr[1].typeName == type);
|
const boosterEntry = Object.entries(ExportBoosters).find(arr => arr[1].typeName == type);
|
||||||
if (boosterEntry) {
|
if (boosterEntry) {
|
||||||
return boosterEntry[0];
|
return boosterEntry[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user