Commit Graph

1096 Commits

Author SHA1 Message Date
Collin Smith
01575d1c04 Fixed typo 2020-07-16 19:26:19 -07:00
Collin Smith
623859681b Removed QUEST flag declaration -- appears incorrect 2020-07-14 15:40:54 -07:00
Collin Smith
0bd809ef2d Changed visibility of flag consts to public 2020-07-14 13:48:18 -07:00
Collin Smith
30d574a537 Blocked UI events for items that have INSTORE flag set 2020-07-13 19:06:45 -07:00
Collin Smith
417347e4e9 VendorGenerator sets INSTORE flag and item display will show the item's 'cost' in details 2020-07-13 18:05:21 -07:00
Collin Smith
b8fa368221 Committing ItemGeneratorTool used to generate items for testing 2020-07-13 17:54:33 -07:00
Collin Smith
cfcf709ec3 Filled out some basic item generation
Filled out some basic item generation
Disabled until item generation progresses more
2020-07-13 17:53:48 -07:00
Collin Smith
a57ce99e5e Added gemsockets column to ItemEntry and improved MaxSock support in ItemTypes 2020-07-13 15:56:23 -07:00
Collin Smith
61ec4e821a Added basic check to prevent invalid magic items from generation 2020-07-12 18:30:18 -07:00
Collin Smith
b9f0b25765 Disabled debug mode for VendorPanel 2020-07-12 18:27:45 -07:00
Collin Smith
e161df36b8 Added rows for other acts 2020-07-12 18:26:54 -07:00
Collin Smith
2e774fd953 Added support for distinct vendor inventories
Added support for distinct vendor inventories
No inventory component yet -- generated each time vendor loaded
Moved VendorPanel inventory management to Npc for time being (from UI to a system)
Modified VendorPanel#config signature to include inventory item list
Created VendorGenerator#generate(String) to generate an inventory for a specified vendor
Added ItemGenerator and VendorGenerator systems to various engines
2020-07-12 17:11:05 -07:00
Collin Smith
bda2b7152b VendorGrid#drain clears children 2020-07-12 16:56:29 -07:00
Collin Smith
fe863584a4 Fixed layout bugs with two items occupying same bounds and not fitting within grid area 2020-07-12 16:55:29 -07:00
Collin Smith
be0d08698b Empty vendor tabs will be hidden 2020-07-12 16:17:03 -07:00
Collin Smith
3c7b35bc5d Added support for generating items for vendor inventory
Created vendor generator which uses reflection to access item data and generate items
Added stub item generation for armor and weapons
Changed visibility of ItemGrid#addItem to protected (from public)
ItemGrid#addItem vis will revert when drain function is moved up class hierarchy
Modified signatures of VendorGrid#place* methods and function
VendorGrid#place* now returns boolean if the item can be placed
VendorGrid#place* stores available coords in input coords parameter
Added columns for base item vendor entries and noted issue with hratli
Added Excel#getEntryClass to retrieve the entry class type via reflection
VendorPanel populates tabs using "akara" columns
2020-07-12 16:11:28 -07:00
Collin Smith
ad7e1431d0 Added condition for max y placement 2020-07-12 12:29:14 -07:00
Collin Smith
c8b69868b5 Added todo comment for excel column feature 2020-07-12 00:43:41 -07:00
Collin Smith
19a7f10766 Added basic support for VendorPanel VendorGrid items
Added basic support for VendorPanel VendorGrid items
Added very basic ItemGenerator class to create Item instances
VendorPanel tabs now support distinct grid objects
VendorPanel will display the grid for the active tab
Added basic sort and layout function in VendorGrid to place items
VendorPanel MISC tab has sample data injected
2020-07-11 14:09:51 -07:00
Collin Smith
518ce4fb2e Fixes #87 2020-07-10 22:18:45 -07:00
Collin Smith
81377986b9 Appended validate method call to output the non-equal fields 2020-07-10 19:40:13 -07:00
Collin Smith
d81740bd23 Changed toString 'type' field to 'code' 2020-07-10 16:21:41 -07:00
Collin Smith
91e2dd8851 Created an item version code for riiablo, anticipating serialization incompatibility 2020-07-10 16:14:16 -07:00
Collin Smith
c6e9929f88 Created constants for item version codes 2020-07-10 16:13:30 -07:00
Collin Smith
f1f64fca24 Exposed item flags to package visibility 2020-07-10 16:12:49 -07:00
Collin Smith
faf5354276 Added reference to item type2 entry and aggregated type to be logical oring of type and type2 bits 2020-07-10 15:54:33 -07:00
Collin Smith
3b958f3afa Renamed typeCode to code
Renamed typeCode to code (was confusing with type and type2)
Changed EAR flag to automatically set code to 'ear'
2020-07-10 15:42:22 -07:00
Collin Smith
101c6c2b0a Added support for aggregating multiple types
Added support for aggregating multiple types
Included pre-defined types for the cartesian products of gem types and qualities
2020-07-09 04:04:29 -07:00
Collin Smith
ee23568f2b Added index for 'none' item type 2020-07-09 04:03:15 -07:00
Collin Smith
5dd1122c0d Added getHexString to return hex representation of set bits 2020-07-09 02:18:42 -07:00
Collin Smith
ce886d1031 Moved toString method to getOrdinalString and made toString delegate 2020-07-09 02:17:43 -07:00
Collin Smith
c39f3e47b7 Changed default numBits to 0x7F (127) 2020-07-09 02:12:27 -07:00
Collin Smith
ed17dfda20 Renamed UNK3 -> GROUND 2020-07-08 00:30:31 -07:00
Collin Smith
9bb02ec9ac Added consts for Item modes (unused) 2020-07-07 12:08:52 -07:00
Collin Smith
eb06205951 Renamed Location UNK3 -> GROUND 2020-07-07 12:08:15 -07:00
Collin Smith
2e2eae85bc Updated item flags 2020-07-07 12:07:31 -07:00
Collin Smith
31a181ec1f Added additional material types 2020-07-05 01:41:39 -07:00
Collin Smith
31c24a054e Added support for playing footstep sounds for client's player
Added Map#material(int,int) and Map#material(Vector2)
FootstepEmitter uses internal trigger frames instead of AnimationListener
Only works for Riiablo.game.player entity
This should be a good starting point for adding support for other entities
2020-07-05 01:33:44 -07:00
Collin Smith
596c430a15 Added function in Map.Zone to retrieve material type for tiles 2020-07-05 00:31:26 -07:00
Collin Smith
311c06b3ab Refactored DT1Materials to Material and aggregated functionality 2020-07-04 23:49:32 -07:00
Collin Smith
5166988466 Added parameter to addStateListener to control initialization
Param `init` tells whether or not StateListener#onLoaded is called
2020-07-04 18:45:25 -07:00
Collin Smith
ed0db89720 Added support for debugging tile materials within renderer 2020-07-04 17:08:48 -07:00
Collin Smith
dc32356f9d Fixed modal background size and placement 2020-07-04 16:20:46 -07:00
Collin Smith
3970e649ab Fixed issue with resetting cursor on mobile 2020-07-04 12:02:22 -07:00
Collin Smith
59c0f5ab11 Implemented support for buy, sell and repair cursors 2020-07-04 11:20:40 -07:00
Collin Smith
eeea7adde3 Improved cursor features
Added support for hotspot offset
Added methods that support setting a cursor with a specific page in a DC
Setting cursor to predefined cursor DC automatically applies hotspot
2020-07-04 11:20:19 -07:00
Collin Smith
9bf83e683a Buy, sell and repair buttons are now managed by a button group 2020-07-04 10:21:50 -07:00
Collin Smith
eff7d8cdd8 Reset buy/sell to unchecked state when config called 2020-07-04 02:41:20 -07:00
Collin Smith
dfbd3a3e6f Changed buy/sell buttons to be mutually exclusive 2020-07-04 02:40:47 -07:00
Collin Smith
9e56ff51db Removed clicklistener for blank buttons 2020-07-04 02:39:01 -07:00