* remove magic 'et' file
* ds1 refactor: test for InsertFloors; fixed inserting bug
* ds1: global method for getting layers group; fixed Delete.. bug (group var in delete meghod wasn't pointer
* ds1: lintfix
* ds1: remove ds1.ds1Layers.Orientation
* ds1: lintfix
* ds1: addet getMaxGroupLen method
* ds1: insert now returns if after inserting group will be greater than max number of ...
* ds1: add common test for ds1Layers.Insert...
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* ds1 refactor test: example data
* added loader check
* ds1 refactor: fixed bug, with loading substitutions; added descriptive error message in engine.go:118 and changed Logger.Error with Logger.Fatal
* ds1 refactor: fixed loading bug
* ds1 refactor: fixed bug when walls wasn't rendered (now we can see only walls :-)
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* ds1 refactor: added test fore some methods; put tests in right order
* ds1 refactor: unit tests for all methods
* ds1 refactor: fixed build errors
* ds1 refactor: lintfix
* ds1 refactor: fixed bug with SetWidth, SetHeight methods
* ds1 refactor: rename tile_record.go -> tile.go
* ds1 refactor: unit test for SetTiles
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* ds1 refactor: added test fore some methods; put tests in right order
* ds1 refactor: unit tests for all methods
* ds1 refactor: fixed build errors
* ds1 refactor: lintfix
* ds1 refactor: fixed bug with SetWidth, SetHeight methods
* ds1 refactor: rename tile_record.go -> tile.go
* ds1 refactor: unit test for SetTiles
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* Init for gold button and label
* gold button and label in inventory menu
* gold value saved/loaded from player save file
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* logger for d2audio & d2map
* logger for d2ui e.t.c
* d2inventory now passes on error messages
* no more importing log in d2core
* implemented #925
* added logger to part of d2networking & fixed "need to be changed" comments
* fixed lints
* fixed errors
Co-authored-by: M. Sz <mszeptuch@protonmail.com>
* Return errors for #790
* Fixing lint issues
* Returning nil instead of empty struct pointer
* Removed new hero stat calls as new player requires stats to be passed in. These were using defaults regardless of the save file.
* Removed override on the default to health/mana/experience. These should now result is proper values.
* Removed new hero stat calls as new player requires stats to be passed in. These were using defaults regardless of the save file.
* Removed override on the default to health/mana/experience. These should now result is proper values.
* saving of player should be done on the server. That's also where the loading happens.
* refactor nearly everything, but this time it looks not that bad...
* MAke Linter happy
* Typo... uuups
* suppressing the magic number lint errors in mapgen, it will get a heavy refactor soon, hopefully...
* adding string token constants for SkillClass
* adding panic on error to left/right skill select render
* fixed cuddle lint error
* fixed unnecessary conversion, unused func param lint errors in dcc_animation.go
* adding comment for skill class tokens
* fixed typo in comment
* removed unused parameter in dcc/dc6 animations
* supress warning about Object.setMode always being passed direction value of 0
* fixed all invalid golint directives
* fixed a couple gocritic lint errors
* removed the rest of the magic number errors from d2game
* hotfix for bug i added in map engine test
* removed all TODO's in project, made issues on github for each one
* removed the rest of the magic number errors from d2game
* hotfix for bug i added in map engine test
* removed TODO's from d2mapengine/engine.go, added link to github issue
* removed TODO's and made issues and other minor lint work
* lint cleanup, mostly removing TODO's and putting links to their issues on github
* d2game/d2player/inventory.go: magic number lint cleanup
* d2game/d2player/mini_panel.go: magic number lint cleanup
* d2game/d2player/skill_select_panel.go: lint cleanup
* d2game/d2player/skilltree.go: removed all lint errors
* removed the rest of the magic number errors from d2game
* hotfix for bug i added in map engine test
* all magic numbers removed (excluding mapgen)
- Clicking the active left/right skill now opens a skill select panel.
Only the available skills for the hero, which are valid for the panel type are shown.
Clicking on a skill from the skill select panel makes it the new active skill for the hero.
- Hovering a skill in the skill select panel shows the skill name +
skill description.
- New command which learns all skills for a specific
class(not persisted to a save file yet) - e.g. `learnskills ama` will learn
skills for the Amazon class.
- Initialize HeroSkill.shallowHeroSkill struct in the hero state factory, so we can use it
when we serialize the HeroSkill to packets/game save files.
- The parsed Skill.ListRow is now a number instead of string.
Co-authored-by: Presiyan Ivanov <presiyan-ivanov@users.noreply.github.com>
* Casting a skill now plays the corresponding overlay(if any).
* Prevent a crash caused by nil pointer in HeroSkill deserialization, happening when
unmarshalling HeroSkill from packets as a remote client.
* Add PlayerAnimationModeNone to handle some of the Skills(e.g.
Paladin auras) having "" as animation mode.
* Joining a game as remote client now waits for map generation to finish
before rendering map or processing map entities. This is temporary hack to prevent the game from
crashing due to concurrent map read & write exception.
* Send CastSkill packet to other clients.
Co-authored-by: Presiyan Ivanov <presiyan-ivanov@users.noreply.github.com>