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

fix: don't override TauntHistory with skipAllDialogue (#2979)

Older versions used this for more than just Maroo's dialogue so we might be breaking stuff there Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2979 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

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

代码差异

1 个文件 +5 -4
Modified src/controllers/api/inventoryController.ts +5 -4
@@ -310,12 +310,13 @@ export const getInventoryResponse = async (
310 310 }
311 311
312 312 if (inventory.skipAllDialogue) {
313 inventoryResponse.TauntHistory = [
314 {
313 inventoryResponse.TauntHistory ??= [];
314 if (!inventoryResponse.TauntHistory.find(x => x.node == "TreasureTutorial")) {
315 inventoryResponse.TauntHistory.push({
315 316 node: "TreasureTutorial",
316 317 state: "TS_COMPLETED"
317 }
318 ];
318 });
319 }
319 320 for (const str of allDialogue) {
320 321 addString(inventoryResponse.NodeIntrosCompleted, str);
321 322 }