diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 00aacf74b2cc644e01778e05bd80ed70c53e6591..12f34267dc21154913cb0e01c79744625fcc95f3 100644 --- a/src/js/utilJS.js +++ b/src/js/utilJS.js @@ -1213,11 +1213,10 @@ window.SkillIncrease = (function() { /* call as SkillIncrease.Oral() */ /** @param {App.Entity.SlaveState} slave */ - function OralSkillIncrease(slave, skillIncrease) { + function OralSkillIncrease(slave, skillIncrease = 1) { const He = capFirstChar(slave.pronoun); const his = slave.possessivePronoun; let r = ""; - skillIncrease = skillIncrease || State.variables.skillIncrease || 1; if (slave.skill.oral <= 10) { if (slave.skill.oral + skillIncrease > 10) { @@ -1242,10 +1241,9 @@ window.SkillIncrease = (function() { /* call as SkillIncrease.Vaginal() */ /** @param {App.Entity.SlaveState} slave */ - function VaginalSkillIncrease(slave, skillIncrease) { + function VaginalSkillIncrease(slave, skillIncrease = 1) { const He = capFirstChar(slave.pronoun); let r = ""; - skillIncrease = skillIncrease || State.variables.skillIncrease || 1; if (slave.skill.vaginal <= 10) { if (slave.skill.vaginal + skillIncrease > 10) { @@ -1270,11 +1268,10 @@ window.SkillIncrease = (function() { /* call as SkillIncrease.Anal() */ /** @param {App.Entity.SlaveState} slave */ - function AnalSkillIncrease(slave, skillIncrease) { + function AnalSkillIncrease(slave, skillIncrease = 1) { const He = capFirstChar(slave.pronoun); const his = slave.possessivePronoun; let r =""; - skillIncrease = skillIncrease || State.variables.skillIncrease || 1; if (slave.skill.anal <= 10) { if (slave.skill.anal + skillIncrease > 10) { @@ -1299,11 +1296,10 @@ window.SkillIncrease = (function() { /* call as SkillIncrease.Whore() */ /** @param {App.Entity.SlaveState} slave */ - function WhoreSkillIncrease(slave, skillIncrease) { + function WhoreSkillIncrease(slave, skillIncrease = 1) { const He = capFirstChar(slave.pronoun); const his = slave.possessivePronoun; let r =""; - skillIncrease = skillIncrease || State.variables.skillIncrease || 1; if (slave.skill.whoring <= 10) { if (slave.skill.whoring + skillIncrease > 10) { @@ -1328,10 +1324,9 @@ window.SkillIncrease = (function() { /* call as SkillIncrease.Entertain() */ /** @param {App.Entity.SlaveState} slave */ - function EntertainSkillIncrease(slave, skillIncrease) { + function EntertainSkillIncrease(slave, skillIncrease = 1) { const He = capFirstChar(slave.pronoun); let r =""; - skillIncrease = skillIncrease || State.variables.skillIncrease || 1; if (slave.skill.entertainment <= 10) { if (slave.skill.entertainment + skillIncrease > 10) {