XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: reduce inventory byte size when faking XP (#2968)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2968 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

00acaed6
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified src/controllers/api/inventoryController.ts +2 -2
@@ -353,11 +353,11 @@ export const getInventoryResponse = async (
353 353 if (!xpBasedLevelCapDisabled) {
354 354 // This client has not been patched to accept any mastery rank, need to fake the XP.
355 355 inventoryResponse.XPInfo = [];
356 let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 5030)) / 6000;
356 let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 5030)) / (30 * 200);
357 357 while (numFrames-- > 0) {
358 358 inventoryResponse.XPInfo.push({
359 359 ItemType: "/Lotus/Powersuits/Mag/Mag",
360 XP: 1_600_000
360 XP: 900_000 // Enough for rank 30 as per https://wiki.warframe.com/w/Affinity
361 361 });
362 362 }
363 363 }