335 BLUDGEN(4705,
"bludgeon", 4708, 7687, 7699, 7711,
new FightType[]{
345 private final int id;
414 for (
int index = 0; index < oldTypes.length; index++) {
415 if (newTypes.length == index) {
421 result = newTypes[index];
425 if (oldTypes[index] == player.
getCombat().getFightType()) {
429 if (newControlled != oldControlled) {
433 result = newTypes[index];
438 if (result ==
null) {
440 result = newTypes[newTypes.length - 1];
442 result = newTypes[1];
520 if (type.getButton() == button) {
521 return Optional.of(type);
524 return Optional.empty();
529 if (weaponInterface.specialButton == button) {
538 private static final Object2ObjectMap<String, WeaponInterface>
newNameToValue
539 =
new Object2ObjectOpenHashMap<>(
values.length);
547 newNameToValue.putIfAbsent(value.getNewDefName(), value);