Fix sloppy unlinted hotfix code
This commit is contained in:
omuretsu 2023-05-27 01:58:47 -04:00
parent e03a366f12
commit ad3b217b8f
2 changed files with 1 additions and 2 deletions

@ -425,7 +425,7 @@ export class Division {
if (producableFrac > 0 && prod > 0) { if (producableFrac > 0 && prod > 0) {
const requiredMatsEntries = getRecordEntries(this.requiredMaterials); const requiredMatsEntries = getRecordEntries(this.requiredMaterials);
let avgQlt = 0; let avgQlt = 0;
let divider = requiredMatsEntries.length; const divider = requiredMatsEntries.length;
for (const [reqMatName, reqMat] of requiredMatsEntries) { for (const [reqMatName, reqMat] of requiredMatsEntries) {
const reqMatQtyNeeded = reqMat * prod * producableFrac; const reqMatQtyNeeded = reqMat * prod * producableFrac;
warehouse.materials[reqMatName].stored -= reqMatQtyNeeded; warehouse.materials[reqMatName].stored -= reqMatQtyNeeded;

@ -23,7 +23,6 @@ import Box from "@mui/material/Box";
import { LimitMaterialProductionModal } from "./modals/LimitMaterialProductionModal"; import { LimitMaterialProductionModal } from "./modals/LimitMaterialProductionModal";
import { CityName } from "../../Enums"; import { CityName } from "../../Enums";
import { CorpUnlockName } from "../data/Enums"; import { CorpUnlockName } from "../data/Enums";
import { getRecordKeys } from "../../Types/Record";
interface IMaterialProps { interface IMaterialProps {
warehouse: Warehouse; warehouse: Warehouse;