From ec1b5981c470fde6f41f28ec1c4e0005acab544c Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Mon, 2 Mar 2020 20:42:02 -0500
Subject: [PATCH] fixed ads, I think

---
 src/facilities/ads.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/facilities/ads.js b/src/facilities/ads.js
index a0532baa260..c72090268bb 100644
--- a/src/facilities/ads.js
+++ b/src/facilities/ads.js
@@ -1139,14 +1139,14 @@ App.Ads.report = function(building, preview) {
 		// Results
 		if (pref === 0) { /* customers don't care*/
 		} else if (adCampaign.spending > 0) {
-			if ((adCampaign.spending === pref) && (girls === adCampaign.spending)) {
+			if ((adCampaign.age === pref) && (girls === adCampaign.age)) {
 				payAdBonus();
 				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.spending === pref) && (girls !== adCampaign.spending)) {
+			} else if ((adCampaign.age === pref) && (girls !== adCampaign.age)) {
 				t += `Its advertising matched most customers age preferences, but the girls in the ${building} are not as advertised. `;
 				t += reputation(building, -1, preview);
-			} else if ((girls === pref) && (girls !== adCampaign.spending)) {
+			} else if ((girls === pref) && (girls !== adCampaign.age)) {
 				t += `The ages of girls in the ${building} did not match the ages as advertised, but since the girls in the ${building} matched most customers age preferences, `;
 				t += reputation(building, 0, preview);
 			} else if (girls !== pref) {
-- 
GitLab