Adding new facts and sub-entries to vanilla ship log entries #996
Labels
feature
Features that should be implemented
fixed in dev
Instead of closing issues when you fix them in dev just add this.
Feature
For mods that involve vanilla locations, it would be nice to be able to add additional rumor and explore facts as well as sub-entries in order to connect base game content to the new modded content. Modifying or merging changes into the base game entries would be out of scope for this request; only adding new facts and entries that then get attached to the correct vanilla entry.
I'm thinking the easiest way to implement this is by allowing "dummy" entries in player-created ship log XML files that share the same ID as a vanilla entry. The facts and sub-entries attached to this dummy entry would be relocated to the vanilla entry and the dummy entry would be discarded. The other fields would be ignored (unless we allowed some of them to be merged/overridden as a future enhancement).
Code-wise, we can look for any previously loaded ship log entries with the same ID in
ShipLogManager
, strip the XML for those entries from the XML file we feed intoRumorModeBuilder.AddShipLogXML
, then pass the child XML nodes to theShipLogFact
andShipLogEntry
constructors with the parent ID of the vanilla entry and add the resulting objects to the arrays on the vanilla entry.Context
No response
The text was updated successfully, but these errors were encountered: