b1t_flume.exe program can now be created instantly (reqd hacking level is 1 instead of 5). Fixed some linting errors

This commit is contained in:
danielyxie
2018-08-29 15:25:01 -05:00
parent aa18420e0c
commit 63cd269d5e
5 changed files with 15 additions and 13 deletions

View File

@ -15,7 +15,7 @@
padding: 10px; padding: 10px;
border: 5px solid #fff; border: 5px solid #fff;
width: 23%; width: 23%;
overflow:hidden; overflow: hidden;
background-color: #444; /* Fallback color */ background-color: #444; /* Fallback color */
color: #fff; color: #fff;
@ -64,9 +64,9 @@
} }
*/ */
#interactive-tutorial-exit { #interactive-tutorial-exit {
position:absolute; position: absolute;
bottom: 0; bottom: 0;
left:0; left: 0;
} }
#interactive-tutorial-back { #interactive-tutorial-back {

View File

@ -579,7 +579,6 @@ a:visited {
&.active:after { &.active:after {
content: "\2796"; /* "minus" sign (-) */ content: "\2796"; /* "minus" sign (-) */
} }
} }
.accordion-panel { .accordion-panel {

View File

@ -83,9 +83,9 @@ const Programs = {
time: CONSTANTS.MillisecondsPerQuarterHour, time: CONSTANTS.MillisecondsPerQuarterHour,
}), }),
BitFlume: new Program("b1t_flum3.exe", { BitFlume: new Program("b1t_flum3.exe", {
level: 5, level: 1,
tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)", tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)",
req: function() {return Player.sourceFiles.length > 0 && Player.hacking_skill >= 5}, req: function() {return Player.sourceFiles.length > 0 && Player.hacking_skill >= 1},
time: CONSTANTS.MillisecondsPerFiveMinutes / 5, time: CONSTANTS.MillisecondsPerFiveMinutes / 5,
}), }),
// special because you can't create it. // special because you can't create it.

View File

@ -39,6 +39,11 @@ interface IDefaultSettings {
*/ */
SuppressFactionInvites: boolean; SuppressFactionInvites: boolean;
/**
* Whether to show a popup message when player is hospitalized from taking too much damage
*/
SuppressHospitalizationPopup: boolean;
/** /**
* Whether the user should be shown a dialog box whenever they receive a new message file. * Whether the user should be shown a dialog box whenever they receive a new message file.
*/ */
@ -48,11 +53,6 @@ interface IDefaultSettings {
* Whether the user should be asked to confirm travelling between cities. * Whether the user should be asked to confirm travelling between cities.
*/ */
SuppressTravelConfirmation: boolean; SuppressTravelConfirmation: boolean;
/**
* Whether to show a popup message when player is hospitalized from taking too much damage
*/
SuppressHospitalizationPopup: boolean;
} }
/** /**
@ -95,9 +95,9 @@ const defaultSettings: IDefaultSettings = {
MaxPortCapacity: 50, MaxPortCapacity: 50,
SuppressBuyAugmentationConfirmation: false, SuppressBuyAugmentationConfirmation: false,
SuppressFactionInvites: false, SuppressFactionInvites: false,
SuppressHospitalizationPopup: false,
SuppressMessages: false, SuppressMessages: false,
SuppressTravelConfirmation: false, SuppressTravelConfirmation: false,
SuppressHospitalizationPopup: false,
}; };
/** /**
@ -114,9 +114,9 @@ export const Settings: ISettings & ISelfInitializer & ISelfLoading = {
MaxPortCapacity: defaultSettings.MaxPortCapacity, MaxPortCapacity: defaultSettings.MaxPortCapacity,
SuppressBuyAugmentationConfirmation: defaultSettings.SuppressBuyAugmentationConfirmation, SuppressBuyAugmentationConfirmation: defaultSettings.SuppressBuyAugmentationConfirmation,
SuppressFactionInvites: defaultSettings.SuppressFactionInvites, SuppressFactionInvites: defaultSettings.SuppressFactionInvites,
SuppressHospitalizationPopup: defaultSettings.SuppressHospitalizationPopup,
SuppressMessages: defaultSettings.SuppressMessages, SuppressMessages: defaultSettings.SuppressMessages,
SuppressTravelConfirmation: defaultSettings.SuppressTravelConfirmation, SuppressTravelConfirmation: defaultSettings.SuppressTravelConfirmation,
SuppressHospitalizationPopup: defaultSettings.SuppressHospitalizationPopup,
ThemeBackgroundColor: "#000000", ThemeBackgroundColor: "#000000",
ThemeFontColor: "#66ff33", ThemeFontColor: "#66ff33",
ThemeHighlightColor: "#ffffff", ThemeHighlightColor: "#ffffff",

View File

@ -1,3 +1,6 @@
/**
* Returns a MM/DD HH:MM timestamp for the current time
*/
export function getTimestamp() { export function getTimestamp() {
const d: Date = new Date(); const d: Date = new Date();
// A negative slice value takes from the end of the string rather than the beginning. // A negative slice value takes from the end of the string rather than the beginning.