Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
145062d8
Commit
145062d8
authored
Mar 20, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6defb73f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
20 deletions
+18
-20
gframe/event_handler.cpp
gframe/event_handler.cpp
+8
-8
ocgcore/card.cpp
ocgcore/card.cpp
+1
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+1
-3
script/c50323155.lua
script/c50323155.lua
+1
-1
script/c71564252.lua
script/c71564252.lua
+1
-1
script/c91078716.lua
script/c91078716.lua
+3
-3
script/c98069388.lua
script/c98069388.lua
+3
-3
No files found.
gframe/event_handler.cpp
View file @
145062d8
...
@@ -1489,15 +1489,15 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
...
@@ -1489,15 +1489,15 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
return
false
;
return
false
;
}
}
void
ClientField
::
GetHoverField
(
int
x
,
int
y
)
{
void
ClientField
::
GetHoverField
(
int
x
,
int
y
)
{
irr
::
core
::
recti
sfRect
(
39
6
,
504
,
880
,
600
);
irr
::
core
::
recti
sfRect
(
39
3
,
504
,
875
,
600
);
irr
::
core
::
recti
ofRect
(
50
6
,
135
,
795
,
191
);
irr
::
core
::
recti
ofRect
(
50
1
,
135
,
790
,
191
);
irr
::
core
::
position2di
pos
(
x
,
y
);
irr
::
core
::
position2di
pos
(
x
,
y
);
if
(
sfRect
.
isPointInside
(
pos
))
{
if
(
sfRect
.
isPointInside
(
pos
))
{
int
hc
=
hand
[
0
].
size
();
int
hc
=
hand
[
0
].
size
();
if
(
hc
==
0
)
if
(
hc
==
0
)
hovered_location
=
0
;
hovered_location
=
0
;
else
if
(
hc
<
7
)
{
else
if
(
hc
<
7
)
{
int
left
=
39
6
+
82
*
(
6
-
hc
)
/
2
;
int
left
=
39
3
+
82
*
(
6
-
hc
)
/
2
;
if
(
x
<
left
)
if
(
x
<
left
)
hovered_location
=
0
;
hovered_location
=
0
;
else
{
else
{
...
@@ -1512,17 +1512,17 @@ void ClientField::GetHoverField(int x, int y) {
...
@@ -1512,17 +1512,17 @@ void ClientField::GetHoverField(int x, int y) {
}
else
{
}
else
{
hovered_controler
=
0
;
hovered_controler
=
0
;
hovered_location
=
LOCATION_HAND
;
hovered_location
=
LOCATION_HAND
;
if
(
x
>=
8
29
)
if
(
x
>=
8
04
)
hovered_sequence
=
hc
-
1
;
hovered_sequence
=
hc
-
1
;
else
else
hovered_sequence
=
(
x
-
416
)
*
(
hc
-
1
)
/
413
;
hovered_sequence
=
(
x
-
393
)
*
(
hc
-
1
)
/
411
;
}
}
}
else
if
(
ofRect
.
isPointInside
(
pos
))
{
}
else
if
(
ofRect
.
isPointInside
(
pos
))
{
int
hc
=
hand
[
1
].
size
();
int
hc
=
hand
[
1
].
size
();
if
(
hc
==
0
)
if
(
hc
==
0
)
hovered_location
=
0
;
hovered_location
=
0
;
else
if
(
hc
<
7
)
{
else
if
(
hc
<
7
)
{
int
left
=
50
6
+
49
*
(
6
-
hc
)
/
2
;
int
left
=
50
1
+
49
*
(
6
-
hc
)
/
2
;
if
(
x
<
left
)
if
(
x
<
left
)
hovered_location
=
0
;
hovered_location
=
0
;
else
{
else
{
...
@@ -1537,10 +1537,10 @@ void ClientField::GetHoverField(int x, int y) {
...
@@ -1537,10 +1537,10 @@ void ClientField::GetHoverField(int x, int y) {
}
else
{
}
else
{
hovered_controler
=
1
;
hovered_controler
=
1
;
hovered_location
=
LOCATION_HAND
;
hovered_location
=
LOCATION_HAND
;
if
(
x
>=
7
56
)
if
(
x
>=
7
48
)
hovered_sequence
=
0
;
hovered_sequence
=
0
;
else
else
hovered_sequence
=
hc
-
1
-
(
x
-
5
16
)
*
(
hc
-
1
)
/
247
;
hovered_sequence
=
hc
-
1
-
(
x
-
5
01
)
*
(
hc
-
1
)
/
247
;
}
}
}
else
{
}
else
{
double
screenx
=
x
/
1024.0
*
1.25
-
0.81
;
double
screenx
=
x
/
1024.0
*
1.25
-
0.81
;
...
...
ocgcore/card.cpp
View file @
145062d8
...
@@ -273,7 +273,7 @@ uint32 card::get_type() {
...
@@ -273,7 +273,7 @@ uint32 card::get_type() {
return
assume_value
;
return
assume_value
;
if
(
!
(
current
.
location
&
0x1e
))
if
(
!
(
current
.
location
&
0x1e
))
return
data
.
type
;
return
data
.
type
;
if
((
current
.
location
==
LOCATION_SZONE
)
&&
(
current
.
position
>=
6
))
if
((
current
.
location
==
LOCATION_SZONE
)
&&
(
current
.
sequence
>=
6
))
return
TYPE_PENDULUM
+
TYPE_SPELL
;
return
TYPE_PENDULUM
+
TYPE_SPELL
;
if
(
temp
.
type
!=
0xffffffff
)
if
(
temp
.
type
!=
0xffffffff
)
return
temp
.
type
;
return
temp
.
type
;
...
...
ocgcore/operations.cpp
View file @
145062d8
...
@@ -3325,9 +3325,7 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
...
@@ -3325,9 +3325,7 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
target
->
overlay_target
->
xyz_remove
(
target
);
target
->
overlay_target
->
xyz_remove
(
target
);
move_card
(
playerid
,
target
,
location
,
target
->
temp
.
sequence
);
move_card
(
playerid
,
target
,
location
,
target
->
temp
.
sequence
);
target
->
current
.
position
=
returns
.
ivalue
[
0
];
target
->
current
.
position
=
returns
.
ivalue
[
0
];
if
((
target
->
get_type
()
&
TYPE_TRAPMONSTER
)
||
if
((
target
->
previous
.
location
&
LOCATION_ONFIELD
)
&&
(
location
&
LOCATION_ONFIELD
))
((
target
->
get_type
()
&
TYPE_TRAP
)
&&
(
target
->
current
.
location
==
LOCATION_MZONE
)
&&
(
location
==
LOCATION_SZONE
))
)
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
,
FALSE
);
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
,
FALSE
);
else
else
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
|
STATUS_ACTIVATED
,
FALSE
);
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
|
STATUS_ACTIVATED
,
FALSE
);
...
...
script/c50323155.lua
View file @
145062d8
...
@@ -11,7 +11,7 @@ function c50323155.initial_effect(c)
...
@@ -11,7 +11,7 @@ function c50323155.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c50323155
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50323155
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
return
tp
~=
ep
and
eg
:
GetCount
()
==
1
and
Duel
.
GetCurrentChain
()
==
0
end
end
function
c50323155
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c50323155
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
script/c71564252.lua
View file @
145062d8
...
@@ -21,7 +21,7 @@ function c71564252.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c71564252.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c71564252
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71564252
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
ep
and
Duel
.
GetCurrentChain
()
==
0
return
tp
~=
ep
and
eg
:
GetCount
()
==
1
and
Duel
.
GetCurrentChain
()
==
0
end
end
function
c71564252
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c71564252
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
script/c91078716.lua
View file @
145062d8
...
@@ -34,11 +34,11 @@ function c91078716.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -34,11 +34,11 @@ function c91078716.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c91078716
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c91078716
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
end
end
function
c91078716
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91078716
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
:
GetFirst
()
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
function
c91078716
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c91078716
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c98069388.lua
View file @
145062d8
...
@@ -27,10 +27,10 @@ function c98069388.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -27,10 +27,10 @@ function c98069388.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c98069388
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c98069388
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
end
end
function
c98069388
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98069388
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
:
GetFirst
()
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
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