Merge pull request #1384 from vmesecher/dev

Fixes Corporation bribe uninentionally affect Bladeburners under cert…
This commit is contained in:
hydroflame 2021-09-26 20:59:12 -04:00 committed by GitHub
commit b758807ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

@ -25,7 +25,7 @@
overflow-y: auto;
z-index: 11; /* Sit on top of the container */
color: var(--my-font-color);
box-shadow: 0px 3px 5px -1px #090, 0px 5px 8px 0px #090, 0px 1px 14px 0px #090;
box-shadow: 0 3px 5px -1px #090, 0 5px 8px 0 #090, 0 1px 14px 0 #090;
}
.popup-box-input-div {

@ -17,7 +17,7 @@ export function BribeFactionPopup(props: IProps): React.ReactElement {
const [money, setMoney] = useState<number | null>(0);
const [stock, setStock] = useState<number | null>(0);
const [selectedFaction, setSelectedFaction] = useState(
props.player.factions.length > 0 ? props.player.factions[0] : "",
props.player.factions.length > 0 ? props.player.factions.filter(faction => Factions[faction].getInfo().offersWork())[0] : ""
);
function onMoneyChange(event: React.ChangeEvent<HTMLInputElement>): void {

@ -375,7 +375,7 @@ function NetscriptFunctions(workerScript: WorkerScript): NS {
};
// Utility function to get Hacknet Node object
const getHacknetNode = function (i: any, callingFn: string = ""): HacknetNode | HacknetServer {
const getHacknetNode = function (i: any, callingFn = ""): HacknetNode | HacknetServer {
if (isNaN(i)) {
throw makeRuntimeErrorMsg(callingFn, "Invalid index specified for Hacknet Node: " + i);
}