aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java')
-rw-r--r--src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java b/src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java
index 73b99e0..506fa18 100644
--- a/src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java
+++ b/src/main/java/dev/mayaqq/ygasi/abilities/mercenary/Offence1.java
@@ -1,21 +1,23 @@
package dev.mayaqq.ygasi.abilities.mercenary;
-import dev.mayaqq.ygasi.registry.ConfigRegistry;
import dev.mayaqq.ygasi.util.AdvUtils;
-import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;
+import java.util.HashMap;
+import java.util.Map;
+
public class Offence1 {
+
+ public static Map<String, Boolean> attackList = new HashMap<>();
+
public static void give(ServerPlayerEntity player) {
if (!AdvUtils.getAdvancementProgress(player, "minecraft", "ygasi/offence1")) {
- player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).setBaseValue(player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).getBaseValue() + ConfigRegistry.CONFIG.offence1DefIncrease);
AdvUtils.grantAdvancementCriterion(player, new Identifier("minecraft", "ygasi/offence1"), "unlocked_offence1");
}
}
public static void revoke(ServerPlayerEntity player) {
if (AdvUtils.getAdvancementProgress(player, "minecraft", "ygasi/offence1")) {
- player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).setBaseValue(player.getAttributeInstance(EntityAttributes.GENERIC_ATTACK_DAMAGE).getBaseValue() - ConfigRegistry.CONFIG.offence1DefIncrease);
AdvUtils.revokeAllAdvancements(player, "minecraft", "ygasi/offence1");
}
}