This commit is contained in:
John Yorke committed 2020-10-26 20:43:15 -03:00
1 parent cbb61ebcbe
commit 82de9e1aa0
74 files changed
+3485 -3415

No files matched your search

@@ -6,36 +6,64 @@ import thaumcraft.api.wands.FocusUpgradeType;
public class ConfigHandler
{
public static Configuration config;
public static Configuration config;
public static boolean UPDATE_HANDLER = true;
public static boolean RESEARCH_TAGS = true;
public static boolean CUSTOM_RESEARCH_TAB_BACK = false;
public static double MAGE_MACE_DMG_INC_BASE = 8.0D;
public static float WARP_WAND_REFRESH_BASE = 10000.0F;
public static int FOCUS_UPGRADES_START_ID = 64;
public static boolean NOTIFY_UPDATE = true;
public static void init ()
{
TaintedMagic.log.info("Loading config");
public static boolean RESEARCH_TAGS = true;
public static boolean CUSTOM_RESEARCH_TAB_BACK = false;
config.load();
public static double MAGE_MACE_DMG_INC_BASE = 8.0D;
UPDATE_HANDLER = config.getBoolean("UPDATE_HANDLER", "misc", true, "Setting this to false will disable ingame chat Tainted Magic update notifications.");
public static float WARP_WAND_REFRESH_BASE = 10000.0F;
RESEARCH_TAGS = config.getBoolean("RESEARCH_TAGS", "research", true, "Setting this to false will disable the '[categoryTM]' tag on Tainted Magic research items.");
public static int SANITY_UPGRADE_ID = 64;
public static int ANTIBODY_UPGRADE_ID = 65;
public static int CORROSIVE_UPGRADE_ID = 66;
public static int PERSISTENT_UPGRADE_ID = 67;
public static int DIFFUSION_UPGRADE_ID = 68;
CUSTOM_RESEARCH_TAB_BACK = config.getBoolean("CUSTOM_RESEARCH_TAB_BACK", "research", false, "Setting this to true will bring back the old Tainted Magic research tab background.");
public static void initConfig ()
{
TaintedMagic.log.info("Loading config...");
MAGE_MACE_DMG_INC_BASE = (double) config
.getFloat("MAGE_MACE_DMG_INC_BASE", "misc", 8.0F, 1.0F, 100.0F, "Defines the base amount of damage to increase wand / staff attack damage by when the Mage's Mace focus is equipped.");
config.load();
WARP_WAND_REFRESH_BASE = config
.getFloat("WARP_WAND_REFRESH_BASE", "misc", 10000.0F, 100.0F, 100000.0F, "Defines the base refresh period in ticks for the Warpwood Wand. The delay period between refreshs is calculated by dividing this number by the amount of permanant warp the player has accumulated.");
NOTIFY_UPDATE = config.getBoolean("NOTIFY_UPDATE", "misc", true,
"Setting this to false will disable Tainted Magic update notifications.");
FOCUS_UPGRADES_START_ID = config.getInt("FOCUS_UPGRADES_START_ID", "misc", 64, FocusUpgradeType.types.length + 1, Short.MAX_VALUE
- 1, "Defines the starting ID for categoryTM focus upgrades. The first upgrade will be registered under this ID, the next under this ID +1, etc.");
MAGE_MACE_DMG_INC_BASE = (double) config.getFloat("MAGE_MACE_DMG_INC_BASE", "misc", 8.0F, 1.0F, 100.0F,
"Defines the base amount of damage to increase wand / staff attack damage by "
+ "when the Mage's Mace focus is equipped.");
config.save();
}
RESEARCH_TAGS = config.getBoolean("RESEARCH_TAGS", "research", true,
"Setting this to false will disable the '[TM]' tag on Tainted Magic research items.");
CUSTOM_RESEARCH_TAB_BACK = config.getBoolean("CUSTOM_RESEARCH_TAB_BACK", "research", false,
"Setting this to true will bring back the old Tainted Magic research tab background.");
WARP_WAND_REFRESH_BASE = config.getFloat("WARP_WAND_REFRESH_BASE", "wands_and_foci", 10000.0F, 100.0F, 100000.0F,
"Defines the base refresh period in ticks for the Warpwood Wand. The delay period between vis refreshes "
+ "is calculated by dividing this number by the amount of permanent warp the player has accumulated.");
/**
* Focus upgrade IDs
*/
SANITY_UPGRADE_ID = config.getInt("SANITY_UPGRADE_ID", "wands_and_foci", 64, FocusUpgradeType.types.length + 1,
Short.MAX_VALUE, "The ID for the Sanity focus upgrade.");
ANTIBODY_UPGRADE_ID = config.getInt("ANTIBODY_UPGRADE_ID", "wands_and_foci", 65, FocusUpgradeType.types.length + 1,
Short.MAX_VALUE, "The ID for the Antibody focus upgrade.");
CORROSIVE_UPGRADE_ID = config.getInt("CORROSIVE_UPGRADE_ID", "wands_and_foci", 66, FocusUpgradeType.types.length + 1,
Short.MAX_VALUE, "The ID for the Corrosive focus upgrade.");
PERSISTENT_UPGRADE_ID = config.getInt("PERSISTENT_UPGRADE_ID", "wands_and_foci", 67, FocusUpgradeType.types.length + 1,
Short.MAX_VALUE, "The ID for the Persistent focus upgrade.");
DIFFUSION_UPGRADE_ID = config.getInt("DIFFUSION_UPGRADE_ID", "wands_and_foci", 68, FocusUpgradeType.types.length + 1,
Short.MAX_VALUE, "The ID for the Diffusion focus upgrade.");
config.save();
}
}