mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 14:12:02 +00:00
Fix path warning showing up unnecessarily
This commit is contained in:
parent
c70ef0a60e
commit
384e3296bd
@ -1,8 +1,9 @@
|
||||
import { GameMechanicState } from "../game-mechanics/index";
|
||||
|
||||
function showSecondPreferredWarning(currTree) {
|
||||
const canPickSecond = currTree.allowedDimPathCount === 2 && currTree.currDimPathCount < 2;
|
||||
// Show a warning if the player can choose the second preferred dimension path and hasn't yet done so.
|
||||
if (currTree.allowedDimPathCount === 2 && currTree.currDimPathCount < 2) {
|
||||
if (canPickSecond && TimeStudy.preferredPaths.dimension.path.length < 2) {
|
||||
GameUI.notify.error("You haven't selected a second preferred Dimension path.");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user