mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
Unknown-ify count parameters
This commit is contained in:
parent
a0bff34761
commit
6ba171b0c3
@ -279,7 +279,7 @@ export function NetscriptBladeburner(player: IPlayer, workerScript: WorkerScript
|
|||||||
},
|
},
|
||||||
getSkillUpgradeCost:
|
getSkillUpgradeCost:
|
||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_skillName: unknown, _count = 1): number => {
|
(_skillName: unknown, _count: unknown = 1): number => {
|
||||||
const skillName = ctx.helper.string("skillName", _skillName);
|
const skillName = ctx.helper.string("skillName", _skillName);
|
||||||
const count = ctx.helper.number("count", _count);
|
const count = ctx.helper.number("count", _count);
|
||||||
checkBladeburnerAccess(ctx);
|
checkBladeburnerAccess(ctx);
|
||||||
@ -293,7 +293,7 @@ export function NetscriptBladeburner(player: IPlayer, workerScript: WorkerScript
|
|||||||
},
|
},
|
||||||
upgradeSkill:
|
upgradeSkill:
|
||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(_skillName: unknown, _count = 1): boolean => {
|
(_skillName: unknown, _count: unknown = 1): boolean => {
|
||||||
const skillName = ctx.helper.string("skillName", _skillName);
|
const skillName = ctx.helper.string("skillName", _skillName);
|
||||||
const count = ctx.helper.number("count", _count);
|
const count = ctx.helper.number("count", _count);
|
||||||
checkBladeburnerAccess(ctx);
|
checkBladeburnerAccess(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user