mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 06:17:04 +02:00
UI: Show terminal warning instead of popup for breaking changes (#2244)
* UI: Show terminal warning instead of popup for breaking changes * Run prettier
This commit is contained in:
@@ -9,7 +9,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
"ns.nFormat() was removed.\n" +
|
||||
"Use ns.formatNumber, ns.formatRam, ns.formatPercent, or JS built-in objects/functions (e.g., Intl.NumberFormat, " +
|
||||
"Intl.PluralRules, Intl.Locale) instead.",
|
||||
showPopUp: true,
|
||||
showWarning: true,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -60,7 +60,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
'It has been automatically replaced with "ns.getResetInfo().currentNode"\n\n' +
|
||||
"ns.corporation.getCorporation().state was removed.\n" +
|
||||
'It has been automatically replaced with "ns.corporation.getCorporation().nextState"',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -73,7 +73,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
"The formatting functions have been moved to their own interface, ns.format.\n" +
|
||||
"Each function has been replaced with their corresponding interface variant.\n" +
|
||||
"Additionally, the naming of ns.tFormat has been changed to ns.format.time.",
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -94,7 +94,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
'It has been automatically replaced with "ns.ui.closeTail()".\n\n' +
|
||||
"ns.setTitle() was removed.\n" +
|
||||
'It has been automatically replaced with "ns.ui.setTailTitle()".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -109,7 +109,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
info:
|
||||
"ns.corporation.setAutoJobAssignment() was removed.\n" +
|
||||
'It has been automatically replaced with "ns.corporation.setJobAssignment()".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [],
|
||||
@@ -126,7 +126,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
"- Stock position: PositionType\n" +
|
||||
"- Stock order: OrderType\n" +
|
||||
"You can access these values via ns.enums and Bladeburner APIs.",
|
||||
showPopUp: true,
|
||||
showWarning: true,
|
||||
doNotSkip: true,
|
||||
},
|
||||
{
|
||||
@@ -141,7 +141,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
info:
|
||||
`ns.nuke, ns.brutessh, ns.ftpcrack, ns.relaysmtp, ns.httpworm, and ns.sqlinject now do not throw an error when you do not have the required .exe file or enough opened ports.\n` +
|
||||
"This should not be a problem with most scripts. However, if you were catching errors and branching on the result of success/failure, you will need to use the return value instead.",
|
||||
showPopUp: true,
|
||||
showWarning: true,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -177,7 +177,7 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
'It has been automatically replaced with "ns.stock.hasTixApiAccess()".\n\n' +
|
||||
"ns.stock.has4SDataTIXAPI() was removed.\n" +
|
||||
'It has been automatically replaced with "ns.stock.has4SDataTixApi()".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -189,14 +189,14 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
info:
|
||||
"ns.getBitNodeMultipliers().RepToDonateToFaction was removed.\n" +
|
||||
'It has been automatically replaced with "ns.getBitNodeMultipliers().FavorToDonateToFaction".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [{ name: "getActionRepGain" }],
|
||||
info:
|
||||
"ns.bladeburner.getActionRepGain returned the average rank gain instead of the average reputation gain.\n" +
|
||||
"This bug was fixed. Please check your code to see if it still works as you expect.",
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [
|
||||
@@ -208,24 +208,24 @@ export const breakingChanges300: VersionBreakingChange = {
|
||||
info:
|
||||
'The key of "Bachman & Associates" faction in the FactionName enum was renamed.\n' +
|
||||
'"ns.enums.FactionName.BachmanAssociates" has been automatically replaced with "ns.enums.FactionName.BachmanAndAssociates".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [{ name: "DreamSense" }],
|
||||
info: 'The "DreamSense" upgrade was removed. The cost of that upgrade was refunded.',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [{ name: "dividendTax", migration: { searchValue: "dividendTax", replaceValue: "tributeModifier" } }],
|
||||
info:
|
||||
"ns.corporation.getCorporation().dividendTax was removed.\n" +
|
||||
'It has been automatically replaced with "ns.corporation.getCorporation().tributeModifier".',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
{
|
||||
brokenAPIs: [{ name: "Spring Water" }],
|
||||
info: 'The "Spring Water" industry was removed. The cost of all Spring Water divisions was refunded.',
|
||||
showPopUp: false,
|
||||
showWarning: false,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user