1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-26 12:06:24 -05:00
OpenDiablo2/d2core
lord 9e61079e93
Stats refactor (#617)
* add interface for stats, d2 is an implementation

* fix incorrect comment, remove ennecessary int

* simplified description functions, remove duplicates

* moved default stringer functions

* fixed incorrect stat combine method

* change `Create` to `New` in method names

* d2stats + diablo2stats refactored again

- simplified `NewStat` provider function
- added initializer for stat values that sets the stringer functions, value types, and combination types for values when created
- removed redundant description functions
- added stat value combination types `sum` and `static`

`static` stat values which are not altered when stats are combined. this makes sense for stats like proc-on-hit or +skills to class

example:
	Stat A: `10% reanimate as: skeleton mage`
	Stat B: `8% reanimate as: skeleton archer`
	Stat C: `6% reanimate as: skeleton archer`

	A and B can not be combined
	B and C can be combined to `14% reanimate as: skeleton archer`
2020-07-23 22:12:48 -04:00
..
d2asset lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2audio/ebiten lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2config Removed Configuration interface (#560) 2020-07-08 09:16:16 -04:00
d2gui removed most lint errors in d2gui (#604) 2020-07-18 18:06:36 -04:00
d2hero moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2input lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2inventory moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2map lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2object entity debug rendering (#609) 2020-07-21 08:51:09 -04:00
d2render/ebiten lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2screen lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2stats Stats refactor (#617) 2020-07-23 22:12:48 -04:00
d2term lint fixes (#615) 2020-07-23 12:56:50 -04:00
d2ui lint fixes (#615) 2020-07-23 12:56:50 -04:00