From 8feb3a5b3c36e12c65a824a526487af635c882c4 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sun, 13 Jul 2025 21:08:14 -0700 Subject: [PATCH] feat: give kaithe summon at riding level 9 (#2483) Closes #2480 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2483 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/controllers/api/playerSkillsController.ts | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/controllers/api/playerSkillsController.ts b/src/controllers/api/playerSkillsController.ts index 05319b35..d160686f 100644 --- a/src/controllers/api/playerSkillsController.ts +++ b/src/controllers/api/playerSkillsController.ts @@ -16,15 +16,28 @@ export const playerSkillsController: RequestHandler = async (req, res) => { inventory.PlayerSkills[request.Skill as keyof IPlayerSkills]++; const inventoryChanges: IInventoryChanges = {}; - if (request.Skill == "LPS_COMMAND" && inventory.PlayerSkills.LPS_COMMAND == 9) { - const consumablesChanges = [ - { - ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall", - ItemCount: 1 - } - ]; - addConsumables(inventory, consumablesChanges); - inventoryChanges.Consumables = consumablesChanges; + if (request.Skill == "LPS_COMMAND") { + if (inventory.PlayerSkills.LPS_COMMAND == 9) { + const consumablesChanges = [ + { + ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall", + ItemCount: 1 + } + ]; + 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();