From 738a4dbaf5a8886a69616315674616d4e3a1e1fe Mon Sep 17 00:00:00 2001 From: MistPhizzle Date: Sun, 20 Jul 2014 15:38:55 -0400 Subject: [PATCH] Make PowerMultiplier of AvatarState configurable --- src/com/projectkorra/ProjectKorra/Ability/AvatarState.java | 2 +- src/com/projectkorra/ProjectKorra/ConfigManager.java | 1 + src/config.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/projectkorra/ProjectKorra/Ability/AvatarState.java b/src/com/projectkorra/ProjectKorra/Ability/AvatarState.java index 00337667..5973f91f 100644 --- a/src/com/projectkorra/ProjectKorra/Ability/AvatarState.java +++ b/src/com/projectkorra/ProjectKorra/Ability/AvatarState.java @@ -33,7 +33,7 @@ public class AvatarState { private static int fireResistancePower = config.getInt("Abilities.AvatarState.PotionEffects.FireResistance.Power") - 1; private static long duration = config.getLong("Abilities.AvatarState.Duration"); - private static final double factor = 5; + private static final double factor = config.getDouble("Abilities.AvatarState.PowerMultiplier"); Player player; diff --git a/src/com/projectkorra/ProjectKorra/ConfigManager.java b/src/com/projectkorra/ProjectKorra/ConfigManager.java index 3c769dea..9586f5f4 100644 --- a/src/com/projectkorra/ProjectKorra/ConfigManager.java +++ b/src/com/projectkorra/ProjectKorra/ConfigManager.java @@ -87,6 +87,7 @@ public class ConfigManager { + "State selected to deactivate it."); config.addDefault("Abilities.AvatarState.Cooldown", 7200000); config.addDefault("Abilities.AvatarState.Duration", 480000); + config.addDefault("Abilities.AvatarState.PowerMultiplier", 5); config.addDefault("Abilities.AvatarState.PotionEffects.Regeneration.Enabled", true); config.addDefault("Abilities.AvatarState.PotionEffects.Regeneration.Power", 3); config.addDefault("Abilities.AvatarState.PotionEffects.Speed.Enabled", true); diff --git a/src/config.yml b/src/config.yml index fb056f61..78345a43 100644 --- a/src/config.yml +++ b/src/config.yml @@ -66,6 +66,7 @@ Abilities: Description: "The signature ability of the Avatar, this is a toggle. Click to activate to become nearly unstoppable. While in the Avatar State, the user takes severely reduced damage from all sources, regenreates health rapidly, and is granted extreme speed. Nearly all abilities are incredibly amplified in this state. Additionally, AirShield and FireJet become toggle-able abilities and last until you deactivate them or the Avatar State. Click again with the Avatar State selected to deactivate it." Cooldown: 720000 Duration: 480000 + PowerMultiplier: 5 PotionEffects: Regeneration: Enabled: true