From ed26b3d113e97b00ff0014e4dca900bdc4b1f1d3 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Mon, 22 Apr 2019 22:44:57 +0200 Subject: [PATCH] default value --- src/js/utilJS.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/js/utilJS.js b/src/js/utilJS.js index 00aacf74b2c..12f34267dc2 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) { -- GitLab