MISC: Add achievements for BN14 (#2140)

This commit is contained in:
catloversg
2025-05-21 04:32:13 +07:00
committed by GitHub
parent f1f7a50721
commit 90555a64e6
24 changed files with 751 additions and 60 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
import type { Board, BoardState, PointState } from "../Types";
import { Player } from "@player";
import { GoOpponent, GoColor } from "@enums";
import { GoOpponent, GoColor, FactionName } from "@enums";
import { newOpponentStats } from "../Constants";
import { getAllChains, getPlayerNeighbors } from "./boardAnalysis";
import { getKomi, resetAI } from "./goAI";
@@ -77,6 +77,10 @@ export function endGoGame(boardState: BoardState) {
Factions[factionName].setFavor(newFavor);
statusToUpdate.rep += repToAdd;
}
if (factionName === FactionName.Illuminati && statusToUpdate.winStreak >= 10) {
Player.giveAchievement("IPVGO_WINNING_STREAK");
}
}
statusToUpdate.nodePower +=