mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 08:43:02 +00:00
Provide correct blueprints limits for HRPs
This commit is contained in:
@@ -81,8 +81,8 @@ export function getBlueprint(name, module) {
|
|||||||
// Start with a copy of the blueprint
|
// Start with a copy of the blueprint
|
||||||
const blueprint = JSON.parse(JSON.stringify(Modifications.blueprints[name]));
|
const blueprint = JSON.parse(JSON.stringify(Modifications.blueprints[name]));
|
||||||
if (module) {
|
if (module) {
|
||||||
if (module.grp === 'bh') {
|
if (module.grp === 'bh' || module.grp === 'hr') {
|
||||||
// Bulkheads need to have their resistances altered
|
// Bulkheads and hull reinforcements need to have their resistances altered by the base values
|
||||||
for (const grade in blueprint.grades) {
|
for (const grade in blueprint.grades) {
|
||||||
for (const feature in blueprint.grades[grade].features) {
|
for (const feature in blueprint.grades[grade].features) {
|
||||||
if (feature === 'explres') {
|
if (feature === 'explres') {
|
||||||
|
|||||||
Reference in New Issue
Block a user