mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +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
|
canPlace() Netscript Function
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
.. js:function:: canPlace(worldX, worldY, fragmentId)
|
.. js:function:: canPlace(worldX, worldY, rotation, fragmentId)
|
||||||
|
|
||||||
:RAM cost: 0.5 GB
|
:RAM cost: 0.5 GB
|
||||||
:param int worldX: World X against which to align the top left of the fragment.
|
: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 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.
|
:param int fragmentId: ID of the fragment to place.
|
||||||
:returns: `true` if the fragment can be placed at that position. `false` otherwise.
|
:returns: `true` if the fragment can be placed at that position. `false` otherwise.
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ place() Netscript Function
|
|||||||
:RAM cost: 5 GB
|
:RAM cost: 5 GB
|
||||||
:param int worldX: World X against which to align the top left of the fragment.
|
: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 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.
|
:param int fragmentId: ID of the fragment to place.
|
||||||
:returns: `true` if the fragment has been placed at that position. `false` otherwise.
|
: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(
|
Fragments.push(
|
||||||
new Fragment(
|
new Fragment(
|
||||||
0, // id
|
0, // id
|
||||||
Shapes.T,
|
Shapes.S,
|
||||||
FragmentType.Hacking, // type
|
FragmentType.Hacking, // type
|
||||||
1,
|
1,
|
||||||
1, // limit
|
1, // limit
|
||||||
@ -117,7 +117,7 @@ export function FragmentById(id: number): Fragment | null {
|
|||||||
Fragments.push(
|
Fragments.push(
|
||||||
new Fragment(
|
new Fragment(
|
||||||
5, // id
|
5, // id
|
||||||
Shapes.S,
|
Shapes.T,
|
||||||
FragmentType.HackingSpeed, // type
|
FragmentType.HackingSpeed, // type
|
||||||
1.3,
|
1.3,
|
||||||
1, // limit
|
1, // limit
|
||||||
@ -252,32 +252,111 @@ export function FragmentById(id: number): Fragment | null {
|
|||||||
);
|
);
|
||||||
Fragments.push(
|
Fragments.push(
|
||||||
new Fragment(
|
new Fragment(
|
||||||
2, // id
|
100, // id
|
||||||
[
|
[
|
||||||
// shape
|
// shape
|
||||||
[X, X, X, X],
|
[_, X, X],
|
||||||
[X, _, _, X],
|
[X, X, _],
|
||||||
[X, _, _, X],
|
[_, X, _],
|
||||||
[X, X, X, X],
|
|
||||||
],
|
],
|
||||||
FragmentType.Booster, // type
|
FragmentType.Booster, // type
|
||||||
1.1, // power
|
1.1, // power
|
||||||
3, // limit
|
99, // limit
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
Fragments.push(
|
Fragments.push(
|
||||||
new Fragment(
|
new Fragment(
|
||||||
31, // id
|
101, // id
|
||||||
[
|
[
|
||||||
// shape
|
// shape
|
||||||
[X],
|
[X, X, X, X],
|
||||||
[X],
|
[X, _, _, _],
|
||||||
[X],
|
|
||||||
[X],
|
|
||||||
],
|
],
|
||||||
FragmentType.Booster, // type
|
FragmentType.Booster, // type
|
||||||
1.1, // power
|
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>
|
<Typography color={props.page !== Page.Options ? "secondary" : "primary"}>Options</Typography>
|
||||||
</ListItemText>
|
</ListItemText>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
{process.env.NODE_ENV === "development" && (
|
{true && (
|
||||||
<ListItem
|
<ListItem
|
||||||
classes={{ root: classes.listitem }}
|
classes={{ root: classes.listitem }}
|
||||||
button
|
button
|
||||||
|
Loading…
Reference in New Issue
Block a user