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

Method rollStats

code/src/java/pcgen/core/PlayerCharacter.java:6553–6562  ·  view source on GitHub ↗

rollStats roll Globals.s_ATTRIBLONG.length random stats Method: 1: 4d6 Drop Lowest 2: 3d6 3: 5d6 Drop 2 Lowest 4: 4d6 reroll 1's drop lowest 5: 4d6 reroll 1's and 2's drop lowest 6: 3d6 +5 7: 5d6 Drop lowest and middle as per FREQ #458917 @param method the method to be used for rolling.

(final int method)

Source from the content-addressed store, hash-verified

6551 * @param method the method to be used for rolling.
6552 */
6553 public final void rollStats(final int method)
6554 {
6555 int aMethod = method;
6556 if (SettingsHandler.getGameAsProperty().get().isPurchaseStatMode())
6557 {
6558 aMethod = Constants.CHARACTER_STAT_METHOD_PURCHASE;
6559 }
6560 rollStats(aMethod, statFacet.getSet(id), SettingsHandler.getGameAsProperty().get().getCurrentRollingMethod(),
6561 false);
6562 }
6563
6564 public void rollStats(final int method, final Collection<PCStat> aStatList, final RollMethod rollMethod,
6565 boolean aSortedFlag)

Callers 1

PlayerCharacterMethod · 0.95

Calls 14

getGameAsPropertyMethod · 0.95
rollMethod · 0.95
setStatMethod · 0.95
getStatMethod · 0.95
isPurchaseStatModeMethod · 0.80
getAllStatsValueMethod · 0.80
getMethodRollMethod · 0.80
getSafeMethod · 0.80
getMethod · 0.65
getSetMethod · 0.65

Tested by

no test coverage detected