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

Method overlayGear

code/src/java/pcgen/core/kit/KitGear.java:143–165  ·  view source on GitHub ↗
(KitGear gear)

Source from the content-addressed store, hash-verified

141 }
142
143 private void overlayGear(KitGear gear)
144 {
145 if (gear.quantity != null)
146 {
147 actingQuantity = gear.quantity;
148 }
149 if (gear.maxCost != null)
150 {
151 actingCost = gear.maxCost;
152 }
153 if (gear.mods != null)
154 {
155 actingMods.addAll(gear.mods);
156 }
157 if (gear.theLocationStr != null)
158 {
159 actingLocation = gear.theLocationStr;
160 }
161 if (gear.size != null)
162 {
163 actingSize = gear.size.get();
164 }
165 }
166
167 @Override
168 public boolean testApply(Kit aKit, PlayerCharacter aPC, List<String> warnings)

Callers 1

processLookupsMethod · 0.95

Calls 2

addAllMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected