CORPORATION: Remove VeChain (#2245)

This commit is contained in:
catloversg
2025-07-18 04:24:19 +07:00
committed by GitHub
parent 3a67db7876
commit e3ea611928
9 changed files with 105 additions and 113 deletions
+5
View File
@@ -227,5 +227,10 @@ export const breakingChanges300: VersionBreakingChange = {
info: 'The "Spring Water" industry was removed. The cost of all Spring Water divisions was refunded.',
showWarning: false,
},
{
brokenAPIs: [{ name: "VeChain" }],
info: 'The "VeChain" upgrade was removed. The cost of that upgrade was refunded.',
showWarning: false,
},
],
};
+10
View File
@@ -614,6 +614,16 @@ Error: ${e}`,
}
}
}
// Remove and refund VeChain
const unlocks: Set<string> = Player.corporation.unlocks;
for (const upgrade of unlocks) {
if (upgrade !== "VeChain") {
continue;
}
Player.corporation.gainFunds(10e9, "force majeure");
}
unlocks.delete("VeChain");
}
showAPIBreaks("3.0.0", breakingChanges300);
}