Family friendly debuff config
This commit is contained in:
parent
f896383fe6
commit
fd8e81cbdc
|
@ -142,6 +142,9 @@ public class ConfigHandler
|
|||
public static int wailaAltarDisplayMode;
|
||||
public static boolean thaumcraftGogglesUpgrade;
|
||||
|
||||
// IDontLikeFun
|
||||
public static boolean antiHitler;
|
||||
|
||||
public static void init(File file)
|
||||
{
|
||||
config = new Configuration(file);
|
||||
|
@ -286,6 +289,10 @@ public class ConfigHandler
|
|||
wailaAltarDisplayMode = config.getInt("wailaAltarDisplayMode", category + ".waila", 1, 0, 2, "The mode for the Waila display on Blood Altars.\n0 - Always display information\n1 - Only display when Divination/Seer sigil is in hand.\n2 - Only display when Divination/Seer sigil is in inventory");
|
||||
thaumcraftGogglesUpgrade = config.getBoolean("thaumcraftGogglesUpgrade", category + ".thaumcraft", true, "Allows the Living Helmet to be upgraded with Goggles of Revealing in an Anvil.");
|
||||
|
||||
category = "IDontLikeFun";
|
||||
config.addCustomCategoryComment(category, "My name is Scrooge.");
|
||||
antiHitler = config.get(category, "replaceNauseaWithWeakness", false).getBoolean();
|
||||
|
||||
config.save();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package WayofTime.bloodmagic.api.network;
|
|||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import WayofTime.bloodmagic.ConfigHandler;
|
||||
import lombok.Getter;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
@ -177,7 +178,8 @@ public class SoulNetwork extends WorldSavedData
|
|||
{
|
||||
if (getPlayer() != null)
|
||||
{
|
||||
getPlayer().addPotionEffect(new PotionEffect(Potion.confusion.getId(), 99));
|
||||
PotionEffect effect = ConfigHandler.antiHitler ? new PotionEffect(Potion.weakness.getId(), 99, 127) : new PotionEffect(Potion.confusion.getId(), 99);
|
||||
getPlayer().addPotionEffect(effect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ package WayofTime.bloodmagic.api.util.helper;
|
|||
import java.util.ArrayList;
|
||||
import java.util.UUID;
|
||||
|
||||
import WayofTime.bloodmagic.ConfigHandler;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
|
@ -94,6 +95,7 @@ public class PlayerHelper
|
|||
if (player == null)
|
||||
return;
|
||||
|
||||
player.addPotionEffect(new PotionEffect(Potion.confusion.id, 80));
|
||||
PotionEffect effect = ConfigHandler.antiHitler ? new PotionEffect(Potion.weakness.getId(), 99, 127) : new PotionEffect(Potion.confusion.getId(), 99);
|
||||
player.addPotionEffect(effect);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,6 +34,7 @@ public class ConfigGui extends GuiConfig
|
|||
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("General".toLowerCase())));
|
||||
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Rituals".toLowerCase())));
|
||||
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Blood Altar Sacrificial Values".toLowerCase())));
|
||||
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("IDontLikeFun".toLowerCase())));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.bloodmagic.item;
|
||||
|
||||
import WayofTime.bloodmagic.ConfigHandler;
|
||||
import WayofTime.bloodmagic.client.IVariantProvider;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
|
@ -71,7 +72,8 @@ public class ItemLavaCrystal extends ItemBindable implements IFuelHandler, IVari
|
|||
EntityPlayer player = PlayerHelper.getPlayerFromUUID(getBindableOwner(fuel));
|
||||
if (player != null)
|
||||
{
|
||||
player.addPotionEffect(new PotionEffect(Potion.confusion.getId(), 99));
|
||||
PotionEffect effect = ConfigHandler.antiHitler ? new PotionEffect(Potion.weakness.getId(), 99, 127) : new PotionEffect(Potion.confusion.getId(), 99);
|
||||
player.addPotionEffect(effect);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue