mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +00:00
Added isSubAbility() boolean to AbilityModule
This commit is contained in:
parent
cc69cc0b78
commit
f9c336bac2
2 changed files with 8 additions and 0 deletions
|
@ -55,5 +55,9 @@ public class AbilityModule extends AbilityLoadable implements Cloneable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSubAbility() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,6 +173,10 @@ public class AbilityModuleManager {
|
||||||
}
|
}
|
||||||
if (ab.getElement() == Element.Air.toString()) airbendingabilities.add(ab.getName());
|
if (ab.getElement() == Element.Air.toString()) airbendingabilities.add(ab.getName());
|
||||||
if (ab.getElement() == Element.Water.toString()) waterbendingabilities.add(ab.getName());
|
if (ab.getElement() == Element.Water.toString()) waterbendingabilities.add(ab.getName());
|
||||||
|
if (ab.getElement() == Element.Earth.toString()) {
|
||||||
|
earthbendingabilities.add(ab.getName());
|
||||||
|
if (ab.isSubAbility()) earthsubabilities.add(ab.getName());
|
||||||
|
}
|
||||||
if (ab.getElement() == Element.Earth.toString()) earthbendingabilities.add(ab.getName());
|
if (ab.getElement() == Element.Earth.toString()) earthbendingabilities.add(ab.getName());
|
||||||
if (ab.getElement() == Element.Fire.toString()) firebendingabilities.add(ab.getName());
|
if (ab.getElement() == Element.Fire.toString()) firebendingabilities.add(ab.getName());
|
||||||
if (ab.getElement() == Element.Chi.toString()) chiabilities.add(ab.getName());
|
if (ab.getElement() == Element.Chi.toString()) chiabilities.add(ab.getName());
|
||||||
|
|
Loading…
Reference in a new issue