Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
db345f40
Commit
db345f40
authored
May 31, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Duel.SetLP()
It can accept negative value by default.
parent
7b91d4b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
22 deletions
+7
-22
c2055403.lua
c2055403.lua
+1
-5
c36378044.lua
c36378044.lua
+1
-3
c54447022.lua
c54447022.lua
+1
-6
c84677654.lua
c84677654.lua
+2
-2
c94773007.lua
c94773007.lua
+1
-1
c97433739.lua
c97433739.lua
+1
-5
No files found.
c2055403.lua
View file @
db345f40
...
@@ -29,11 +29,7 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -29,11 +29,7 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
local
ct
=
og
:
FilterCount
(
Card
.
IsLocation
,
nil
,
LOCATION_DECK
+
LOCATION_EXTRA
)
if
ct
>
0
then
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
if
Duel
.
GetLP
(
tp
)
>=
ct
*
1000
then
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
ct
*
1000
)
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
-
ct
*
1000
)
else
Duel
.
SetLP
(
tp
,
0
)
end
end
end
end
end
end
end
c36378044.lua
View file @
db345f40
...
@@ -60,7 +60,5 @@ function c36378044.descon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -60,7 +60,5 @@ function c36378044.descon(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c36378044
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36378044
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lp
=
Duel
.
GetLP
(
tp
)
local
lp
=
Duel
.
GetLP
(
tp
)
if
lp
>
6000
then
lp
=
lp
-
6000
Duel
.
SetLP
(
tp
,
lp
-
6000
)
else
lp
=
0
end
Duel
.
SetLP
(
tp
,
lp
)
end
end
c54447022.lua
View file @
db345f40
...
@@ -46,10 +46,5 @@ function c54447022.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,10 +46,5 @@ function c54447022.spop(e,tp,eg,ep,ev,re,r,rp)
sg
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
sg
=
sg
:
Select
(
tp
,
ft
,
ft
,
nil
)
end
end
local
ct
=
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
ct
=
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
lp
=
Duel
.
GetLP
(
tp
)
Duel
.
SetLP
(
tp
,
lp
-
ct
*
1000
)
if
lp
<=
ct
*
1000
then
Duel
.
SetLP
(
tp
,
0
)
else
Duel
.
SetLP
(
tp
,
lp
-
ct
*
1000
)
end
end
end
c84677654.lua
View file @
db345f40
...
@@ -34,7 +34,7 @@ function c84677654.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,7 +34,7 @@ function c84677654.operation(e,tp,eg,ep,ev,re,r,rp)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
elseif
coin1
==
0
and
coin2
==
0
then
elseif
coin1
==
0
and
coin2
==
0
then
local
lp
=
Duel
.
GetLP
(
tp
)
-
lv
*
500
local
lp
=
Duel
.
GetLP
(
tp
)
Duel
.
SetLP
(
tp
,
lp
>
0
and
lp
or
0
)
Duel
.
SetLP
(
tp
,
lp
-
lv
*
50
0
)
end
end
end
end
c94773007.lua
View file @
db345f40
...
@@ -18,6 +18,6 @@ function c94773007.atop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,6 +18,6 @@ function c94773007.atop(e,tp,eg,ep,ev,re,r,rp)
local
opt
=
Duel
.
SelectOption
(
tp
,
60
,
61
)
local
opt
=
Duel
.
SelectOption
(
tp
,
60
,
61
)
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
local
coin
=
Duel
.
TossCoin
(
tp
,
1
)
if
opt
==
coin
then
if
opt
==
coin
then
Duel
.
SetLP
(
tp
,
Duel
.
GetLP
(
tp
)
/
2
)
Duel
.
SetLP
(
tp
,
math.ceil
(
Duel
.
GetLP
(
tp
)
/
2
)
)
end
end
end
end
c97433739.lua
View file @
db345f40
...
@@ -107,9 +107,5 @@ function c97433739.checkop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -107,9 +107,5 @@ function c97433739.checkop2(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c97433739
.
lpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c97433739
.
lpop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
lp
=
Duel
.
GetLP
(
tp
)
local
lp
=
Duel
.
GetLP
(
tp
)
if
lp
<=
4000
then
Duel
.
SetLP
(
tp
,
lp
-
4000
)
Duel
.
SetLP
(
tp
,
0
)
else
Duel
.
SetLP
(
tp
,
lp
-
4000
)
end
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