package HxCKDMS.gkpk.data;

import HxCKDMS.gkpk.data.recipe.GKPKRecipe;
import cpw.mods.fml.common.registry.GameRegistry;
import hxckdms.hxcconfig.Config;
import net.minecraft.potion.Potion;

import java.util.LinkedHashMap;

@Config
public class Configs {
    public static LinkedHashMap<String, Drug> drugs = new LinkedHashMap<>();
    public static LinkedHashMap<String, String> customRecipes = new LinkedHashMap<>();

    static {
        drugs.putIfAbsent("nodu", new Drug("Nodularin", 0xF4F4F4, "", 0, 0, new Drug.dummyPot(Potion.hunger.getId(), TimeConst.TICKS_PER_MINUTE, 4), new Drug.dummyPot(Potion.digSlowdown.getId(), TimeConst.TICKS_PER_MINUTE * 2, 2))); // From zombie flesh
        drugs.putIfAbsent("ttx", new Drug("Tetrodotoxin", 0xFEFEFE, "desaturate", TimeConst.TICKS_PER_MINUTE, 4, new Drug.dummyPot(Potion.moveSlowdown.getId(), TimeConst.TICKS_PER_MINUTE *2, 50), new Drug.dummyPot(Potion.wither.getId(), TimeConst.TICKS_PER_MINUTE, 3))); // From pufferfish
        drugs.putIfAbsent("ethanol", new Drug("Ethanol", 0x000000, "blur", TimeConst.TICKS_PER_MINUTE * 2, 4, new Drug.dummyPot(Potion.hunger.getId(), TimeConst.TICKS_PER_MINUTE, 2), new Drug.dummyPot(Potion.moveSlowdown.getId(), TimeConst.TICKS_PER_MINUTE * 2, 2))); // internal
        drugs.putIfAbsent("musc", new Drug("Muscimol", 0x30FF30, "sobel", TimeConst.TICKS_PER_MINUTE * 2, 2, new Drug.dummyPot(Potion.damageBoost.getId(), TimeConst.TICKS_PER_MINUTE, 1), new Drug.dummyPot(Potion.moveSlowdown.getId(), TimeConst.TICKS_PER_MINUTE * 2, 2))); // From red mushroom

        customRecipes.putIfAbsent("minecraft:potato:0", "ttx");
    }

    public static void init() {
        customRecipes.forEach((in, out) -> {
            String[] t = in.split(":");
            if (t.length == 2)
                GKPKRecipe.Extracting().registerExtractRecipe(GameRegistry.findItem(t[0], t[1]), out);
            else GKPKRecipe.Extracting().registerExtractRecipe(GameRegistry.findItem(t[0], t[1]), Integer.parseInt(t[2]), out);
        });
    }
}

@@ -1543,16 +1543,201 @@
 mushroom
+%0A        drugs.putIfAbsent(%22solan%22, new Drug(%22Solanine%22, 0x825535, %22blobs%22, TimeConst.TICKS_PER_MINUTE * 1, 4, new Drug.dummyPot(Potion.poison.getId(), TimeConst.TICKS_PER_MINUTE, 4)));
 %0A%0A      
@@ -1782,17 +1782,18 @@
 :potato:
-0
+55
 %22, %22ttx%22

Update Configs.java