diff --git a/src/facilities/ads.js b/src/facilities/ads.js index 8494ed0c014a0ca0c1886618efb15300bc44a70f..3bdf35f2471472058f5a769152574aec937ee927 100644 --- a/src/facilities/ads.js +++ b/src/facilities/ads.js @@ -356,19 +356,7 @@ App.Ads.report = function(building, preview = false) { return t; } - function payVarietyBonus() { - if (!preview) { - if (building === "brothel") { - const adsIncome = DL*random(20, 30); - V.facility[building].adsIncome += adsIncome; - cashX(adsIncome, (building + "Ads")); - } else if (building === "club") { - repX(DL*random(5, 10), (building + "Ads")); - } - } - } - - function payAdBonus() { + function payBonus() { if (!preview) { if (building === "brothel") { const adsIncome = DL*random(20, 30); @@ -407,7 +395,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.assetSize); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers a `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -432,7 +420,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.stacked === pref) && (girls === adCampaign.stacked)) { - payAdBonus(); + payBonus(); t += `Its advertising for `; if (adCampaign.stacked === 1) { t += `stacked `; @@ -544,7 +532,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.preg); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers a `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -569,7 +557,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.preg === pref) && (girls === adCampaign.preg)) { - payAdBonus(); + payBonus(); t += `Its advertising for `; if (adCampaign.preg === 1) { t += `pregnant `; @@ -682,7 +670,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.mods); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -707,7 +695,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.modded === pref) && (girls === adCampaign.modded)) { - payAdBonus(); + payBonus(); t += `Its advertising for `; if (adCampaign.modded === 1) { t += `heavily modified `; @@ -819,7 +807,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.assetOrigin); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -844,7 +832,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.implanted === pref) && (girls === adCampaign.implanted)) { - payAdBonus(); + payBonus(); t += `Its advertising for `; if (adCampaign.implanted === 1) { t += `implanted or surgically improved `; @@ -956,7 +944,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.genitalia); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers a `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -987,7 +975,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.XX === pref) && (girls === adCampaign.XX)) { - payAdBonus(); + payBonus(); t += `Its advertising for girls `; if (adCampaign.XX === 1) { t += `with pussies `; @@ -1104,7 +1092,7 @@ App.Ads.report = function(building, preview = false) { } else { let variety = adMgr.varietyBonus(App.Ads.Categories.age); if (variety === 1) { - payVarietyBonus(); + payBonus(); t += `The ${building} offers girls `; if (building === "brothel") { t+= `<span class="yellowgreen">`; @@ -1129,7 +1117,7 @@ App.Ads.report = function(building, preview = false) { if (pref === 0) { /* customers don't care*/ } else if (adCampaign.spending > 0) { if ((adCampaign.age === pref) && (girls === adCampaign.age)) { - payAdBonus(); + payBonus(); t += `Its advertising matches most customers' age preferences and the girls in the ${building} match the ages as advertised. `; t += reputation(building, 1, preview); } else if ((adCampaign.age === pref) && (girls !== adCampaign.age)) {