const passiveRequirements = [
{passiveId: PPASSIVE_MAX_MOUTH_DESIRE_FIRST_ID, recordName: '_recordMaxReached50MouthDesireCount'},
{passiveId: PASSIVE_MAX_MOUTH_DESIRE_SECOND_ID, recordName: '_recordMaxReached75MouthDesireCount'},
...<400 lines of structured passives>...
{passiveId: PASSIVE_SEXUAL_PARTNERS_ROGUE_THREE_ID, recordName: '_recordSexualPartnersRogue', isDemo: true},
];
for (const {passiveId, requirement, isDemo} of passiveRequirements) {
if(
this.meetsPassiveReq(passiveId, this[requirement]) &&
this.hasPassive(passiveId) &&
(isDemo || !$gameParty.isDemoVersion())
) {
this.learnNewPassive(passiveId);
}
}