-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Redid the McdwEnchantmentsConfig and McdwEnchantmentSettingsConfig to be easier to read and use - Removed EnchantStatsID.java, as it is no longer needed - Moved the following values from the McdwEnchantmentSettingsConfig to the McdwEnchantmentsConfig - `ENIGMA_RESONATOR_DIVISOR` -> `offset` value for `ENIGMA_RESONATOR` - `DYNAMO_STACK_CAP` -> `offset` value for `DYNAMO` - `ENCHANTMENT_TRIGGER_BASE_CHANCE` -> `procChance` value in proc-able enchantments - `HEALING_FACTOR` -> `offset` value for healing enchantments - `directDamageEnchantmentMultiplier` called the same thing, but moved to top of McdwEnchantmentsConfig - Propagated necessary changes throughout project - Configs will be reset; BACK UP YOUR CONFIG __BEFORE__ UPDATING
- Loading branch information
1 parent
63bed2f
commit 202c424
Showing
66 changed files
with
1,117 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/main/java/chronosacaria/mcdw/configs/EnchantmentIDConfigHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package chronosacaria.mcdw.configs; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public class EnchantmentIDConfigHelper { | ||
List<String> comment; | ||
float offset = 0.0f; | ||
boolean isEnabled = true; | ||
boolean isAvailableForEnchantedBookOffer = true; | ||
boolean isAvailableForRandomSelection = true; | ||
int maxLevel = 3; | ||
@Nullable Integer procChance = 0; | ||
|
||
public float mcdw$getOffset(){ | ||
return offset; | ||
} | ||
public boolean mcdw$getIsEnabled() { | ||
return isEnabled; | ||
} | ||
public boolean mcdw$getIsAvailableForEnchantedBookOffer() { | ||
return isAvailableForEnchantedBookOffer; | ||
} | ||
public boolean mcdw$getIsAvailableForRandomSelection() { | ||
return isAvailableForRandomSelection; | ||
} | ||
public int mcdw$getMaxLevel() { | ||
return maxLevel; | ||
} | ||
public @Nullable Integer mcdw$getProcChance() { | ||
return procChance; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public EnchantmentIDConfigHelper(){ | ||
} | ||
|
||
public EnchantmentIDConfigHelper(boolean isEnabled, boolean isAvailableForEnchantedBookOffer, boolean isAvailableForRandomSelection, int maxLevel, @Nullable Integer procChance) { | ||
this.isEnabled = isEnabled; | ||
this.isAvailableForEnchantedBookOffer = isAvailableForEnchantedBookOffer; | ||
this.isAvailableForRandomSelection = isAvailableForRandomSelection; | ||
this.maxLevel = maxLevel; | ||
this.procChance = procChance; | ||
} | ||
|
||
public EnchantmentIDConfigHelper(List<String> comment, boolean isEnabled, boolean isAvailableForEnchantedBookOffer, boolean isAvailableForRandomSelection, int maxLevel, @Nullable Integer procChance, float effectOffset) { | ||
this.comment = comment; | ||
this.isEnabled = isEnabled; | ||
this.isAvailableForEnchantedBookOffer = isAvailableForEnchantedBookOffer; | ||
this.isAvailableForRandomSelection = isAvailableForRandomSelection; | ||
this.maxLevel = maxLevel; | ||
this.procChance = procChance; | ||
this.offset = effectOffset; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.