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
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
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) {
return
false
;
}
void
ClientField
::
GetHoverField
(
int
x
,
int
y
)
{
irr
::
core
::
recti
sfRect
(
39
6
,
504
,
880
,
600
);
irr
::
core
::
recti
ofRect
(
50
6
,
135
,
795
,
191
);
irr
::
core
::
recti
sfRect
(
39
3
,
504
,
875
,
600
);
irr
::
core
::
recti
ofRect
(
50
1
,
135
,
790
,
191
);
irr
::
core
::
position2di
pos
(
x
,
y
);
if
(
sfRect
.
isPointInside
(
pos
))
{
int
hc
=
hand
[
0
].
size
();
if
(
hc
==
0
)
hovered_location
=
0
;
else
if
(
hc
<
7
)
{
int
left
=
39
6
+
82
*
(
6
-
hc
)
/
2
;
int
left
=
39
3
+
82
*
(
6
-
hc
)
/
2
;
if
(
x
<
left
)
hovered_location
=
0
;
else
{
...
...
@@ -1512,17 +1512,17 @@ void ClientField::GetHoverField(int x, int y) {
}
else
{
hovered_controler
=
0
;
hovered_location
=
LOCATION_HAND
;
if
(
x
>=
8
29
)
if
(
x
>=
8
04
)
hovered_sequence
=
hc
-
1
;
else
hovered_sequence
=
(
x
-
416
)
*
(
hc
-
1
)
/
413
;
hovered_sequence
=
(
x
-
393
)
*
(
hc
-
1
)
/
411
;
}
}
else
if
(
ofRect
.
isPointInside
(
pos
))
{
int
hc
=
hand
[
1
].
size
();
if
(
hc
==
0
)
hovered_location
=
0
;
else
if
(
hc
<
7
)
{
int
left
=
50
6
+
49
*
(
6
-
hc
)
/
2
;
int
left
=
50
1
+
49
*
(
6
-
hc
)
/
2
;
if
(
x
<
left
)
hovered_location
=
0
;
else
{
...
...
@@ -1537,10 +1537,10 @@ void ClientField::GetHoverField(int x, int y) {
}
else
{
hovered_controler
=
1
;
hovered_location
=
LOCATION_HAND
;
if
(
x
>=
7
56
)
if
(
x
>=
7
48
)
hovered_sequence
=
0
;
else
hovered_sequence
=
hc
-
1
-
(
x
-
5
16
)
*
(
hc
-
1
)
/
247
;
hovered_sequence
=
hc
-
1
-
(
x
-
5
01
)
*
(
hc
-
1
)
/
247
;
}
}
else
{
double
screenx
=
x
/
1024.0
*
1.25
-
0.81
;
...
...
ocgcore/card.cpp
View file @
145062d8
...
...
@@ -273,7 +273,7 @@ uint32 card::get_type() {
return
assume_value
;
if
(
!
(
current
.
location
&
0x1e
))
return
data
.
type
;
if
((
current
.
location
==
LOCATION_SZONE
)
&&
(
current
.
position
>=
6
))
if
((
current
.
location
==
LOCATION_SZONE
)
&&
(
current
.
sequence
>=
6
))
return
TYPE_PENDULUM
+
TYPE_SPELL
;
if
(
temp
.
type
!=
0xffffffff
)
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
target
->
overlay_target
->
xyz_remove
(
target
);
move_card
(
playerid
,
target
,
location
,
target
->
temp
.
sequence
);
target
->
current
.
position
=
returns
.
ivalue
[
0
];
if
((
target
->
get_type
()
&
TYPE_TRAPMONSTER
)
||
((
target
->
get_type
()
&
TYPE_TRAP
)
&&
(
target
->
current
.
location
==
LOCATION_MZONE
)
&&
(
location
==
LOCATION_SZONE
))
)
if
((
target
->
previous
.
location
&
LOCATION_ONFIELD
)
&&
(
location
&
LOCATION_ONFIELD
))
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
,
FALSE
);
else
target
->
set_status
(
STATUS_LEAVE_CONFIRMED
|
STATUS_ACTIVATED
,
FALSE
);
...
...
script/c50323155.lua
View file @
145062d8
...
...
@@ -11,7 +11,7 @@ function c50323155.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
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
function
c50323155
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c71564252.lua
View file @
145062d8
...
...
@@ -21,7 +21,7 @@ function c71564252.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
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
function
c71564252
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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)
end
function
c91078716
.
target1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
end
function
c91078716
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
:
GetFirst
()
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
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)
end
function
c98069388
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE_SUMMON
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
eg
:
GetCount
()
,
0
,
0
)
end
function
c98069388
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateSummon
(
eg
:
GetFirst
()
)
Duel
.
NegateSummon
(
eg
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
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