Kam
a325c5c618
Full Screen Directory Mode for Cloner Tab Handling
2026-02-04 12:34:26 -05:00
Vidal
a38c2f83ef
Merge remote-tracking branch 'origin/dev' into dev
2026-02-04 06:23:17 -03:00
Vidal
75447c62a9
Hotfix
2026-02-04 06:23:03 -03:00
Vidal
9449d1d0f3
Merge remote-tracking branch 'origin/dev' into dev
2026-02-04 06:18:14 -03:00
Vidal
2c3ca1b5ed
Added a filter to browse through abilities from different mods
2026-02-04 06:18:00 -03:00
Vidal
69ee5eae48
Merge remote-tracking branch 'origin/dev' into dev
2026-02-04 05:09:58 -03:00
Kam
65e29e42dd
Tab Handling GUI
2026-02-04 01:18:38 -05:00
Kam
ad4033ed62
Nashorn-less Tasks
2026-02-04 01:09:48 -05:00
bigguy345
d2713b48cc
Generated API .d.ts files on processResources task
2026-02-04 05:27:45 +02:00
bigguy345
df578be0b5
wtf who added this
2026-02-04 05:26:24 +02:00
bigguy345
bd9d0a3889
Merge branch 'dev' into syntax-highlighter-unified
2026-02-04 05:22:19 +02:00
Kam
ab5dbc077b
Fix Ability Issues
2026-02-03 20:32:00 -05:00
Vidal
96d939ce43
Added methods to trajectory
2026-02-03 22:10:33 -03:00
Kam
8ed8b55bdc
Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev
2026-02-03 19:30:59 -05:00
Kam
1ddb1d19f8
Update MixinItemStack.java
2026-02-03 19:30:54 -05:00
Vidal
6ea7d0ac7d
More trajectory changes
2026-02-03 21:26:27 -03:00
Vidal
77325428fa
Added more API methods
2026-02-03 20:03:37 -03:00
Kam
50a0dce086
Update MixinItem.java
2026-02-03 16:37:08 -05:00
Kam
eee0ce128e
Merge branch 'dev' of https://github.com/KAMKEEL/CustomNPC-Plus into dev
2026-02-03 16:24:49 -05:00
Kam
c80dd448cb
Fix GUI Tabs
2026-02-03 16:24:47 -05:00
Vidal
4eb6072a25
Added API class to EnergyTrajectoryData
2026-02-03 18:08:07 -03:00
Vidal
0e3ecb3d6e
Added EnergyTrajectoryData (WIP)
2026-02-03 18:00:52 -03:00
Kam
769109d046
Fix Windup Ticks 0 not starting Abilities
2026-02-03 15:52:46 -05:00
Vidal
bc4f82e55f
Added API classes to Energy Projectile
2026-02-03 17:20:36 -03:00
Vidal
7ee6c8aa53
Merge remote-tracking branch 'origin/dev' into dev
2026-02-03 17:19:39 -03:00
bigguy345
7f4bc87d7a
Extract overload selection to OverloadSelector helper with scoring algorithm
...
Problem:
- schedule("TpGainAction", function(act){...}) resolved to wrong overload
- TypeInfo.getBestMethodOverload rejected candidates when argType == null
- Fell back to arbitrary overloads.get(0) based on reflection order
- Result: selected 1-arg varargs overload instead of 2-arg fixed-arity
Solution:
- Created OverloadSelector helper class implementing scoring algorithm
- Scoring tiers (lower is better):
* Arity mismatch: +10000 + distance penalty (hard disqualifier)
* Varargs: +1000 penalty (fixed-arity strongly preferred)
* Unknown arg type (null): +10 (penalty but doesn't disqualify)
* Compatible type: +5 (modest preference for matching)
* Exact match: +0 (best case)
- Closest arity fallback when no arity-applicable overload exists
- TypeInfo.getBestMethodOverload now delegates (4 lines vs 220)
Impact:
- Deterministic overload selection (no reflection-order dependence)
- schedule("TpGainAction", function(act){...}) now resolves correctly
- Unknown arg types no longer cause fallback to unrelated overloads
- Fixed-arity methods preferred over varargs when both viable
- Removed 220 lines of complex nested logic from TypeInfo
Testing:
- OverloadResolutionTest with 6 test cases (all passing)
- Verifies fixed-arity preference, unknown arg handling, arity fallback
2026-02-03 22:13:15 +02:00
bigguy345
6fc0bf4d6b
Fix expression typing gate to route JS function/lambda expressions into ExpressionParser
...
Problem:
- function(act){...} expressions not reaching ExpressionParser
- resolveExpressionType only checked containsOperators() or startsWith("(")
- Function expressions went through simple resolver and returned null type
Solution:
- Added looksLikeFunctionOrLambda helper (lines 4766-4773) to detect:
* JS functions: function(...)
* Arrow functions: =>
* Java lambdas: ->
- Updated gate condition at line 4144 to route these into ExpressionParser
- Function expressions now reach ExpressionTypeResolver.resolveJSFunctionType
Impact:
- SAM typing now works in pass-2 when expected type is known
- Fixes schedule("TpGainAction", function(act){...}) argument typing
- Enables proper overload resolution for function/lambda parameters
2026-02-03 22:12:43 +02:00
Kam
a49df51ad9
Fixes to Ability Load, Reference Handling
2026-02-03 15:09:20 -05:00
Vidal
87d511dae1
Merge remote-tracking branch 'origin/dev' into dev
2026-02-03 16:09:12 -03:00
Kam
ead3c5944c
Fix Anchor Point Helper issue on NPCs
2026-02-03 14:06:30 -05:00
Vidal
75de803700
Added interfaces to energy data, refactored names
2026-02-03 15:45:45 -03:00
Vidal
87d511c38e
Fixed some GUI stuff and added animation to AbilityOrbDual
2026-02-03 15:27:28 -03:00
Vidal
f2673803ee
Merge remote-tracking branch 'origin/dev' into dev
2026-02-03 13:28:18 -03:00
bigguy345
ba7e4cc3b2
Merge remote-tracking branch 'origin/dev' into syntax-highlighter-unified
...
# Conflicts:
# src/api
# src/main/java/kamkeel/npcs/util/BukkitUtil.java
# src/main/java/kamkeel/npcs/util/VaultUtil.java
# src/main/java/noppes/npcs/CustomNpcsPermissions.java
2026-02-03 18:26:30 +02:00
Vidal
2d47aa00d8
- Added standalone min max methods to FieldDef
...
- Increased lightning density and radius minmax on all energy abilities
- Made AbilityOrbBarrage interruptible during active state
- Renamed AbilityEnergyBeam to AbilityBeam
- Updated imports
2026-02-03 12:32:30 -03:00
Vidal
1a8b8fb5f3
Made staves shoot EntityAbilityOrb
2026-02-03 11:58:39 -03:00
Vidal
eb2d904bac
Color-only overload to EnergyColorData
2026-02-03 11:57:47 -03:00
Vidal
4889c8b881
Added animation to shockwave
2026-02-03 11:57:19 -03:00
Vidal
aa05ef75bb
Merge remote-tracking branch 'origin/dev' into dev
2026-02-03 07:45:36 -03:00
Vidal
c5822023a0
Added modifyVisibility to FieldDef
...
AbilityGuard tweaks
2026-02-03 07:45:02 -03:00
Kam
fd85215592
Fix Ability Def Handler
2026-02-03 05:07:54 -05:00
Kam
b368871e4f
Update Ability.java
2026-02-03 04:45:31 -05:00
Kam
8aa6e926f6
Some Ability Helpers
2026-02-03 04:27:54 -05:00
Vidal
8fc0155df8
Attempt at damage reduction
2026-02-03 06:22:24 -03:00
Vidal
4f629c5679
Made ability abort after the counter has been triggered
2026-02-03 05:57:40 -03:00
Vidal
60b846b35e
- Added onDamageTaken to Ability
...
- Reworked AbilityGuard
- Added AbilityOrbBarrage
- Updated translation
- Updated onDamageTaken method calls
2026-02-03 05:43:50 -03:00
Vidal
dbafb2cace
Merge remote-tracking branch 'origin/dev' into dev
2026-02-03 02:45:35 -03:00
bigguy345
9db8a0b2e7
Forgotten Merge resolution for 'Add Tooltips.' commit
2026-02-03 07:20:24 +02:00
bigguy345
9e4692d8e4
Support d.ts patch overlays in gradle plugin
...
GenerateTypeScriptTask can now copy an optional patches directory into the generated output so manual overrides can ship alongside generated defs.
Converter tweaks: anchor method signature regex to line starts, and ensure generated (including nested) types include a @javaFqn tag for reliable mapping back to Java sources.
2026-02-03 07:04:50 +02:00
bigguy345
074c780d50
Add inner callable scope locals and expression type resolution
...
ScriptDocument now tracks locals inside lambdas/function expressions and resolves identifiers by consulting the innermost callable scope before falling back to method/global scope.
Adds expression resolver nodes/type resolver and wires position-aware resolution for lambda bodies, plus basic lambda operator marking and return type validation against expected functional interface SAM.
2026-02-03 07:03:33 +02:00