Use const Vec2s
Code style
Indentation
Use Vec2s
Code style
Indentation
Return early
Code style
Indentation
Continue early
Add temporary variable
Unify copy-paste, assert valid player.bag
Unify copy-paste, assert valid player.bag
Unify copy-paste, assert valid player.bag
Unify copy-paste, assert valid player.bag
Move variables to smaller scopes
Return early
Assert valid player.bag
Code style
Indentation