Commit Graph
3381 Commits
Author SHA1 Message Date
Kam cd28f69a0e Enhance ability validation: add method to check if an ability can be resolved without deep copy and prune invalid unlocked abilities during load 2026-02-16 01:39:14 -05:00
Kam 1ed012331b Enhance ability input handling: block movement during ability locks, ensure proper input suppression, and cancel abilities on logout, dimension change, death, and respawn 2026-02-15 23:15:50 -05:00
Kam 121563ba24 Enhance knockback mechanics: add methods for applying and forcefully applying knockback, respecting or ignoring knockback resistance 2026-02-15 23:07:57 -05:00
Kam 19e2882c4a Merge remote-tracking branch 'origin/dev' into dev 2026-02-15 22:04:55 -05:00
Kam 1fb52a4ae9 Refactor movement abilities: extract shared logic into AbilityMovement class for Charge and Dash abilities 2026-02-15 22:04:47 -05:00
Kam 248dbf66da Enhance ability animation handling: track ability animation state, clear orphaned animations on login, and ensure proper animation continuation 2026-02-15 22:03:32 -05:00
Kam 3beaf68815 Update GuiNPCAbilities.java 2026-02-15 21:44:36 -05:00
Kam eda8931b5f Refactor entity owner checks and enhance FULL_MODEL rotation support in ability entities 2026-02-15 21:29:26 -05:00
Kam ce24c0a4ff Enhance ability selection and display: add toggleable ability handling, improve ability name color coding, and update ability selection messaging 2026-02-15 19:21:30 -05:00
Kam 45d05b9157 Add trap presets & trigger-reveal visuals
Introduce client-side trap presets and a visual "trigger reveal" for traps, plus related entity/renderer changes.

- AbilityTrap: add TrapPreset enum and applyTrapPresetDefaults; wire a SubGuiTrapPresetSelector hook to apply presets from the GUI; pass visibility into created trap entities.
- EntityAbilityZone: add visible flag, TRIGGER_FLASH_STATUS state, setEntityState usage to notify clients of triggers, handleHealthUpdate to start client-side flash, and adjust construction/serialization accordingly.
- RenderAbilityZone: implement trigger-reveal visuals (revealFade, triggerReveal) that briefly show a burst when traps trigger, skip rendering for invisible traps unless revealing, and tweak flash/timing logic.
- Minor cleanup: remove/condense comment blocks and refactor noisy helpers across AbilityZone/AbilityHazard, plus language entry update and new SubGuiTrapPresetSelector GUI class.

