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

Method setCostMod

code/src/java/pcgen/core/Equipment.java:902–913  ·  view source on GitHub ↗

Set cost mod @param aString the cost modifier in String form

(final String aString)

Source from the content-addressed store, hash-verified

900 * @param aString the cost modifier in String form
901 */
902 public void setCostMod(final String aString)
903 {
904
905 try
906 {
907 costMod = new BigDecimal(aString);
908 }
909 catch (NumberFormatException e)
910 {
911 costMod = BigDecimal.ZERO;
912 }
913 }
914
915 /**
916 * Set cost mod

Callers 5

selectClothesMethod · 0.95
loadMethod · 0.95
addModToEquipmentMethod · 0.80
setCostMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected