返回提交历史
Modified
src/controllers/api/playerSkillsController.ts
+22
-9
XFEstudio/SpaceNinjaServer
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>
8feb3a5b
代码差异
1 个文件
+22
-9
@@ -16,15 +16,28 @@ export const playerSkillsController: RequestHandler = async (req, res) => {
16
16
inventory.PlayerSkills[request.Skill as keyof IPlayerSkills]++;
17
17
18
18
const inventoryChanges: IInventoryChanges = {};
19
if (request.Skill == "LPS_COMMAND" && inventory.PlayerSkills.LPS_COMMAND == 9) {
20
const consumablesChanges = [
21
{
22
ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall",
23
ItemCount: 1
24
}
25
];
26
addConsumables(inventory, consumablesChanges);
27
inventoryChanges.Consumables = consumablesChanges;
19
if (request.Skill == "LPS_COMMAND") {
20
if (inventory.PlayerSkills.LPS_COMMAND == 9) {
21
const consumablesChanges = [
22
{
23
ItemType: "/Lotus/Types/Restoratives/Consumable/CrewmateBall",
24
ItemCount: 1
25
}
26
];
27
addConsumables(inventory, consumablesChanges);
28
inventoryChanges.Consumables = consumablesChanges;
29
}
30
} else if (request.Skill == "LPS_DRIFT_RIDING") {
31
if (inventory.PlayerSkills.LPS_DRIFT_RIDING == 9) {
32
const consumablesChanges = [
33
{
34
ItemType: "/Lotus/Types/Restoratives/ErsatzSummon",
35
ItemCount: 1
36
}
37
];
38
addConsumables(inventory, consumablesChanges);
39
inventoryChanges.Consumables = consumablesChanges;
40
}
28
41
}
29
42
30
43
await inventory.save();