VedVid / RAWIG

RAWIG (Roguelike Architecture, Written In Go) is ready to modify and expand roguelike architecture.
BSD 2-Clause "Simplified" License
16 stars 3 forks source link

After finishing menuses, polish Inventory and Equipment #51

Open VedVid opened 5 years ago

VedVid commented 5 years ago

For example, now there is code duplication.

p.InventoryMenu() is exactly the same as p.EquipmentMenu() but with different arguments. It should be easy to avoid such a code repetition: PrintInventoryMenu and PrintEquipmentMenu both creates slices of strings using Char of Object; it could be done by general ObjectsToStrings function.

But first, I'd like to have things done and working.