mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
MISC: Print logs when ns.hacknet.spendHashes fails and update param type of APIs using hash upgrade (#2145)
This commit is contained in:
@@ -330,7 +330,7 @@ export function NetscriptFormulas(): InternalAPI<IFormulas> {
|
||||
return HScalculateCacheUpgradeCost(startingCache, extraCache);
|
||||
},
|
||||
hashUpgradeCost: (ctx) => (_upgName, _level) => {
|
||||
const upgName = helpers.string(ctx, "upgName", _upgName);
|
||||
const upgName = getEnumHelper("HashUpgradeEnum").nsGetMember(ctx, _upgName);
|
||||
const level = helpers.number(ctx, "level", _level);
|
||||
checkFormulasAccess(ctx);
|
||||
const upg = Player.hashManager.getUpgrade(upgName);
|
||||
|
||||
Reference in New Issue
Block a user