Inventory System Update
Today’s work has left me with a working inventory system! Space Mercs is going to have an–as far as I can tell–entirely unique system of inventory management that will be integrated with the strategic nature of the game’s real-time combat. None of that is in yet. What we do have, however, is limited inventory slots, a system that checks to see whether the character has room to pick up an item before doing so, and one that rejects the Get behavior if the character is overburdened.
Things are coming along! I want to add item functionality tomorrow (although I have already started to integrate it into the Item class by linking it with a separate class called GameEffects that will manage healing, monster attacks, etc.
Here’s a pic of the @ picking up a key. There is one little bug where picking up an item works correctly, only updating the first status line. When you fail to pick up an item, however, it turns EVERY status line into a “You don’t have room for this” message. If anyone could give me some tips about how or why this is going on, I’d appreciate it.
If anyone knows C# and is willing to help out, here’s the code. The UpdateStatus(string) method turns the first status line into the referred string, then bumps each remaining string down one (if you’re curious and think it would help). Click to embiggen.