Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
That being said- I do very much like the sandbox option, I might disagree about it being 'cleaner' but I do believe giving someone the choice via sandbox options to be the better of the to resources.
In your edit, you use about 200 lines of code, add an anonymous event function that cannot be removed or modified by others (because it's anonymous), and you ultimately adjust 2 functions; the anonymous function, and another function with the following signature:
You also overwrite that function in a way that would be incompatible with updates to that function, since you do not reproduce its original behavior by function-copying, but rather by directly copying its current lines of code.
(EDIT: In fact, your original edit would override the entire original file, at second glance, because you reuse the original file name in the same location; therefore it would overwrite all changes to that file if both mods were loaded together in the future.)
In my new solution, the entire file that fixes the problem is 20 lines *including empty lines that purely exist for spacing and legibility*, so it's 1/10 as much code; it only edits one function; and the modified function uses the technique known as "function decoration" to ensure that whatever the original function does will still happen exactly as it does even if that function is updated *as long as the first two variables in its signature do not change*. My solution is so brief that I can post it in its entirety here:
As you can see, I actually call the original function in order to trigger all original behavior, and therefore if a patch adjusted what that function does, my decoration would likely remain compatible with said patch. That's what I mean by "cleaner" -- but I did not mean offense by that word choice. Your solution was effective for the current versions of the mods; it was just doing a bit more than it needed to be doing.
<3 Thank you nonetheless for handling this compatibility while I was away from modding. I still love that you did that.
Yes, there are two kinds of Meditation. The one with the icon comes from Lifestyle. The one with no icon is mine. I have not integrated this mod's behaviors with the skill tree in Lifestyle, but I did write this mod in such a way that patching it to do so would be entirely doable. I can't promise ever getting around to it myself, but I might help a bit here and there if you decide to tackle that integration and DM me on Discord (same name there).
So ya, i might just do that