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
wyykak
ygopro
Commits
875b0a5a
Commit
875b0a5a
authored
Apr 28, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4d712820
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
34 additions
and
30 deletions
+34
-30
gframe/config.h
gframe/config.h
+1
-1
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/gframe.cpp
gframe/gframe.cpp
+1
-1
script/c11502550.lua
script/c11502550.lua
+2
-2
script/c17032740.lua
script/c17032740.lua
+2
-2
script/c19594506.lua
script/c19594506.lua
+1
-1
script/c19665973.lua
script/c19665973.lua
+1
-0
script/c213326.lua
script/c213326.lua
+1
-1
script/c28677304.lua
script/c28677304.lua
+2
-2
script/c39672388.lua
script/c39672388.lua
+2
-2
script/c40044918.lua
script/c40044918.lua
+1
-1
script/c42015635.lua
script/c42015635.lua
+2
-3
script/c48996569.lua
script/c48996569.lua
+2
-2
script/c49352945.lua
script/c49352945.lua
+2
-2
script/c55171412.lua
script/c55171412.lua
+2
-2
script/c78512663.lua
script/c78512663.lua
+2
-2
script/c81566151.lua
script/c81566151.lua
+2
-2
script/c82639107.lua
script/c82639107.lua
+4
-0
script/c85507811.lua
script/c85507811.lua
+2
-2
system.conf
system.conf
+1
-1
No files found.
gframe/config.h
View file @
875b0a5a
...
...
@@ -67,7 +67,7 @@ using namespace io;
using
namespace
gui
;
extern
const
unsigned
short
PRO_VERSION
;
extern
bool
enable_log
;
extern
int
enable_log
;
extern
bool
exit_on_return
;
#endif
gframe/game.cpp
View file @
875b0a5a
...
...
@@ -709,7 +709,7 @@ void Game::SaveConfig() {
char
linebuf
[
256
];
fprintf
(
fp
,
"use_d3d = %d
\n
"
,
gameConf
.
use_d3d
?
1
:
0
);
fprintf
(
fp
,
"antialias = %d
\n
"
,
gameConf
.
antialias
);
fprintf
(
fp
,
"errorlog = %d
\n
"
,
enable_log
?
1
:
0
);
fprintf
(
fp
,
"errorlog = %d
\n
"
,
enable_log
);
BufferIO
::
CopyWStr
(
ebNickName
->
getText
(),
gameConf
.
nickname
,
20
);
BufferIO
::
EncodeUTF8
(
gameConf
.
nickname
,
linebuf
);
fprintf
(
fp
,
"nickname = %s
\n
"
,
linebuf
);
...
...
gframe/gframe.cpp
View file @
875b0a5a
...
...
@@ -2,7 +2,7 @@
#include "game.h"
#include <event2/thread.h>
bool
enable_log
=
false
;
int
enable_log
=
0
;
bool
exit_on_return
=
false
;
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
script/c11502550.lua
View file @
875b0a5a
...
...
@@ -95,10 +95,10 @@ function c11502550.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c11502550
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c11502550
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c11502550
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c17032740.lua
View file @
875b0a5a
...
...
@@ -103,10 +103,10 @@ function c17032740.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c17032740
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c17032740
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c17032740
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c19594506.lua
View file @
875b0a5a
...
...
@@ -26,7 +26,7 @@ end
function
c19594506
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
Duel
.
GetFirstMatchingCard
(
c19594506
.
filter
,
tp
,
LOCATION_DECK
,
0
,
nil
)
if
tc
then
Duel
.
SendtoHand
(
t
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
t
c
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
script/c19665973.lua
View file @
875b0a5a
...
...
@@ -28,6 +28,7 @@ end
function
c19665973
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
then
Duel
.
BreakEffect
()
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
script/c213326.lua
View file @
875b0a5a
...
...
@@ -10,7 +10,7 @@ function c213326.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c213326
.
filter
(
c
)
return
c
:
IsSetCard
(
0x3008
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x3008
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
function
c213326
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c213326
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
script/c28677304.lua
View file @
875b0a5a
...
...
@@ -98,10 +98,10 @@ function c28677304.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c28677304
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c28677304
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c28677304
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c39672388.lua
View file @
875b0a5a
...
...
@@ -4,7 +4,7 @@ function c39672388.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
39672388
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c39672388
.
lvcon
)
...
...
@@ -21,7 +21,7 @@ function c39672388.filter(c)
end
function
c39672388
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c39672388
.
filter
(
chkc
)
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c39672388
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c39672388
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
end
...
...
script/c40044918.lua
View file @
875b0a5a
...
...
@@ -18,7 +18,7 @@ function c40044918.ctfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8
)
end
function
c40044918
.
schfilter
(
c
)
return
c
:
IsSetCard
(
0x8
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x8
)
and
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
AbleToHand
()
end
function
c40044918
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsDestructable
()
...
...
script/c42015635.lua
View file @
875b0a5a
...
...
@@ -17,12 +17,11 @@ function c42015635.initial_effect(c)
--Def
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
42015635
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
end
function
c42015635
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x9
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
31111109
)
return
c
:
GetCode
()
==
89943723
or
(
c
:
IsSetCard
(
0x9
)
and
c
:
IsType
(
TYPE_FUSION
)
and
not
c
:
IsCode
(
31111109
)
)
end
script/c48996569.lua
View file @
875b0a5a
...
...
@@ -98,10 +98,10 @@ function c48996569.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c48996569
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c48996569
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c48996569
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c49352945.lua
View file @
875b0a5a
...
...
@@ -111,10 +111,10 @@ function c49352945.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c49352945
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c49352945
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c49352945
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c55171412.lua
View file @
875b0a5a
...
...
@@ -99,10 +99,10 @@ function c55171412.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c55171412
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c55171412
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c55171412
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c78512663.lua
View file @
875b0a5a
...
...
@@ -112,10 +112,10 @@ function c78512663.atkval(e,c)
return
Duel
.
GetFieldGroupCount
(
0
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
*
400
end
function
c78512663
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c78512663
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c78512663
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c81566151.lua
View file @
875b0a5a
...
...
@@ -95,10 +95,10 @@ function c81566151.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c81566151
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c81566151
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c81566151
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
script/c82639107.lua
View file @
875b0a5a
...
...
@@ -5,10 +5,14 @@ function c82639107.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_TOGRAVE
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCondition
(
c82639107
.
condition
)
e1
:
SetTarget
(
c82639107
.
target
)
e1
:
SetOperation
(
c82639107
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c82639107
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c82639107
.
filter
(
c
)
return
c
:
IsSetCard
(
0x1f
)
and
c
:
IsAbleToGrave
()
end
...
...
script/c85507811.lua
View file @
875b0a5a
...
...
@@ -99,10 +99,10 @@ function c85507811.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
SendtoDeck
(
g
,
nil
,
2
,
REASON_COST
)
end
function
c85507811
.
retcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
not
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c85507811
.
retcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
42015635
)
return
e
:
GetHandler
():
IsHasEffect
(
42015635
)
end
function
c85507811
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToExtra
()
end
...
...
system.conf
View file @
875b0a5a
...
...
@@ -2,7 +2,7 @@
#nickname & gamename should be less than 20 characters
use_d3d
=
0
antialias
=
2
errorlog
=
0
errorlog
=
1
nickname
=
Player
gamename
=
Game
lastdeck
=
test
...
...
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