Skip to content
Snippets Groups Projects
Commit 4a9c45dd authored by Blank_Alt's avatar Blank_Alt Committed by Pregmodder
Browse files

fixSlaveMarkets_bulkAvailable

parent 008b8450
No related branches found
No related tags found
1 merge request!11403fixSlaveMarkets_bulkAvailable
......@@ -146,7 +146,7 @@ App.UI.buySlaves = function() {
"Market"
)
);
if (store.bulkAvailable) {
if (store.bulkAvailable !== false) {
if (V.cash > (minCost * 5)) {
linkArray.push(
App.UI.DOM.link(
......
......@@ -9,7 +9,7 @@
* @property {string} [note]
* @property {string} [encyclopedia]
* @property {string} [sale]
* @property {boolean} [bulkAvailable=false/notDefined]
* @property {boolean} [bulkAvailable=true] Considered true unless noted otherwise.
* @property {boolean|string} [requirements] if requirements failed, may return string explaining why
*/
......@@ -21,20 +21,21 @@ App.Data.Markets = {
marketType: "corporate",
get note() { return `Slaves from your corporation${V.corp.Market === 1 ? ` purchased at a discounted rate.` : ``}`; },
encyclopedia: "The Corporation",
bulkAvailable: true,
get requirements() { return (V.corp.Incorporated === 1); }
},
{
title: "The Flesh Heap",
marketType: "heap",
note: `Broken and discarded slaves. Near useless, but cheap. No longer does bulk orders after complaints.`,
encyclopedia: "The Flesh Heap"
encyclopedia: "The Flesh Heap",
bulkAvailable: false
},
{
title: "Order a custom husk slave from the Flesh Heap",
marketType: `Husk Slave`,
note: `Will need to be used on arrival.`,
encyclopedia: "The Flesh Heap",
bulkAvailable: false,
get requirements() { return (V.bodyswapAnnounced === 1); }
},
{
......@@ -85,7 +86,6 @@ App.Data.Markets = {
marketType: "trainers",
note: "Slaves will tend to be good quality and obedient.",
encyclopedia: "Stables",
bulkAvailable: true,
get requirements() { return (V.rep > 4000) ? true : `You are not reputable enough to buy trained slaves.`; }
},
{
......@@ -93,7 +93,6 @@ App.Data.Markets = {
marketType: "wetware",
note: "Ruined bodies but keen minds. Requires some TLC, but offers outstanding training at a discount.",
encyclopedia: "Wetware CPUs",
bulkAvailable: true,
get requirements() { return (V.arcologies[0].FSPaternalist === "unset") ? true : `The paternalistic nature of your society blocks the abusive Wetware CPU manufactures from operating within your arcology.`; }
},
{
......@@ -212,6 +211,7 @@ App.Data.Markets = {
marketType: "Slave Shelter",
note: "Presents charity cases for a nominal fee.",
encyclopedia: "Discarded Slaves",
bulkAvailable: false,
get requirements() {
if (V.arcologies[0].FSDegradationist !== "unset") {
return `The Slave Shelter does not place slaves into Degradationist arcologies.`;
......@@ -233,6 +233,7 @@ App.Data.Markets = {
marketType: "Household Liquidator",
note: "Offers slaves close to one another at a very high price.",
encyclopedia: "Household Liquidations",
bulkAvailable: false,
get requirements() { return (V.rep > 8000) ? true : `You are not reputable enough to consult the household liquidator.`; }
},
{
......@@ -240,6 +241,7 @@ App.Data.Markets = {
marketType: "Custom Slave",
note: "Customizable but very expensive.",
encyclopedia: "Kidnapped Slaves",
bulkAvailable: false,
get requirements() { return (V.rep > 10000) ? true : `You are not reputable enough to order custom slaves.`; }
},
{
......@@ -247,6 +249,7 @@ App.Data.Markets = {
marketType: "JobFulfillmentCenterOrder",
note: "Fills leaderships roles for a price.",
encyclopedia: "The Job Fulfillment Center",
bulkAvailable: false,
get requirements() { return (V.rep > 10000); }
},
{
......@@ -254,6 +257,7 @@ App.Data.Markets = {
marketType: "Prestigious Slave",
note: "Variable and expensive.",
encyclopedia: "Slave Schools",
bulkAvailable: false,
get requirements() { return (V.rep > 12000) ? true : `You are not reputable enough to bid on prestigious slaves.`; }
},
{
......@@ -261,6 +265,7 @@ App.Data.Markets = {
marketType: "Elite Slave",
note: "Limited and very expensive.",
encyclopedia: "Slave Schools",
bulkAvailable: false,
get requirements() { return (V.propOutcome === 1); }
},
{
......@@ -268,6 +273,7 @@ App.Data.Markets = {
marketType: "Special Slave",
note: "Variable and expensive.",
encyclopedia: "Pre-Owned Slaves",
bulkAvailable: false,
get requirements() { return (V.rep > 14000) ? true : `You are not reputable enough to acquire other slaveowners' stock.`; }
},
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment