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

Method applyChoice

code/src/java/plugin/lsttokens/add/EquipToken.java:179–185  ·  view source on GitHub ↗
(CDOMObject owner, Equipment choice, PlayerCharacter pc)

Source from the content-addressed store, hash-verified

177 }
178
179 @Override
180 public void applyChoice(CDOMObject owner, Equipment choice, PlayerCharacter pc)
181 {
182 Equipment bEquipment = choice.clone();
183 bEquipment.setQty(1);
184 pc.addEquipment(bEquipment);
185 }
186
187 @Override
188 public boolean allow(Equipment choice, PlayerCharacter pc, boolean allowStack)

Callers

nothing calls this directly

Calls 3

setQtyMethod · 0.95
addEquipmentMethod · 0.65
cloneMethod · 0.45

Tested by

no test coverage detected