Skip to content

Commit

Permalink
Fix compiler warnings and add sandstone to mining sources
Browse files Browse the repository at this point in the history
- Buff toughness back to pre-recode level
  • Loading branch information
Archy-X committed Jan 13, 2024
1 parent 1f52b39 commit 36648bd
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
import dev.aurelium.auraskills.api.skill.Skill;
import dev.aurelium.auraskills.api.stat.Stat;
import dev.aurelium.auraskills.api.stat.StatModifier;
import dev.aurelium.auraskills.api.trait.Trait;
import dev.aurelium.auraskills.api.user.SkillsUser;
import dev.aurelium.auraskills.common.AuraSkillsPlugin;
import org.jetbrains.annotations.Nullable;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.UUID;

public class OfflineSkillsUser implements SkillsUser {
Expand Down Expand Up @@ -61,6 +65,11 @@ public void setSkillLevel(Skill skill, int level) {

}

@Override
public double getSkillAverage() {
return 0;
}

@Override
public double getStatLevel(Stat stat) {
return 0;
Expand Down Expand Up @@ -101,6 +110,26 @@ public void removeStatModifier(String name) {

}

@Override
public @Nullable StatModifier getStatModifier(String name) {
return null;
}

@Override
public Map<String, StatModifier> getStatModifiers() {
return new HashMap<>();
}

@Override
public double getEffectiveTraitLevel(Trait trait) {
return 0;
}

@Override
public double getBonusTraitLevel(Trait trait) {
return 0;
}

@Override
public int getAbilityLevel(Ability ability) {
return 0;
Expand Down
3 changes: 3 additions & 0 deletions common/src/main/resources/sources/mining.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ sources:
granite:
block: granite
xp: 0.2
sandstone:
block: sandstone
xp: 0.2
coal_ore:
block: coal_ore
xp: 1.0
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/resources/stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stats:
enabled: true
traits:
auraskills/damage_reduction:
modifier: 0.24
modifier: 0.3
auraskills/crit_chance:
enabled: true
traits:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,6 @@ public EventHandler getEventHandler() {
return null;
}

@Override
public <T> T getItemManager(Class<T> itemManagerClass) {
return null;
}

@Override
public String getMsg(MessageKey key, Locale locale) {
return null;
Expand Down

0 comments on commit 36648bd

Please sign in to comment.