forked from OpenWF/SpaceNinjaServer
chore: limit number of kubrow eggs that can be acquired at once
This commit is contained in:
parent
6dc54ed893
commit
1b7b5a28bc
@ -308,8 +308,8 @@ export const addItem = async (
|
||||
};
|
||||
} else if (ExportResources[typeName].productCategory == "KubrowPetEggs") {
|
||||
const changes: IKubrowPetEggClient[] = [];
|
||||
if (quantity < 0) {
|
||||
throw new Error(`removal of KubrowPetEggs not handled`);
|
||||
if (quantity < 0 || quantity > 100) {
|
||||
throw new Error(`unexpected acquisition quantity of KubrowPetEggs: ${quantity}`);
|
||||
}
|
||||
for (let i = 0; i != quantity; ++i) {
|
||||
const egg: IKubrowPetEggDatabase = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user