MCPcopy Create free account
hub / github.com/PCGen/pcgen / isPurchaseStatMode

Method isPurchaseStatMode

code/src/java/pcgen/core/GameMode.java:1370–1380  ·  view source on GitHub ↗

Returns true if we are in a stat purchase mode. @return true if we are in a stat purchase mode

()

Source from the content-addressed store, hash-verified

1368 * @return true if we are in a stat purchase mode
1369 */
1370 public boolean isPurchaseStatMode()
1371 {
1372 // Can't have purchase mode if no costs specified
1373 if ((pointBuyStatCosts == null) || (pointBuyStatCosts.isEmpty())
1374 || (getRollMethod() != Constants.CHARACTER_STAT_METHOD_PURCHASE) || (purchaseMethodName.isEmpty()))
1375 {
1376 return false;
1377 }
1378
1379 return getPurchaseMethodByName(purchaseMethodName) != null;
1380 }
1381
1382 /**
1383 *

Callers 10

getBonusContainerListMethod · 0.95
validateAddLevelMethod · 0.80
refreshRollMethodMethod · 0.80
rollStatsMethod · 0.80
recalcSkillPointModMethod · 0.80

Calls 3

getRollMethodMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected