add combat default xp values

This commit is contained in:
nossr50 2019-04-24 19:30:15 -07:00
parent b8ad722e9e
commit df2a52984e

View File

@ -3,11 +3,81 @@ package com.gmail.nossr50.config.hocon.experience;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
import java.util.HashMap;
@ConfigSerializable
public class ConfigExperienceCombat {
private static final HashMap<String, Double> COMBAT_EXPERIENCE_DEFAULT;
static {
COMBAT_EXPERIENCE_DEFAULT = new HashMap<>();
COMBAT_EXPERIENCE_DEFAULT.put("animals", 1.0D); //TODO: this seems like a dumb config option
COMBAT_EXPERIENCE_DEFAULT.put("creeper", 4.0D);
COMBAT_EXPERIENCE_DEFAULT.put("cat", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("fox", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("panda", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("pillager", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("ravager", 4.0D);
COMBAT_EXPERIENCE_DEFAULT.put("trader_llama", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("skeleton", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("spider", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("giant", 4.0D);
COMBAT_EXPERIENCE_DEFAULT.put("zombie", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("slime", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("ghast", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("pig_zombie", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("enderman", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("cave_spider", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("silverfish", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("blaze", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("magma_cube", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("ender_dragon", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("wither", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("witch", 0.1D);
COMBAT_EXPERIENCE_DEFAULT.put("iron_golem", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("wither_skeleton", 4.0D);
COMBAT_EXPERIENCE_DEFAULT.put("endermite", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("guardian", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("elder_guardian", 4.0D);
COMBAT_EXPERIENCE_DEFAULT.put("shulker", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("donkey", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("mule", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("horse", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("zombie_villager", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("skeleton_horse", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("zombie_horse", 1.2D);
COMBAT_EXPERIENCE_DEFAULT.put("husk", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("evoker", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("polar_bear", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("llama", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("vindicator", 3.0D);
COMBAT_EXPERIENCE_DEFAULT.put("stray", 2.0D);
COMBAT_EXPERIENCE_DEFAULT.put("rabbit", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("chicken", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("bat", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("mushroom_cow", 1.2D);
COMBAT_EXPERIENCE_DEFAULT.put("cow", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("turtle", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("sheep", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("pig", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("squid", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("ocelot", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("villager", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("snowman", 0.0D);
COMBAT_EXPERIENCE_DEFAULT.put("parrot", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("illusioner", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("drowned", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("dolphin", 1.0D);
COMBAT_EXPERIENCE_DEFAULT.put("phantom", 4.0D);
}
private static final boolean PVP_XP_ENABLED_DEFAULT = false;
@Setting(value = "Combat-XP-Multipliers")
private HashMap<String, Double> combatExperienceMap = COMBAT_EXPERIENCE_DEFAULT;
@Setting(value = "PVP-XP", comment = "If true, players will gain XP from PVP interactions." +
"\nBe careful turning this on as this can potentially allow for unwanted behaviour from players." +
"\nDefault value: "+PVP_XP_ENABLED_DEFAULT)
@ -17,4 +87,7 @@ public class ConfigExperienceCombat {
return pvpXPEnabled;
}
public HashMap<String, Double> getCombatExperienceMap() {
return combatExperienceMap;
}
}