Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[WIP][CR]Home Base #22311
Here is the long overdue PR to open my addition of bases up to review. Most of it is currently either partially implemented or just declarations especially since I have been frequently changing things including large mechanics change that just scrapped a lot of code the other day. However, it should be well documented and filled out enough for people to understand where I'm going. Also, I wrote a first draft of the help page so code reviewers: start there.
Essentially, the idea is construct a "command core" inside a building and that building gets designated as your base. The command core can be anything from a desk you write notes on to a super fancy computer console. A better core gives you more functionality and allows you to create a "command system" by adding "auxiliary systems." Remote systems like speakers and defenses can then be linked to the command system through the use of a network module. Network and CPU capacity are then added to prevent someone running NORAD from a desk with a laptop on it.
The end goal is to make an environment where NPCs can effectively live and be useful in the player's absence. For now I have said if someone is going to agree to live here then at minimum they will demand a place to sleep and stash there stuff resulting in a loose population limit.
I'm adding another layer to the map similar to traps and effects for flags specific to the base which isn't that useful at the moment but will be essential come time to add NPC base behavior.
-I have yet to even look at the json parser for saving/loading the base.
Since I am essentially trying to add a whole new aspect to the game I was more concerned with getting my plans across properly. I'll trim out a bunch of stuff before it's rdy; in my experience, adding stubs and a lot of comments is much more effective than me trying to explain my thoughts.