collinsmith / riiablo

Diablo II remade using Java and LibGDX
http://riiablo.com
Apache License 2.0
884 stars 101 forks source link

hotkeys on desktop should be left/right specific #33

Closed collinsmith closed 5 years ago

collinsmith commented 5 years ago

Hotkeys on desktop are currently changing both left and right skills when pressed. E.g., lightning is assigned a right skill hotkey and is also changing left skill.

collinsmith commented 5 years ago

I'll need to investigate how assigning hotkeys to left skills effects the save file. It may be that the top 8 indexes are left skills (d2s saves 16 skills).

collinsmith commented 5 years ago

0x8000 is the bit used to represent if the skill is a left skill. Created method in Player which bitwise or with this mask when checking left skills and prevents those from getting the hotkey set as well. Long term, I want this moved from Player to GameScreen -- Player should only be an entity, while GameScreen should represent the in-game client, however this needs to manage the D2S as well.