These changes enable preset application for traps and improve client-side feedback when traps trigger.
2026-02-15 19:19:57 -05:00
Kam 89464ce6c0 Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev 2026-02-15 18:16:01 -05:00
Kam 2dfdfb19d1 Client-side trade validation and stock update
Perform more complete client-side checks before predicting currency deductions in GuiNPCTrader.handleMouseClick. The method now verifies that the item can be given to the player (canGivePlayerClient), that the slot is enabled, and that stock is available, mirroring server-side checks. When a client-side purchase is accepted, availableStock is decremented if applicable. Added a private canGivePlayerClient(ItemStack) helper to check cursor-stack compatibility and max stack size. These changes prevent the UI from showing incorrect balances for trades the server would reject.
2026-02-15 18:15:56 -05:00
Kam ff9f9b9660 Enhance ability variant selection: inject a default "Base" variant when no built-in variants are available 2026-02-15 18:05:07 -05:00
Kam 8c2ef1084a Fix Burst Refire 2026-02-15 17:47:44 -05:00
KamandClaude Opus 4.6 e466ef6771 Remove Ki Cost from base Ability - DBC-specific concern
Ki Cost belongs in the DBC Addon's DBCAbilityStats system,
not in the base ability infrastructure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 04:47:19 -05:00
Vidal 61405add97 Added Ki Cost to Ability 2026-02-15 00:40:43 -03:00
Kam 0f774a68fc Refactor ability handling: replace damage handler with ability extenders for improved lifecycle management and damage routing 2026-02-14 21:06:12 -05:00
Kam f8c75dd79b Fix Burst Refiring 2026-02-14 20:08:56 -05:00
Vidal f03d93d6a8 Oopsie i swapped commits, last commit was changing min values on anchor offset fields 2026-02-14 19:43:34 -03:00
Vidal 3be9104ec3 Made min and max double neg/pos infinity 2026-02-14 19:43:03 -03:00
Kam a23b199e7e Refactoring for Code Cleanup and Projectile Abstract Class Handling 2026-02-14 15:21:56 -05:00
Vidal a1f3f5184b Changed anchor offsets min values 2026-02-14 17:05:17 -03:00
Vidal 331361f21e Merge remote-tracking branch 'origin/dev' into dev 2026-02-14 17:04:21 -03:00
Vidal 19fb0ff5b7 Changed how float text fields handle negative values 2026-02-14 17:03:59 -03:00
Kam da4ee2e20d Refactor ability management: enhance deep copy functionality, streamline custom ability handling, and update versioning logic 2026-02-14 14:43:25 -05:00
Vidal e1eda3ce19 Added an option to register multiple animations under one common name 2026-02-14 16:22:53 -03:00
Kam 2a1a5643d3 Potion Effect System + Manual and Remove Bulk 2026-02-14 04:04:13 -05:00
Kam 85db3df355 feat: implement player ability state management with rotation and position locking 2026-02-14 04:02:01 -05:00
Kam befebdb9f7 refactor: enhance collision detection for ability movement 2026-02-14 04:02:01 -05:00
Kam 910f3b3744 Add NPC inline edit support and adjust ability launch mechanics 2026-02-13 15:01:28 -05:00
bigguy345 ac223cbb53 IAction exceptions now report to script console 2026-02-13 04:06:59 +02:00
Kam 5d682962be feat: add BuiltInAbilityGetPacket for requesting built-in abilities by name 2026-02-12 20:30:45 -05:00
Kam 0cb5a993c7 Merge remote-tracking branch 'origin/dev' into dev 2026-02-12 20:30:27 -05:00
Kam 2c00ecae9e feat: add built-in ability handling and UI updates for ability management 2026-02-12 20:30:12 -05:00
Kam 356ae65b69 Fix Dialog and Quest Category Bug 2026-02-12 20:28:50 -05:00
Kam 9dae4bae55 feat: enhance damage handling for abilities and implement guard counter mechanics 2026-02-12 18:53:40 -05:00
Kam 6f9cafa141 Add Custom Particle Handling and Preset Handling to Trap and Hazards 2026-02-12 18:15:41 -05:00
Vidal bf3391a1a8 Made trap windup a bit slower to match the animation
Made the previously only hazard animation play on both hazard and trap
2026-02-12 18:46:11 -03:00
Kam 2d3106a256 Fix Zone Defaults 2026-02-12 15:01:19 -05:00
Kam 64ba087cc5 Merge Conflict Compile Issues 2026-02-12 14:07:03 -05:00
Kam 3500b0f55f Ability Trap & Hazard Update 2026-02-12 13:55:56 -05:00
Vidal 70ed5a0717 Hotfix² 2026-02-12 14:13:37 -03:00
Vidal c2c571ae7e Hotfix 2026-02-12 14:02:00 -03:00
Vidal 8a3b0b9866 why... 2026-02-12 13:48:15 -03:00
Vidal 540903d71f Changed Abilities register method call 2026-02-12 13:24:28 -03:00
Vidal cac27535f8 Charge animation 2026-02-12 13:03:57 -03:00
Vidal 0dc6f9aab3 Orb Barrage animation 2026-02-12 12:38:13 -03:00
Vidal eee9b32a5b Added eye anchor point using the entity's eye height 2026-02-12 12:14:21 -03:00
Vidal 91762bb1ba Hazard animation 2026-02-12 11:28:00 -03:00
Vidal 974cfc8c56 Changed fire delay for dual disc 2026-02-12 10:59:42 -03:00