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") {
 | 
					        } else if (ExportResources[typeName].productCategory == "KubrowPetEggs") {
 | 
				
			||||||
            const changes: IKubrowPetEggClient[] = [];
 | 
					            const changes: IKubrowPetEggClient[] = [];
 | 
				
			||||||
            if (quantity < 0) {
 | 
					            if (quantity < 0 || quantity > 100) {
 | 
				
			||||||
                throw new Error(`removal of KubrowPetEggs not handled`);
 | 
					                throw new Error(`unexpected acquisition quantity of KubrowPetEggs: ${quantity}`);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            for (let i = 0; i != quantity; ++i) {
 | 
					            for (let i = 0; i != quantity; ++i) {
 | 
				
			||||||
                const egg: IKubrowPetEggDatabase = {
 | 
					                const egg: IKubrowPetEggDatabase = {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user