Commit Graph
424 Commits
Author SHA1 Message Date
Kam 7d2bba7b95 Better Lock Movement handling 2026-01-28 15:16:28 -05:00
Kam 83ccd25b33 Merge Conflicts + Scripting for Abilities 2026-01-28 14:44:19 -05:00
Vidal e599ed67f5 Added animations to these abilities 2026-01-27 22:19:26 -03:00
Kam c6810c05ea More Ability Fixes. 2026-01-27 16:43:47 -05:00
Kam 6d39b3c026 Fix Anchor Points for Animations 2026-01-27 15:21:59 -05:00
Kam 76fb9ee52f Fix Dazed Ticks and other smaller issues 2026-01-27 14:46:17 -05:00
Kam 747aae8337 Recovery -> Dazed. Better cooldown logic handling 2026-01-27 04:07:02 -05:00
Vidal 93486d306b Made animation fetching methods return Animation instead of IDs 2026-01-27 04:36:12 -03:00
Kam 39b53b0be7 Anchor Points 2026-01-27 02:03:54 -05:00
Kam 0f44a3c6c6 Ability Anchor Points + Orb / Disc Summoning 2026-01-26 23:55:07 -05:00
Vidal 0484596a91 Updated imports and fields 2026-01-27 01:51:49 -03:00
Vidal 246baa9f55 Removed static class from AbilityController and made animations built into the enum 2026-01-27 01:49:08 -03:00
Vidal 39b6304bed Updated imports 2026-01-27 01:34:34 -03:00
Vidal c858f24e67 Implemented built in animations for abilities 2026-01-27 01:33:12 -03:00
Kam 563b6f7a26 Ability Effects 2026-01-26 22:02:51 -05:00
Kam d6d29613e8 Lock View Rotation 2026-01-26 19:03:48 -05:00
Kam 6c7c72b0f9 Lightning, Orb and Beam Improvements. Outer Glow Configurations for Abilities 2026-01-26 18:38:43 -05:00
Kam 651f2d0d84 More Abilities 2026-01-26 04:42:23 -05:00
Kam de043f4a25 Ability Changes 2026-01-25 20:39:01 -05:00
Kam fe998ea31c Auction Blacklist System 2026-01-24 16:03:54 -05:00
Kam 3577701edf Auction Fixes + Auction API Hookup 2026-01-24 15:11:50 -05:00
Kam d1621d4368 Auction Fixes to Tooltips, Auction Command, Money Command 2026-01-24 03:24:57 -05:00
Kam bd7cafa482 Telegraph Scripting System 2026-01-24 02:35:26 -05:00
Kam 3e57b837aa Auction Fixes 2026-01-24 01:57:46 -05:00
Kam 5992e1badc Some Ability Fixes to Defaults and Langs 2026-01-23 23:59:19 -05:00
Kam 5afa1c8959 Auction System Implementation 2026-01-23 21:53:12 -05:00
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
bigguy345 50e9f1b3e5 HUGE IScriptHandlerPacket merge.
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345 3f8373d76f Merge branch 'dev' into janino-scripts 2026-01-22 19:53:18 +02:00
Kam d0dc8a4578 Trader System + Stocks Implemented
- Removed Auction System Temporarily for Full Rebase
2026-01-22 12:38:56 -05:00
Kam 04e2a57cb4 Auction Merge 2026-01-20 21:07:18 -05:00
bigguy345 73db727c47 Deleagted all ScriptContainer NBT based creation to IScriptUnit.createFromNBT 2026-01-13 22:16:51 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
bigguy345 88d43f8199 Merge branch 'dev' into janino-scripts
# Conflicts:
#	repositories.gradle
2026-01-13 18:18:06 +02:00
Kam 0328be57eb Add BukkitUtil, VaultUtil for Future Economy Handling 2026-01-12 12:50:08 -05:00
Kam 63c704f80a Fix Compile 2026-01-12 05:55:49 -05:00
Kam 828e99d427 Revise ability logic and configs 2026-01-11 16:04:49 -05:00
Kam fdb2ff98d8 Large Ability changes, cleanup, langs, fixes. 2026-01-10 23:06:13 -05:00
Claude c7d04cb9d3 Simplify ability interrupt logic and reorganize GUI
- Remove interruptThreshold field entirely - interrupts now based on damage source type
- Update canInterrupt() to only allow interrupts from direct physical hits (not magic/fire/explosions)
- Interruption only occurs during WINDUP phase, not ACTIVE
- Reorganize SubGuiAbilityConfig into 4 tabs: General, Type, Target, Effects
- Increase GUI size to 420x216 for better layout
2026-01-10 10:32:24 +00:00
Claude b40fec2270 Clean up imports to use short class names
Replace fully qualified class names with proper imports in ability files:
- Added cpw.mods.fml.relauncher.Side and SideOnly imports
- Added IAbilityConfigCallback and SubGuiAbilityConfig imports
- Added SubGuiAbility* imports for each ability type
- Replaced @cpw.mods.fml.relauncher.SideOnly(...) with @SideOnly(Side.CLIENT)
- Replaced fully qualified return types with short class names
2026-01-10 10:03:10 +00:00
Claude f28d3483e6 Refactor Ability GUI to support third-party extensibility
This refactoring allows third-party mods to provide their own custom GUI
for ability type settings by extending SubGuiAbilityConfig.

