Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
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
nanahira
ygopro-core
Commits
6f76bf07
Commit
6f76bf07
authored
Aug 08, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default init
parent
69f7dcf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
34 deletions
+14
-34
field.cpp
field.cpp
+0
-20
field.h
field.h
+14
-14
No files found.
field.cpp
View file @
6f76bf07
...
...
@@ -55,25 +55,7 @@ bool tevent::operator< (const tevent& v) const {
}
field
::
field
(
duel
*
pduel
)
{
this
->
pduel
=
pduel
;
infos
.
field_id
=
1
;
infos
.
copy_id
=
1
;
infos
.
can_shuffle
=
TRUE
;
infos
.
turn_id
=
0
;
infos
.
turn_id_by_player
[
0
]
=
0
;
infos
.
turn_id_by_player
[
1
]
=
0
;
infos
.
card_id
=
1
;
infos
.
phase
=
0
;
infos
.
turn_player
=
0
;
for
(
int32
i
=
0
;
i
<
2
;
++
i
)
{
//cost[i].count = 0;
//cost[i].amount = 0;
player
[
i
].
lp
=
8000
;
player
[
i
].
start_count
=
5
;
player
[
i
].
draw_count
=
1
;
player
[
i
].
disabled_location
=
0
;
player
[
i
].
used_location
=
0
;
player
[
i
].
extra_p_count
=
0
;
player
[
i
].
tag_extra_p_count
=
0
;
player
[
i
].
list_mzone
.
resize
(
7
,
0
);
player
[
i
].
list_szone
.
resize
(
8
,
0
);
player
[
i
].
list_main
.
reserve
(
60
);
...
...
@@ -82,8 +64,6 @@ field::field(duel* pduel) {
player
[
i
].
list_remove
.
reserve
(
75
);
player
[
i
].
list_extra
.
reserve
(
30
);
}
returns
=
{
0
};
temp_card
=
nullptr
;
}
void
field
::
reload_field_info
()
{
pduel
->
write_buffer8
(
MSG_RELOAD_FIELD
);
...
...
field.h
View file @
6f76bf07
...
...
@@ -80,9 +80,9 @@ struct chain {
};
struct
player_info
{
int32
lp
{
0
};
int32
start_count
{
0
};
int32
draw_count
{
0
};
int32
lp
{
800
0
};
int32
start_count
{
5
};
int32
draw_count
{
1
};
uint32
used_location
{
0
};
uint32
disabled_location
{
0
};
uint32
extra_p_count
{
0
};
...
...
@@ -127,19 +127,19 @@ struct field_effect {
grant_effect_container
grant_effect
;
};
struct
field_info
{
int32
field_id
{
0
};
int16
copy_id
{
0
};
int16
turn_id
{
0
};
int32
field_id
{
1
};
int16
copy_id
{
1
};
int16
turn_id
{};
int16
turn_id_by_player
[
2
]{};
int16
card_id
{
0
};
uint16
phase
{
0
};
uint8
turn_player
{
0
};
int16
card_id
{
1
};
uint16
phase
{};
uint8
turn_player
{};
uint8
priorities
[
2
]{};
uint8
can_shuffle
{
TRUE
};
};
struct
lpcost
{
int32
count
{
0
};
int32
amount
{
0
};
int32
count
{};
int32
amount
{};
int32
lpstack
[
8
]{};
};
struct
processor_unit
{
...
...
@@ -306,7 +306,7 @@ struct processor {
uint8
extra_summon
[
2
]{};
int32
spe_effect
[
2
]{};
int32
last_select_hint
[
2
]{
0
};
int32
duel_options
{
0
};
u
int32
duel_options
{
0
};
int32
duel_rule
{
CURRENT_RULE
};
uint32
copy_reset
{
0
};
int32
copy_reset_count
{
0
};
...
...
@@ -374,12 +374,12 @@ public:
duel
*
pduel
;
player_info
player
[
2
];
card
*
temp_card
;
card
*
temp_card
{}
;
field_info
infos
;
//lpcost cost[2];
field_effect
effects
;
processor
core
;
return_value
returns
;
return_value
returns
{}
;
tevent
nil_event
;
static
int32
field_used_count
[
32
];
...
...
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