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 maximum spoofed MR to 100 when we need to fake the XP (#4246)

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

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

代码差异

1 个文件 +2 -1
Modified src/controllers/api/inventoryController.ts +2 -1
@@ -506,8 +506,9 @@ export const getInventoryResponse = async (
506 506 inventoryResponse.PlayerLevel = inventory.spoofMasteryRank;
507 507 if (!xpBasedLevelCapDisabled) {
508 508 // This client has not been patched to accept any mastery rank, need to fake the XP.
509 // Limiting this to MR 100 to avoid breakage: https://onlyg.it/OpenWF/SpaceNinjaServer/issues/4244
509 510 inventoryResponse.XPInfo = [];
510 let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 5030)) / (30 * 200);
511 let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 100)) / (30 * 200);
511 512 while (numFrames-- > 0) {
512 513 inventoryResponse.XPInfo.push({
513 514 ItemType: "/Lotus/Powersuits/Mag/Mag",