Changes:
- Refactored SubGuiAbilityConfig as base class with GuiMenuTopButton tabs
- Added virtual methods: initTypeTab(), handleTypeButton(), handleTypeTextField()
- Added createConfigGui() method to Ability base class for GUI instantiation
- Created 15 SubGuiAbility* subclasses in new ability package
- Updated GuiNPCAbilities and GuiNpcManageAbilities to use ability.createConfigGui()

Third-party mods can now:
1. Create a custom Ability subclass
2. Extend SubGuiAbilityConfig with their own GUI
3. Override createConfigGui() to return their custom GUI
2026-01-10 09:48:37 +00:00
bigguy345 fb0332e5cf Merge branch 'dev' into janino-scripts 2026-01-10 00:19:14 +02:00
Kam 18bab07f33 Fix Slam 2026-01-09 16:22:39 -05:00
Kam 166c8aa228 Ability Push 2026-01-09 15:29:00 -05:00
Kam d657bab73c Harden auction display and trader stock init 2026-01-04 15:21:11 -05:00
Claude d09c6b0c81 Add auction filtering and sorting system
New files:
- EnumAuctionSort: Sorting options (price, time, name, bids, etc.)
- AuctionFilter: Search/filter criteria with builder pattern
- AuctionDataPacket: Large packet for server->client listing data

AuctionController changes:
- getFilteredListings(): Main filtering/pagination method
- sortListings(): Comprehensive sorting by various criteria
- quickSearch(): Convenience method for simple searches
- FilterResult: Pagination result container

AuctionListing changes:
- Added bidCount field with NBT persistence
- Added creationTime alias methods

AuctionActionPacket changes:
- QueryListings: Filter-based search
- QueryMyListings: Player's own listings
- QueryMyBids: Player's active bids
- QueryClaimable: Items ready to claim

NoppesUtil changes:
- Auction data storage and IAuctionData interface
- Client-side data handling for GUI integration
2026-01-04 09:33:29 +00:00
Claude 57f9b706bf Implement Phase 5: Network packets, permissions, and scripting API
- Add auction permission nodes (use, list, bid, buyout, admin)
- Create AuctionActionPacket for client-server communication
  - Supports: CreateListing, PlaceBid, Buyout, CancelListing, ClaimItem, ClaimProceeds
  - Includes permission checks and validation
- Register packet in PacketHandler
- Add auction scripting API methods to ScriptPlayer:
  - getAuctionListingCount()
  - getMaxAuctionListings()
  - hasAuctionClaims()
  - getAuctionClaimCount()
  - getActiveAuctionBidCount()
2026-01-04 08:57:13 +00:00
Claude dc9d15f3e3 Implement Phase 3: Item Attributes & Restrictions
- Add ItemTradeAttribute.java for trade restriction utilities
  - TAG_UNTRADEABLE for items that cannot be traded
  - Check existing TAG_PROFILE_SLOT and TAG_SOULBIND tags
  - canTrade() checks all three restriction types
  - getTradeBlockReason() returns localization key for UI
  - Utility methods for setting/getting each restriction type
  - clearAllRestrictions() and getRestrictionSummary() helpers

- Add AuctionBlacklist.java controller
  - Blacklist items by registry name (e.g., "minecraft:diamond_sword")
  - Blacklist entire mods by mod ID (e.g., "minecraft")
  - Blacklist items with specific NBT tags (supports dot notation)
  - isBlacklisted() and getBlacklistReason() for checking
  - Persistence via auction_blacklist.dat
  - Add/remove methods for each blacklist type

- Initialize AuctionBlacklist in CustomNpcs.java

- Add scripting API methods to ScriptItemStack.java
  - canTrade() - check if item can be traded
  - getTradeBlockReason() - get block reason
  - isUntradeable() / setUntradeable() - manage untradeable flag
  - isProfileSlotBound() / getProfileSlot() / setProfileSlotBound()
  - isSoulbound() / getSoulbindOwner() / removeSoulbind()
  - clearTradeRestrictions() - remove all restrictions
  - getRestrictionSummary() - human-readable summary
2026-01-04 08:34:45 +00:00
Kam e2291f8ccc Fix Debugging Error 2026-01-01 22:02:54 -05:00
bigguy345 a9bfa6c120 ScriptController.globalRevision, Incremented whenever external scripts loaded. 2025-12-15 20:05:40 +02:00