forked from OpenWF/SpaceNinjaServer
		
	feat: give kaithe summon at riding level 9 (#2483)
Closes #2480 Reviewed-on: OpenWF/SpaceNinjaServer#2483 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									66f3d65d77
								
							
						
					
					
						commit
						8feb3a5b3c
					
				@ -16,15 +16,28 @@ export const playerSkillsController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
    inventory.PlayerSkills[request.Skill as keyof IPlayerSkills]++;
 | 
					    inventory.PlayerSkills[request.Skill as keyof IPlayerSkills]++;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const inventoryChanges: IInventoryChanges = {};
 | 
					    const inventoryChanges: IInventoryChanges = {};
 | 
				
			||||||
    if (request.Skill == "LPS_COMMAND" && inventory.PlayerSkills.LPS_COMMAND == 9) {
 | 
					    if (request.Skill == "LPS_COMMAND") {
 | 
				
			||||||
        const consumablesChanges = [
 | 
					        if (inventory.PlayerSkills.LPS_COMMAND == 9) {
 | 
				
			||||||
            {
 | 
					            const consumablesChanges = [
 | 
				
			||||||
                ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall",
 | 
					                {
 | 
				
			||||||
                ItemCount: 1
 | 
					                    ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall",
 | 
				
			||||||
            }
 | 
					                    ItemCount: 1
 | 
				
			||||||
        ];
 | 
					                }
 | 
				
			||||||
        addConsumables(inventory, consumablesChanges);
 | 
					            ];
 | 
				
			||||||
        inventoryChanges.Consumables = consumablesChanges;
 | 
					            addConsumables(inventory, consumablesChanges);
 | 
				
			||||||
 | 
					            inventoryChanges.Consumables = consumablesChanges;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    } else if (request.Skill == "LPS_DRIFT_RIDING") {
 | 
				
			||||||
 | 
					        if (inventory.PlayerSkills.LPS_DRIFT_RIDING == 9) {
 | 
				
			||||||
 | 
					            const consumablesChanges = [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                    ItemType: "/Lotus/Types/Restoratives/ErsatzSummon",
 | 
				
			||||||
 | 
					                    ItemCount: 1
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            ];
 | 
				
			||||||
 | 
					            addConsumables(inventory, consumablesChanges);
 | 
				
			||||||
 | 
					            inventoryChanges.Consumables = consumablesChanges;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await inventory.save();
 | 
					    await inventory.save();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user