roguelike-tutorial
roguelike-tutorial copied to clipboard
Try to special-case the player less
There's a few places that become unnecessarily complicated by treating the player Object
differently to the other ones. For example:
- inventory and equipment: https://github.com/tomassedovic/roguelike-tutorial/blob/11e50b1939b101a0adffa4e4c6fef957a20f593f/src/bin/part-13-adventure-gear.rs#L291
- https://github.com/tomassedovic/roguelike-tutorial/blob/11e50b1939b101a0adffa4e4c6fef957a20f593f/src/bin/part-13-adventure-gear.rs#L677