mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d90755aea | ||
|
|
15463a5a68 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ public class EMTConfigHandler {
|
|||||||
public static final String RESEARCH = "Research";
|
public static final String RESEARCH = "Research";
|
||||||
public static final String VALUES = "Numeric Values";
|
public static final String VALUES = "Numeric Values";
|
||||||
public static final String OUTPUTS = "Essentia Generator Outputs";
|
public static final String OUTPUTS = "Essentia Generator Outputs";
|
||||||
|
|
||||||
|
private static final String IGNORED_UNDER_GTNH = "Ignored when GTNH (dreamcraft) is installed: "
|
||||||
|
+ "dungeon loot is controlled by config/TooMuchLoot/loot/dungeonChest.xml in GTNH.";
|
||||||
|
|
||||||
public static Configuration config;
|
public static Configuration config;
|
||||||
public static int etherealProcessorBaseSpeed;
|
public static int etherealProcessorBaseSpeed;
|
||||||
public static int etherealProcessorBonus;
|
public static int etherealProcessorBonus;
|
||||||
@@ -187,19 +191,25 @@ public class EMTConfigHandler {
|
|||||||
"Disable smoke effect for boots",
|
"Disable smoke effect for boots",
|
||||||
false,
|
false,
|
||||||
"This effect only appears when the player isn't on the ground").getBoolean(smoke);
|
"This effect only appears when the player isn't on the ground").getBoolean(smoke);
|
||||||
oneRingSpawn = config
|
oneRingSpawn = config.get(
|
||||||
.get(RANDOM, "Disable One Ring in dungeon chests", true, "There is a recipe to get this item.")
|
RANDOM,
|
||||||
.getBoolean(oneRingSpawn);
|
"Disable One Ring in dungeon chests",
|
||||||
|
true,
|
||||||
|
"There is a recipe to get this item. " + IGNORED_UNDER_GTNH).getBoolean(oneRingSpawn);
|
||||||
chanceTaintedMjolnir = config.get(
|
chanceTaintedMjolnir = config.get(
|
||||||
RANDOM,
|
RANDOM,
|
||||||
"Tainted Mjolnir spawning change",
|
"Tainted Mjolnir spawning change",
|
||||||
25,
|
25,
|
||||||
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
|
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
|
||||||
|
+ IGNORED_UNDER_GTNH)
|
||||||
|
.getInt();
|
||||||
chanceOneRing = config.get(
|
chanceOneRing = config.get(
|
||||||
RANDOM,
|
RANDOM,
|
||||||
"One Ring spawning chance",
|
"One Ring spawning chance",
|
||||||
15,
|
15,
|
||||||
"If you have a lot of mods adding dungeon loot, you should definetely increase this").getInt();
|
"If you have a lot of mods adding dungeon loot, you should definetely increase this. "
|
||||||
|
+ IGNORED_UNDER_GTNH)
|
||||||
|
.getInt();
|
||||||
removeAmberAndCinnabarMacerating = config
|
removeAmberAndCinnabarMacerating = config
|
||||||
.get(
|
.get(
|
||||||
RANDOM,
|
RANDOM,
|
||||||
|
|||||||
@@ -4,11 +4,17 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.util.WeightedRandomChestContent;
|
import net.minecraft.util.WeightedRandomChestContent;
|
||||||
import net.minecraftforge.common.ChestGenHooks;
|
import net.minecraftforge.common.ChestGenHooks;
|
||||||
|
|
||||||
|
import cpw.mods.fml.common.Loader;
|
||||||
import emt.init.EMTItems;
|
import emt.init.EMTItems;
|
||||||
|
|
||||||
public class EMTDungeonChestGenerator {
|
public class EMTDungeonChestGenerator {
|
||||||
|
|
||||||
public static void generateLoot() {
|
public static void generateLoot() {
|
||||||
|
// GTNH replaces the whole dungeonChest table from config/TooMuchLoot/loot/dungeonChest.xml at
|
||||||
|
// FMLServerStartingEvent, which discards everything registered here. Edit that file instead.
|
||||||
|
if (Loader.isModLoaded("dreamcraft")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!EMTConfigHandler.thorHammerResearch) {
|
if (!EMTConfigHandler.thorHammerResearch) {
|
||||||
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
|
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(
|
||||||
new WeightedRandomChestContent(
|
new WeightedRandomChestContent(
|
||||||
|
|||||||
Reference in new issue
Block a user