DOCS: Fix some IPvGO docs that do not reflect winstreak rep converted to favor (#2463)

This commit is contained in:
Michael Ficocelli
2026-02-03 07:55:38 -05:00
committed by GitHub
parent ba1c6f3818
commit b9068ab328
5 changed files with 40 additions and 11 deletions

View File

@@ -1,10 +1,13 @@
import type { BoardState, OpponentStats } from "./Types"; import type { BoardState, OpponentStats } from "./Types";
import type { GoOpponent } from "@enums"; import { GoOpponent } from "@enums";
import { getRecordKeys, PartialRecord } from "../Types/Record"; import { getRecordKeys, PartialRecord } from "../Types/Record";
import { resetGoPromises } from "./boardAnalysis/goAI"; import { resetGoPromises } from "./boardAnalysis/goAI";
import { getNewBoardState } from "./boardState/boardState"; import { getNewBoardState } from "./boardState/boardState";
import { EventEmitter } from "../utils/EventEmitter"; import { EventEmitter } from "../utils/EventEmitter";
import { Player } from "@player";
import { AugmentationName } from "@enums";
import { newOpponentStats } from "./Constants";
export const getEmptyHighlightedPoints = (size: number = 7) => { export const getEmptyHighlightedPoints = (size: number = 7) => {
return Array.from({ length: size }, () => Array.from({ length: size }, () => null)); return Array.from({ length: size }, () => Array.from({ length: size }, () => null));
@@ -20,6 +23,15 @@ export class GoObject {
moveOrCheatViaApi = false; moveOrCheatViaApi = false;
prestigeAugmentation() { prestigeAugmentation() {
if (
Player.bitNodeN === 14 &&
Player.hasAugmentation(AugmentationName.TheRedPill) &&
!Go.stats[GoOpponent.w0r1d_d43m0n]
) {
// Show the secret opponent on the go stats page in BN14 if the player has TRP
Go.stats[GoOpponent.w0r1d_d43m0n] = newOpponentStats();
}
// Clear out stats except for reputation as favor from winstreaks on prestige
for (const opponent of getRecordKeys(Go.stats)) { for (const opponent of getRecordKeys(Go.stats)) {
const stats = Go.stats[opponent]; const stats = Go.stats[opponent];
if (!stats) { if (!stats) {

View File

@@ -125,10 +125,29 @@ export const GoHistoryPage = (): React.ReactElement => {
} }
> >
<TableRow> <TableRow>
<TableCell className={classes.cellNone}>Reputation from winstreaks:</TableCell> <Tooltip
<TableCell className={classes.cellNone}> title={
{data.rep ?? 0} {data.rep === getMaxRep() ? "(max)" : ""} <>
</TableCell> Two wins in a row against an opponent will give you {getMaxRep() / 200} reputation converted
to favor with that faction (up to a max of {getMaxRep()} reputation), if you are a member of
that faction.
<br />
The reputation is immediately applied as favor, meaning it will increase reputation gain
right away without needing an install.
</>
}
>
<>
<TableCell className={classes.cellNone}>
Rep converted to favor
<br />
from winstreaks:
</TableCell>
<TableCell className={classes.cellNone}>
{data.rep ?? 0} {data.rep === getMaxRep() ? "(max)" : ""}
</TableCell>
</>
</Tooltip>
</TableRow> </TableRow>
</Tooltip> </Tooltip>
</TableBody> </TableBody>

View File

@@ -144,7 +144,7 @@ export const GoInstructionsPage = (): React.ReactElement => {
<br /> <br />
<br /> <br />
Two wins in a row against an opponent will give you {getMaxRep() / 200} rep converted to favor with that Two wins in a row against an opponent will give you {getMaxRep() / 200} rep converted to favor with that
faction (up to a max of {getMaxRep()} favor), if you are a member of that faction. faction (up to a max of {getMaxRep()} reputation), if you are a member of that faction.
<br /> <br />
The rep is immediately applied as favor, meaning it will increase reputation gain right away without The rep is immediately applied as favor, meaning it will increase reputation gain right away without
needing an install. needing an install.

View File

@@ -100,7 +100,7 @@ export const GoScorePowerSummary = ({ finalScore, opponent }: Props) => {
title={ title={
<> <>
Two wins in a row against an opponent will give you {getMaxRep() / 200} rep converted to favor with that Two wins in a row against an opponent will give you {getMaxRep() / 200} rep converted to favor with that
faction (up to a max of {getMaxRep()} favor), if you are a member of that faction. faction (up to a max of {getMaxRep()} reputation), if you are a member of that faction.
<br /> <br />
The rep is immediately applied as favor, meaning it will increase reputation gain right away without The rep is immediately applied as favor, meaning it will increase reputation gain right away without
needing an install. needing an install.
@@ -109,9 +109,7 @@ export const GoScorePowerSummary = ({ finalScore, opponent }: Props) => {
> >
<Typography className={`${classes.inlineFlexBox} ${classes.keyText}`}> <Typography className={`${classes.inlineFlexBox} ${classes.keyText}`}>
<span>Winstreak Bonus: </span> <span>Winstreak Bonus: </span>
<span> <span>{getMaxRep() / 200} reputation converted to favor</span>
{getMaxRep() / 200} reputation converted to favor with {opponent}
</span>
</Typography> </Typography>
</Tooltip> </Tooltip>
) : ( ) : (

View File

@@ -568,7 +568,7 @@ export function CharacterStats(): React.ReactElement {
value: Player.activeSourceFileLvl(14) ? 2 * currentNodeMults.GoPower : currentNodeMults.GoPower, value: Player.activeSourceFileLvl(14) ? 2 * currentNodeMults.GoPower : currentNodeMults.GoPower,
}, },
{ {
mult: "IPvGO Max Favor", mult: "IPvGO Max Rep Converted to Favor",
value: getMaxRep(), value: getMaxRep(),
isNumber: true, isNumber: true,
}, },