mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 11:44:25 +00:00
Added modifyVisibility to FieldDef
AbilityGuard tweaks
This commit is contained in:
1 parent
fd85215592
commit
c5822023a0
4 files changed
+42
-18
No files matched your search
@@ -450,17 +450,6 @@ public abstract class Ability implements IAbility {
|
||||
this::getActiveAnimationName, this::setActiveAnimationName)
|
||||
.tab("Effects"));
|
||||
|
||||
if (this instanceof AbilityGuard) {
|
||||
defs.add(FieldDef.animSubGui("ability.counterAnimation",
|
||||
() -> ((AbilityGuard) this).getCounterAnimationId(),
|
||||
(id) -> ((AbilityGuard) this).setCounterAnimationId(id),
|
||||
() -> ((AbilityGuard) this).getCounterAnimationName(),
|
||||
(name) -> ((AbilityGuard) this).setCounterAnimationName(name))
|
||||
.tab("Effects")
|
||||
.visibleWhen(() -> ((AbilityGuard) this).canCounter())
|
||||
);
|
||||
}
|
||||
|
||||
TelegraphType tType = getTelegraphType();
|
||||
if (tType != null && tType != TelegraphType.NONE) {
|
||||
defs.add(FieldDef.section("ability.section.telegraph").tab("Effects")
|
||||
|
||||
Reference in new issue
Block a user