Collin Smith
0590ddc166
Fixed crash caused resulting by a previous fix which incorrectly unset target entity
2020-09-10 23:28:02 -07:00
Collin Smith
30f4190ead
Added support for MonsterLabelManager to draw monster health
...
Added support for MonsterLabelManager to draw monster health
Added percent and modal params to PaletteIndexedColorDrawable to allow use as a progress bar
2020-09-10 23:27:22 -07:00
Collin Smith
c906a20817
Added sound effect for hit impact
2020-09-10 22:50:47 -07:00
Collin Smith
39f3d5aaca
Added attack range check for left click
...
Added attack range check for left click
Added null check for dangling target
2020-09-10 22:41:02 -07:00
Collin Smith
c64042bafe
Created DamageHandler and implemented hit sounds
2020-09-10 19:16:08 -07:00
Collin Smith
4e0e2c142a
Created DamageEvent and dispatching
2020-09-10 19:11:28 -07:00
Collin Smith
7b227fe2ed
Committing DeathEvent
2020-09-10 19:09:14 -07:00
Collin Smith
61985ed440
Checks if target is still valid (some trailing event target ids?)
2020-09-10 18:40:27 -07:00
Collin Smith
28d6eddcb6
Another workaround for #113
2020-09-10 18:39:59 -07:00
Collin Smith
83c0e87a9a
Unset killer target if target was victim
2020-09-10 18:32:05 -07:00
Collin Smith
52edd64327
Fixed spelling error DC.Direction#toReadDir -> #toRealDir
2020-09-10 18:31:42 -07:00
Collin Smith
0087e832c2
Implemented monster deaths
...
Added AI death state and AI#kill() virtual method
DeathHandler handles state transition and entity disposal
2020-09-10 18:22:44 -07:00
Collin Smith
bfcee599bf
Increased damage and added death event with subscriber to play death sequence
2020-09-10 17:31:41 -07:00
Collin Smith
f3c9ff82aa
Fixed an issue where consecutive stat gets were corrupting previous values
2020-09-10 16:59:22 -07:00
Collin Smith
d77a109be2
Added support for getting a stat from Attributes into a provided tuple
2020-09-10 16:58:44 -07:00
Collin Smith
8acfe5bc1f
Created temp function to add support for negative float encoding until properly implemented
2020-09-10 16:46:19 -07:00
Collin Smith
a86b338dfa
Only draw hitpoints if greater than 0
2020-09-10 16:45:39 -07:00
Collin Smith
ff24b9f516
Created Attributes#getCopy(short) to return a (temp) copy of the specified stat
2020-09-10 16:45:00 -07:00
Collin Smith
00f75d014c
Added support for setting stat to sibling stat value
...
Changed order of hp,mp,stamina adjustments so they match again
2020-09-10 16:21:55 -07:00
Collin Smith
a9f4e35016
Disabled hitpoints background (was making hitpoints foreground hard to see)
2020-09-10 14:06:22 -07:00
Collin Smith
484e5b867f
Actioneer now changes hitpoints of target for attack spell
2020-09-10 14:03:22 -07:00
Collin Smith
7d507f0501
Refactored from StatRef to float
...
Refactored from StatRef to float
Added label with hitpoints and maxhp values
2020-09-10 14:03:00 -07:00
Collin Smith
f2d16a8c50
Created Stat#decode(short,int) to perform val shift
...
Changed val shift operatios to use Stat#encode and #decode
2020-09-10 14:01:09 -07:00
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
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