Open lilwhitemouse opened 4 months ago
How much unsolicited comments on code would you like, by the way?
Oh feel free to comment on code as much as you want. Yeah this is an issue that I've been struggling to fix, its not happening 100% of the time either - I'm unsure of what's going on. BaseOpinionRecache()
recaches opinion of all pawns on a specific ideo
Is the opinion based on their own ideo?
Well, I was going to put together a pull request, but you're building with C# version 12, and the highest I can use is C# 7. Things like return [baseIdeoOpinions[ideo] / 100f, PersonalIdeoOpinion(ideo) / 100f];
instead of the older return new float[2] {.....}
Trying to get that the make reasonable pull requests without changing large chunks of your code sounds complicated, unless you don't care about that
I'm sorry but what is even preventing you from using C# 12 in the first place? Yes, opinions are partially based on their own ideo as well - memes like supremacist will lower opinion of all other ideos, plus pawns get opinion from similar memes.
Monodevelop on Linux doesn't support C# 12
¯\_(ツ)_/¯
You'll want to clear all of the pawn's opinions if the ideo needing to be re-cached is theirs - if their own idea changes to a supremecist, e.g.
I downgraded the project to C# 7, its only a few minor changes.
Currently this means I can't reform the ideoligion because the exception stops processing the [DONE] button.
(Does the recaching also happen if the user makes changes with dev mode to an ideology?)
(If the ideo is the pawn's should it recalculate the opinions of all other ideologies?)