mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
little cleanup
This commit is contained in:
@@ -3741,7 +3741,7 @@ function NetscriptFunctions(workerScript) {
|
||||
getEquipmentNames: function() {
|
||||
updateDynamicRam("getEquipmentNames", getRamCost("gang", "getEquipmentNames"));
|
||||
checkGangApiAccess("getEquipmentNames");
|
||||
return Player.gang.getAllUpgradeNames();
|
||||
return Object.keys(GangMemberUpgrades);
|
||||
},
|
||||
getEquipmentCost: function(equipName) {
|
||||
updateDynamicRam("getEquipmentCost", getRamCost("gang", "getEquipmentCost"));
|
||||
@@ -3751,7 +3751,9 @@ function NetscriptFunctions(workerScript) {
|
||||
getEquipmentType: function(equipName) {
|
||||
updateDynamicRam("getEquipmentType", getRamCost("gang", "getEquipmentType"));
|
||||
checkGangApiAccess("getEquipmentType");
|
||||
return Player.gang.getUpgradeType(equipName);
|
||||
const upg = GangMemberUpgrades[equipName];
|
||||
if (upg == null) return "";
|
||||
return upg.getType();
|
||||
},
|
||||
getEquipmentStats: function(equipName) {
|
||||
updateDynamicRam("getEquipmentStats", getRamCost("gang", "getEquipmentStats"));
|
||||
|
||||
Reference in New Issue
Block a user