Commit Graph

1579 Commits

Author SHA1 Message Date
Collin Smith
0ba173404c Added support for stat subtraction 2020-09-10 13:54:47 -07:00
Collin Smith
d11303fb61 Added health bar above entities with health in debug render mode 2020-09-10 13:29:23 -07:00
Collin Smith
eca9ba9908 Created Attributes#contains(short) 2020-09-10 13:28:49 -07:00
Collin Smith
6592ef0291 Added bounds check on Attributes list to prevent an IOOBE
I considered allowing null returns and handling gracefully, however I prefer seeing that error message for the time being, as this should be addressed
2020-09-10 13:11:50 -07:00
Collin Smith
15d2b13bff Changed visibility of some StatList methods to public
Exposed #numLists(), #maxLists(), #contains(int) and #get(int)
2020-09-10 13:09:22 -07:00
Collin Smith
e7d868106d Successfully replaced com.riiablo.item.Attributes with com.riiablo.attributes.Attributes
Completed coupling systems to use new attributes package
Hopefully I didn't miss anything, because this sucked
2020-09-10 02:20:43 -07:00
Collin Smith
1a84778164 Temporary workaround for #113 2020-09-10 02:13:33 -07:00
Collin Smith
5935314a44 Fixed bug where bit shit was as an int and not a long 2020-09-10 01:35:24 -07:00
Collin Smith
7f5149baa7 Committing test parent class 2020-09-09 23:55:27 -07:00
Collin Smith
92d0728e07 Replaced com.riiablo.attributes with com.riiablo.attrs 2020-09-09 18:52:41 -07:00
Collin Smith
531aa9323c Committing next iteration of attributes package 2020-09-09 18:41:22 -07:00
Collin Smith
2f58fbd5cc Moved Fixed to com.riiablo.math 2020-09-09 17:55:49 -07:00
Collin Smith
92dbec8581 Set gdx-ai to 1.8.2 2020-09-09 13:42:47 -07:00
Collin Smith
9efc2bb5c3 Fixed issue where encoding was passed an incorrect parameter 2020-09-09 03:18:03 -07:00
Collin Smith
94c30110de Implemented basic stat mod tracking support 2020-09-08 13:13:55 -07:00
Collin Smith
13fc89b9f8 StatListReader will apply ValShift to read stats that aren't cs 2020-09-08 13:02:20 -07:00
Collin Smith
f45168a133 Improved Fixed utils
Made class final
Changed from bit shift to lookup table
2020-09-08 13:01:51 -07:00
Collin Smith
73e1be417a op stats now add with agg stats 2020-09-08 13:00:54 -07:00
Collin Smith
027f923409 Implemented StatListBuilder#add(short,int) 2020-09-07 13:58:21 -07:00
Collin Smith
92a4061173 Implemented stat mod flag and checking 2020-09-07 13:57:42 -07:00
Collin Smith
bbf3fa1eb6 Exposed exposed param() as params() to avoid misuse 2020-09-07 13:57:15 -07:00
Collin Smith
5115403733 Created StatList#put(short,StatGetter) to copy other stats into a stat 2020-09-07 13:23:08 -07:00
Collin Smith
fc23ab05b5 Added copy method for StatGetter to preserve a reference 2020-09-07 13:22:12 -07:00
Collin Smith
1c9e858798 Updated test with interleaved update sequences 2020-09-07 01:35:34 -07:00
Collin Smith
f215a7f191 Added support for pooling UpdateSequence instances to allow asynchronous sequencing 2020-09-07 01:28:19 -07:00
Collin Smith
aadc9d2de8 Removed requirement for AttributesUpdater to be stateful
Used a clever trick on StatList.StatIterator, where read stats can be pushed onto the list starting from the front. The result is a sorted list not containing elements which were not added back.
2020-09-07 01:15:55 -07:00
Collin Smith
f121cc8a7a Replaced AttributesUpdater with Updater and renamed it
Replaced AttributesUpdater with Updater and renamed it
Fixed existing StatListLabeler tests
2020-09-07 00:12:42 -07:00
Collin Smith
7ccebec402 Created boolean parameter to determine stat list capacity
Created boolean parameter to determine stat list capacity for AggregateAttributes initialization
2020-09-06 23:48:44 -07:00
Collin Smith
d69de2b357 Added experimental iteration of AttributeUpdater called Updater 2020-09-06 21:29:35 -07:00
Collin Smith
e6f97c2025 Added support for larger StatList instances
Aggregate lists may contain many stats, added special instance
2020-09-06 20:40:11 -07:00
Collin Smith
b7bf3ca62a Disabled warning message for StatListGetter#get(short)
assigning #get() and checking null is a common usage
2020-09-06 16:16:18 -07:00
Collin Smith
947862be1a Changed visibility of item flag management static functions to public
Created StatListFlags#getAggItemFlags to update flags for agg list
2020-09-06 16:06:18 -07:00
Collin Smith
d55eb801d8 Added assertion trigger if undefined case ever occurs 2020-09-06 15:41:29 -07:00
Collin Smith
f47c949101 Tightened up AttributesUpdater
Renamed opAttrs to opBase
Reorganized params more logically to function
Added note regarding possibly deficiency from original impl and op stats
2020-09-06 15:39:04 -07:00
Collin Smith
d0e69cf74c Added additional check on gem attributes listFlags 2020-09-06 13:06:38 -07:00
Collin Smith
fc1b7a73a1 Created StatListGetter#getValue(short,int) to retrieve a default int or value if non-null 2020-09-06 12:42:31 -07:00
Collin Smith
f21bf0339a Renamed Attributes#update methods to #aggregate 2020-09-06 12:31:03 -07:00
Collin Smith
5cb04016cc Changed attributes log level to debug 2020-09-06 05:09:14 -07:00
Collin Smith
c127475007 Significantly tightened up code
Touched about every line of code to validate behavior
2020-09-06 05:05:47 -07:00
Collin Smith
f69db25728 Changed from instanceof to check if attrs is simple 2020-09-06 01:41:42 -07:00
Collin Smith
b5c33a313f Removed unneeded block -- managed by StatListReader 2020-09-06 01:29:44 -07:00
Collin Smith
85303c28cc Replaced Attributes in com.riiablo.item with com.riiablo.attributes for D2SReader 2020-09-06 01:28:31 -07:00
Collin Smith
a72b317dc9 Added logging for all value modifications and set to info level 2020-09-06 01:22:44 -07:00
Collin Smith
96069e98e2 Fixed GemGenerator not checking attrs type properly 2020-09-06 00:59:06 -07:00
Collin Smith
9ed7b82c08 Added type marker to Attributes
Added byte type value to represent what kind of attrs it is
Rolled GemAttributes into AggregateAttributes
GemAttributes are now marked using added marker
`Complex` attribute lists have types > 0
StatListWrapper set to type 0
2020-09-06 00:42:20 -07:00
Collin Smith
1dabb6f6b8 Removed content, ultimately not needed 2020-09-06 00:20:45 -07:00
Collin Smith
6f86f4048c Added method for accessing gem attribute selected flag 2020-09-06 00:18:03 -07:00
Collin Smith
49f293c494 Added method to validate flags for gem stat lists 2020-09-06 00:17:25 -07:00
Collin Smith
57e1052e9f Created consts for gem list flags 2020-09-06 00:06:58 -07:00
Collin Smith
ec802d7c04 Changed visibility of StatListGetter#builder to public 2020-09-05 19:50:04 -07:00