mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
Change a few fragment
This commit is contained in:
parent
50147f6b0b
commit
df6d156e8e
24
dist/vendor.bundle.js
vendored
24
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1,11 +1,12 @@
|
||||
canPlace() Netscript Function
|
||||
=======================================
|
||||
|
||||
.. js:function:: canPlace(worldX, worldY, fragmentId)
|
||||
.. js:function:: canPlace(worldX, worldY, rotation, fragmentId)
|
||||
|
||||
:RAM cost: 0.5 GB
|
||||
:param int worldX: World X against which to align the top left of the fragment.
|
||||
:param int worldY: World Y against which to align the top left of the fragment.
|
||||
:param int rotation: A number from 0 to 3, the mount of 90 degree turn to take.
|
||||
:param int fragmentId: ID of the fragment to place.
|
||||
:returns: `true` if the fragment can be placed at that position. `false` otherwise.
|
||||
|
||||
|
@ -6,6 +6,7 @@ place() Netscript Function
|
||||
:RAM cost: 5 GB
|
||||
:param int worldX: World X against which to align the top left of the fragment.
|
||||
:param int worldY: World Y against which to align the top left of the fragment.
|
||||
:param int rotation: A number from 0 to 3, the mount of 90 degree turn to take.
|
||||
:param int fragmentId: ID of the fragment to place.
|
||||
:returns: `true` if the fragment has been placed at that position. `false` otherwise.
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -99,7 +99,7 @@ export function FragmentById(id: number): Fragment | null {
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
0, // id
|
||||
Shapes.T,
|
||||
Shapes.S,
|
||||
FragmentType.Hacking, // type
|
||||
1,
|
||||
1, // limit
|
||||
@ -117,7 +117,7 @@ export function FragmentById(id: number): Fragment | null {
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
5, // id
|
||||
Shapes.S,
|
||||
Shapes.T,
|
||||
FragmentType.HackingSpeed, // type
|
||||
1.3,
|
||||
1, // limit
|
||||
@ -252,32 +252,111 @@ export function FragmentById(id: number): Fragment | null {
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
2, // id
|
||||
100, // id
|
||||
[
|
||||
// shape
|
||||
[X, X, X, X],
|
||||
[X, _, _, X],
|
||||
[X, _, _, X],
|
||||
[X, X, X, X],
|
||||
[_, X, X],
|
||||
[X, X, _],
|
||||
[_, X, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
3, // limit
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
31, // id
|
||||
101, // id
|
||||
[
|
||||
// shape
|
||||
[X],
|
||||
[X],
|
||||
[X],
|
||||
[X],
|
||||
[X, X, X, X],
|
||||
[X, _, _, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
3, // limit
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
102, // id
|
||||
[
|
||||
// shape
|
||||
[_, X, X, X],
|
||||
[X, X, _, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
103, // id
|
||||
[
|
||||
// shape
|
||||
[_, X, X, X],
|
||||
[X, X, _, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
104, // id
|
||||
[
|
||||
// shape
|
||||
[_, X, X],
|
||||
[_, X, _],
|
||||
[X, X, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
105, // id
|
||||
[
|
||||
// shape
|
||||
[_, _, X],
|
||||
[_, X, X],
|
||||
[X, X, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
106, // id
|
||||
[
|
||||
// shape
|
||||
[X, _, _],
|
||||
[X, X, X],
|
||||
[X, _, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
Fragments.push(
|
||||
new Fragment(
|
||||
107, // id
|
||||
[
|
||||
// shape
|
||||
[_, X, _],
|
||||
[X, X, X],
|
||||
[_, X, _],
|
||||
],
|
||||
FragmentType.Booster, // type
|
||||
1.1, // power
|
||||
99, // limit
|
||||
),
|
||||
);
|
||||
})();
|
||||
|
@ -751,7 +751,7 @@ export function SidebarRoot(props: IProps): React.ReactElement {
|
||||
<Typography color={props.page !== Page.Options ? "secondary" : "primary"}>Options</Typography>
|
||||
</ListItemText>
|
||||
</ListItem>
|
||||
{process.env.NODE_ENV === "development" && (
|
||||
{true && (
|
||||
<ListItem
|
||||
classes={{ root: classes.listitem }}
|
||||
button
|
||||
|
Loading…
Reference in New Issue
Block a user