MAS-Extraplus icon indicating copy to clipboard operation
MAS-Extraplus copied to clipboard

Coming back to the submod

Open Stake2 opened this issue 4 months ago • 2 comments

Hello, welcome back to the submod! :3 I loved the new changes in the beta release, thanks for making them! I'm excited for the stable release!

Does the affection check read the affection directly from the file or does it cache (store) the number on the game instance (RAM)? Like, when the game opens and my affection is at 100, and I say "I love you" to Monika, it goes up by 5, now being 105 Does the affection check and "A" key show 100 (original) or 105 (updated)?

Stake2 avatar Sep 02 '25 03:09 Stake2

Thank you! You are the first user who told me this in such a curious way. About that, it is stored in a temporary variable that calls the function programmed by the MAS Devs, mas_affection._get_aff(), and then it is converted to an integer with the int() function. The line of code is just this: affection_value = int(mas_affection._get_aff()) and that is how it is displayed on screen. That is why it will give you the current affection (105), but I forgot to remove the decimals in the beta. The line of code there is: affection_value = "{:.2f}".format(mas_affection._get_aff()) which is why it shows up as 105.39. I made a lot of changes and had mistakenly left that in, but it will be fixed in the next beta I plan to release since there are still many things I want to add.

zer0fixer avatar Sep 03 '25 02:09 zer0fixer

Oh, that's so interesting! Hehe Good to know Thanks for the reply! 😊

Stake2 avatar Sep 03 '25 03:09 Stake2