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

Method setPurchaseMethodName

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

Set the purchase mode method name. @param argMethodName

(final String argMethodName)

Source from the content-addressed store, hash-verified

1207 * @param argMethodName
1208 */
1209 public void setPurchaseMethodName(final String argMethodName)
1210 {
1211 if (!argMethodName.isEmpty())
1212 {
1213 setRollMethod(Constants.CHARACTER_STAT_METHOD_PURCHASE);
1214 }
1215
1216 purchaseMethodName = argMethodName;
1217 gamemodePrefsContext.setProperty("purchaseMethodName", argMethodName); //$NON-NLS-1$
1218 }
1219
1220 /**
1221 * Get the highest stat score that can be purchased free.

Callers 3

setRollMethodMethod · 0.95
onCopyMethod · 0.95

Calls 3

setRollMethodMethod · 0.95
setPropertyMethod · 0.80
isEmptyMethod · 0.65

Tested by

no test coverage detected