Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Neos
Commits
180cdfd5
Commit
180cdfd5
authored
Mar 19, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4d4fe7b0
Pipeline
#20819
passed with stages
in 20 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/reloadField.ts
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/reloadField.ts
+26
-26
No files found.
src/api/ocgcore/ocgAdapter/stoc/stocGameMsg/reloadField.ts
View file @
180cdfd5
...
...
@@ -10,12 +10,12 @@ export default (data: Uint8Array) => {
const
duel_rule
=
reader
.
inner
.
readUint8
();
const
actions
=
[];
for
(
let
player
=
0
;
player
<
2
;
player
+=
1
)
{
for
(
let
player
=
0
;
player
<
2
;
player
++
)
{
const
lp
=
reader
.
inner
.
readUint32
();
const
zone_actions
=
[];
// MZONE
for
(
let
sequence
=
0
;
sequence
<
7
;
sequence
+=
1
)
{
for
(
let
sequence
=
0
;
sequence
<
7
;
sequence
++
)
{
const
flag
=
reader
.
inner
.
readUint8
();
if
(
flag
)
{
const
position
=
reader
.
inner
.
readUint8
();
...
...
@@ -33,7 +33,7 @@ export default (data: Uint8Array) => {
}
// SZONE
for
(
let
sequence
=
0
;
sequence
<
6
;
sequence
+=
1
)
{
for
(
let
sequence
=
0
;
sequence
<
8
;
sequence
++
)
{
const
flag
=
reader
.
inner
.
readUint8
();
if
(
flag
)
{
const
position
=
reader
.
inner
.
readUint8
();
...
...
@@ -54,28 +54,28 @@ export default (data: Uint8Array) => {
const
removed_size
=
reader
.
inner
.
readUint8
();
const
extra_size
=
reader
.
inner
.
readUint8
();
const
extra_p_size
=
reader
.
inner
.
readUint8
();
const
chain_size
=
reader
.
inner
.
readUint8
();
//
const chain_size = reader.inner.readUint8();
const
chain_actions
=
[];
for
(
let
i
=
0
;
i
<
chain_size
;
i
+=
1
)
{
const
chain_code
=
reader
.
inner
.
readUint32
();
const
location
=
reader
.
readCardLocation
();
const
triggering_controller
=
reader
.
inner
.
readUint8
();
const
triggering_location
=
reader
.
inner
.
readUint8
();
const
triggering_sequence
=
reader
.
inner
.
readUint8
();
const
effect_description
=
reader
.
inner
.
readUint32
();
chain_actions
.
push
(
new
MsgReloadField
.
ChainAction
({
chain_code
,
location
,
triggering_controller
,
triggering_location
,
triggering_sequence
,
effect_description
,
})
);
}
//
const chain_actions = [];
//
for (let i = 0; i < chain_size; i += 1) {
//
const chain_code = reader.inner.readUint32();
//
const location = reader.readCardLocation();
//
const triggering_controller = reader.inner.readUint8();
//
const triggering_location = reader.inner.readUint8();
//
const triggering_sequence = reader.inner.readUint8();
//
const effect_description = reader.inner.readUint32();
//
//
chain_actions.push(
//
new MsgReloadField.ChainAction({
//
chain_code,
//
location,
//
triggering_controller,
//
triggering_location,
//
triggering_sequence,
//
effect_description,
//
})
//
);
//
}
actions
.
push
(
new
MsgReloadField
.
Action
({
...
...
@@ -88,8 +88,8 @@ export default (data: Uint8Array) => {
removed_size
,
extra_size
,
extra_p_size
,
chain_size
,
chain_actions
,
//
chain_size,
//
chain_actions,
})
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment