GANG: Rename equipment that uses real brand names (#2293)

This commit is contained in:
catloversg
2025-08-27 05:12:46 +07:00
committed by GitHub
parent 15776e36e3
commit 95e38164f7
4 changed files with 107 additions and 12 deletions
+4 -1
View File
@@ -276,7 +276,10 @@ export function NetscriptGang(): InternalAPI<IGang> {
getGang(ctx);
const member = getGangMember(ctx, memberName);
const equipment = GangMemberUpgrades[equipName];
if (!equipment) return false;
if (!equipment) {
ctx.workerScript.log("gang.purchaseEquipment", () => `'${equipName}' is not a valid equipment`);
return false;
}
const res = member.buyUpgrade(equipment);
if (res) {
ctx.workerScript.log(