Just found the reason for this: when you look into js/plugins/SH_BenriCommands.js you can see the function definition
JavaScript:
function SH_sexExp(name,num) {//Count the number of partners
// Unique characters can only be used once. Get them using length and separate them from the unspecified number of characters.
//console.log(name)
if(!$gameSwitches.value(9)){//Off during reminiscence
var array = $gameVariables.value(291) // Assign unique character array
if(!num)num = 1 //Can be omitted if not many
if(array == 0 || array == null) array = [] // Make it an array if it is the initial value
if(name == "unknown" || name == "Unknown Character"){//Add to number of people if the other person is unknown
$gameVariables._data[292] += num
} else if(!array.includes(name)) { //If not unknown and the name is not in the array, add it to the array
array.push(name) // Add name
$gameVariables._data[291] = array // Update unique character array
$gameVariables._data[293] = array.length // Assign the number of elements in the array
};
$gameVariables._data[153] = $gameVariables.value(292) + $gameVariables.value(293) // total experience
}
}
which should tell you the non specific partner count should go up by
num as long as the
name is either "unknown" or "Unknown Character". But when you look at data/CommonEvents.json, this function gets used like
Code:
SH_sexExp("Bar Customer",3)
and such, often with either a specific name or a generic NPC title, so the non specific count never goes up. Here's how I fixed it
JavaScript:
function SH_sexExp(name,num) {//Count the number of partners
// Unique characters can only be used once. Get them using length and separate them from the unspecified number of characters.
//console.log(name)
if(!$gameSwitches.value(9)){//Off during reminiscence
var array = $gameVariables.value(291) // Assign unique character array
if(!num)num = 1 //Can be omitted if not many
if(array == 0 || array == null) array = [] // Make it an array if it is the initial value
const uniqueNames = ["Nazar", "Guard Byne", "Kindhearted Bowlon", "Jemmi", "Naughty Marcel", "Tailor Paleal", "Auborne", "Warehouseman Carrio", "Director Parm", "Grant", "Patron Mogeurre"];
if(!uniqueNames.includes(name)){//If the person is unknown, add them to the number of people
$gameVariables._data[292] += num
} else if(!array.includes(name)) { //If not unknown and the name is not in the array, add it to the array
array.push(name) // Add name
$gameVariables._data[291] = array // Update unique character array
$gameVariables._data[293] = array.length // Assign the number of elements in the array
};
$gameVariables._data[153] = $gameVariables.value(292) + $gameVariables.value(293) // total experience
}
}
which means the non specific partner count should go up by
num as long as the
name is none of the unique names listed above.