mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 06:32:26 +01:00
Merge pull request #3095 from phyzical/bugfix/add-charge-for-stanek-width-height
added ram charge for stanek width and height
This commit is contained in:
commit
fdcbc4c508
@ -59,6 +59,8 @@ export const RamCostConstants: IMap<number> = {
|
|||||||
|
|
||||||
ScriptBladeburnerApiBaseRamCost: 4,
|
ScriptBladeburnerApiBaseRamCost: 4,
|
||||||
|
|
||||||
|
ScriptStanekWidth: 0.4,
|
||||||
|
ScriptStanekHeight: 0.4,
|
||||||
ScriptStanekCharge: 0.4,
|
ScriptStanekCharge: 0.4,
|
||||||
ScriptStanekFragmentDefinitions: 0,
|
ScriptStanekFragmentDefinitions: 0,
|
||||||
ScriptStanekPlacedFragments: 5,
|
ScriptStanekPlacedFragments: 5,
|
||||||
@ -354,6 +356,8 @@ export const RamCosts: IMap<any> = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stanek: {
|
stanek: {
|
||||||
|
width: RamCostConstants.ScriptStanekWidth,
|
||||||
|
height: RamCostConstants.ScriptStanekHeight,
|
||||||
charge: RamCostConstants.ScriptStanekCharge,
|
charge: RamCostConstants.ScriptStanekCharge,
|
||||||
fragmentDefinitions: RamCostConstants.ScriptStanekFragmentDefinitions,
|
fragmentDefinitions: RamCostConstants.ScriptStanekFragmentDefinitions,
|
||||||
activeFragments: RamCostConstants.ScriptStanekPlacedFragments,
|
activeFragments: RamCostConstants.ScriptStanekPlacedFragments,
|
||||||
|
@ -23,9 +23,13 @@ export function NetscriptStanek(player: IPlayer, workerScript: WorkerScript, hel
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
width: function (): number {
|
width: function (): number {
|
||||||
|
helper.updateDynamicRam("width", getRamCost(player, "stanek", "width"));
|
||||||
|
checkStanekAPIAccess("width");
|
||||||
return staneksGift.width();
|
return staneksGift.width();
|
||||||
},
|
},
|
||||||
height: function (): number {
|
height: function (): number {
|
||||||
|
helper.updateDynamicRam("height", getRamCost(player, "stanek", "height"));
|
||||||
|
checkStanekAPIAccess("height");
|
||||||
return staneksGift.height();
|
return staneksGift.height();
|
||||||
},
|
},
|
||||||
charge: function (arootX: unknown, arootY: unknown): Promise<void> {
|
charge: function (arootX: unknown, arootY: unknown): Promise<void> {
|
||||||
|
Loading…
Reference in New Issue
Block a user