mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 16:59:43 +00:00
Fix DBC Toggle Abilities and Wheel System
This commit is contained in:
1 parent
40a02b73e2
commit
0e6ece56c6
11 files changed
+453
-59
No files matched your search
@@ -134,6 +134,28 @@ public class ScriptPlayerAbilityData implements IPlayerAbilityData {
|
||||
return data.activateAbility(player, key);
|
||||
}
|
||||
|
||||
// Toggle system
|
||||
|
||||
@Override
|
||||
public int toggleAbility(String key) {
|
||||
return data.toggleAbility(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getToggleState(String key) {
|
||||
return data.getToggleState(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setToggleState(String key, int state) {
|
||||
data.setToggleState(key, state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAbilityToggled(String key) {
|
||||
return data.isAbilityToggled(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve a user-provided key to the canonical storage key.
|
||||
* Uses the same resolution as unlockAbility: registry key for built-in, UUID for custom.
|
||||
|
||||
Reference in new issue
Block a user