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: add 4 to nemesis passcode choices

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

代码差异

1 个文件 +1 -1
Modified src/helpers/nemesisHelpers.ts +1 -1
@@ -260,7 +260,7 @@ export const getInfNodes = (manifest: INemesisManifest, rank: number): IInfNode[
260 260 // Get a parazon 'passcode' based on the nemesis fingerprint so it's always the same for the same nemesis.
261 261 export const getNemesisPasscode = (nemesis: { fp: bigint; Faction: TNemesisFaction }): number[] => {
262 262 const rng = new SRng(nemesis.fp);
263 const choices = [0, 1, 2, 3, 5, 6, 7];
263 const choices = [0, 1, 2, 3, 4, 5, 6, 7];
264 264 let choiceIndex = rng.randomInt(0, choices.length - 1);
265 265 const passcode = [choices[choiceIndex]];
266 266 if (nemesis.Faction != "FC_INFESTATION") {