mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Add isMetalbendingAbility() to AbilityModule
Return true if custom ability is a metalbending ability.
This commit is contained in:
parent
4f2a59f942
commit
edd42d9caa
2 changed files with 5 additions and 0 deletions
|
@ -51,5 +51,9 @@ public class AbilityModule extends AbilityLoadable implements Cloneable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isMetalbendingAbility() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,7 @@ public class AbilityModuleManager {
|
||||||
if (ab.getElement() == Element.Chi.toString()) chiabilities.add(ab.getName());
|
if (ab.getElement() == Element.Chi.toString()) chiabilities.add(ab.getName());
|
||||||
if (ab.isShiftAbility()) shiftabilities.add(ab.getName());
|
if (ab.isShiftAbility()) shiftabilities.add(ab.getName());
|
||||||
if (ab.isHarmlessAbility()) harmlessabilities.add(ab.getName());
|
if (ab.isHarmlessAbility()) harmlessabilities.add(ab.getName());
|
||||||
|
if (ab.isMetalbendingAbility()) metalbendingabilities.add(ab.getName());
|
||||||
descriptions.put(ab.getName(), ab.getDescription());
|
descriptions.put(ab.getName(), ab.getDescription());
|
||||||
authors.put(ab.getName(), ab.getAuthor());
|
authors.put(ab.getName(), ab.getAuthor());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue