- edited description
- changed version to future
- changed milestone to moddability
-
assigned issue to
[#bugs] **Feature request (modding):** some means of telling `XRL.CharacterBuilds.Embark...
Marked for crossposting by: books
Message (jump):
<kernelmethod> Feature request (modding): some means of telling
XRL.CharacterBuilds.EmbarkBuilder
not to save a new character build code tolastcharacter.txt
inEmbarkBuilder.exitWithInfo
.There isn't any way to tell
EmbarkBuilder
not to overwrite the last character build code when starting a new game. IIUC it's not even possible to patch out this method with Harmony, as it requires access to protected class attributes. This is problematic for game modes that are modded in since the generated build code may be incompatible with Qud's regular game modes (and the concept of a build code may not even make sense in these cases).At least for modding purposes this could be as simple as just moving the line
File.WriteAllText(DataManager.SavePath("lastcharacter.txt"), generateCode());
into a bespoke function, so that it can be prefix-patched with Harmony.
Comments (1)
-
repo owner - Log in to comment