bug fixes

This commit is contained in:
landgreen
2020-11-08 07:06:40 -08:00
parent e86ec0c37d
commit 30cace60fb
5 changed files with 19 additions and 25 deletions

View File

@@ -2402,9 +2402,9 @@ const mod = {
maxCount: 1,
count: 0,
allowed() {
return mod.haveGunCheck("rail gun") && !mod.isCapacitor
return mod.haveGunCheck("rail gun")
},
requires: "rail gun, not capacitor bank",
requires: "rail gun",
effect() {
mod.isRailEnergyGain = true;
},
@@ -2418,9 +2418,9 @@ const mod = {
maxCount: 1,
count: 0,
allowed() {
return mod.haveGunCheck("rail gun") && !mod.isRailEnergyGain
return mod.haveGunCheck("rail gun")
},
requires: "rail gun, not half-wave rectifier",
requires: "rail gun",
effect() {
mod.isCapacitor = true;
},