mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
Real Estate takes a LITTLE bit of room
This commit is contained in:
parent
2e8cdc23d9
commit
cb6dfd1656
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -563,11 +563,8 @@ export class Industry implements IIndustry {
|
||||
}
|
||||
buyAmt = mat.buy * CorporationConstants.SecsPerMarketCycle * marketCycles;
|
||||
|
||||
if (matName == "RealEstate") {
|
||||
maxAmt = corporation.funds.toNumber() / mat.bCost;
|
||||
} else {
|
||||
maxAmt = Math.floor((warehouse.size - warehouse.sizeUsed) / MaterialSizes[matName]);
|
||||
}
|
||||
|
||||
buyAmt = Math.min(buyAmt, maxAmt);
|
||||
if (buyAmt > 0) {
|
||||
mat.qty += buyAmt;
|
||||
|
@ -12,7 +12,7 @@ export const MaterialSizes: IMap<number> = {
|
||||
Drugs: 0.02,
|
||||
Robots: 0.5,
|
||||
AICores: 0.1,
|
||||
RealEstate: 0,
|
||||
"Real Estate": 0,
|
||||
"AI Cores": 0,
|
||||
RealEstate: 0.005,
|
||||
"Real Estate": 0.005,
|
||||
"AI Cores": 0.1,
|
||||
};
|
||||
|
@ -110,7 +110,6 @@ function WarehouseRoot(props: IProps): React.ReactElement {
|
||||
|
||||
let breakdown = <></>;
|
||||
for (const matName in props.warehouse.materials) {
|
||||
if (matName === "RealEstate") continue;
|
||||
const mat = props.warehouse.materials[matName];
|
||||
if (!MaterialSizes.hasOwnProperty(matName)) continue;
|
||||
if (mat.qty === 0) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user