How to test whether sims are in a specific career in script
Hello all, thanks for reading.
I'm working on a mod that increases royalties based on sims' overmax level of writer career.I inject into
RoyaltyTracker.update_royalties_and_get_paid and get sims' career by calling
career= self.sim_info.career_tracker.get_career_by_category(CareerCategory.Work) and then I can get
career.overmax_level.
The problem is I don't know how to test whether the career is of specific type, in this case,
career_Adult_Writer.