diff --git a/src/events/scheduled/murderAttempt.js b/src/events/scheduled/murderAttempt.js index 214078a4be325975a8cf76a53426bb630eb12354..6329b5e6483eaa5318d05ef4863b9b2231939424 100644 --- a/src/events/scheduled/murderAttempt.js +++ b/src/events/scheduled/murderAttempt.js @@ -275,18 +275,30 @@ App.Events.murderAttempt = function() { ); break; case "slave": - paragraphStart.push(companyName, "is dealing in a special kind of enslavement. Instead of searching for buyers for the slaves they already have, they instead first search for buyers and enslave those the buyer wants to buy. And while you can at many companies pre buy slaves with certain traits,", - companyName, "enslaves the exact individuals you want, fabricating debt or even kidnapping until they own their target."); - options.push( - new App.Events.Result("Enslaving that annoying guy from high school might be petty, but it will be worth it nonetheless.", accept("school"), "Costs ¤50.000"), - new App.Events.Result("There is a rising star in the music industry who would fit perfectly in your stable.", accept("star"), "Costs ¤250.000"), - new App.Events.Result("There is no one you want to enslave right now.", refused) - ); + paragraphStart.push(companyName, + "is dealing in a special kind of enslavement. Instead of searching for buyers for the slaves they already have, they instead first search for buyers and enslave those the buyer wants to buy. And while you can at many companies pre buy slaves with certain traits,", + companyName, + "enslaves the exact individuals you want, fabricating debt or even kidnapping until they own their target."); + if (V.cash >= 50000) { + options.push(new App.Events.Result( + "Enslaving that annoying guy from high school might be petty, but it will be worth it nonetheless.", + accept("school"), "Costs ¤50.000")); + } + if (V.cash >= 250000) { + options.push(new App.Events.Result( + "There is a rising star in the music industry who would fit perfectly in your stable.", + accept("star"), "Costs ¤250.000")); + } + options.push(new App.Events.Result(`There is no one you ${options.length > 0 ? "want to" : "can"} enslave right now.`, refused)); break; case "drug": paragraphStart.push(companyName, "has developed a new performance enhancing drug that can greatly enhance a humans productivity. It does however come with serious drawbacks making it unusable for sex slaves, but it could immensely enhance the performance of your menial slaves."); + if (V.cash >= 100000) { + options.push(new App.Events.Result("Making more money from your menials is always good. Buy the drug.", accept(), "Costs ¤100.000")); + } else { + options.push(new App.Events.Result(null, null, "You don't have the cash required to buy the drug.")); + } options.push( - new App.Events.Result("Making more money from your menials is always good. Buy the drug.", accept(), "Costs ¤100.000"), new App.Events.Result("With the few menials you have you will not recoup the costs for the drug anytime soon.", refused) ); break;