Skip to content

Commit 1f3115c

Browse files
authored
Archetype constants script updates
- Name consistency updates: SET_HORUS_BLACK_FLAME_DRAGON --> SET_HORUS_THE_BLACK_FLAME_DRAGON SET_CENTURION --> SET_CENTUR_ION - Added "SET_POLYMERIZATION" (same as "SET_FUSION") - Moved "SET_TRAPTRIX" from 0x108a to 0x8a - Removed "SET_HELIOS" and "SET_KANGAROO"
1 parent cf66a5b commit 1f3115c

20 files changed

Lines changed: 72 additions & 66 deletions

archetype_setcode_constants.lua

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
--[[
22
Archetype setcode constants list (akin to common card names).
3-
Includes every archetype that's being used in official card scripts.
3+
Includes every archetype that's being used in OCG/TCG card scripts.
4+
5+
To be formatted, probably alphabetically while keeping sub-archetypes with the original.
46
5-
Notes:
6-
- To be formatted, probably alphabetically while keeping sub-archetypes with the original.
7-
8-
- 0x8c Druid (unused, non-existent archetype, ドルイド, 4 OCG cards include it in their names)
9-
10-
- 0x106d Djinn of Rituals (unused sub-archetype of "Djinn")
11-
- 0x8a Envy (unused super-archetype of "Traptrix")
12-
13-
- 0xb6 not used at all
14-
- 0xb8 not used at all
7+
Available/unused values:
8+
- 0x68
9+
- 0x6c
10+
- 0x8c
11+
- 0xb6
12+
- 0xb8
1513
--]]
1614

1715
SET_ALLY_OF_JUSTICE = 0x1
1816
SET_GENEX = 0x2
1917
SET_R_GENEX = 0x1002
2018
SET_GENEX_ALLY = 0x2002
2119
SET_HORUS = 0x3
22-
SET_HORUS_BLACK_FLAME_DRAGON = 0x1003
20+
SET_HORUS_THE_BLACK_FLAME_DRAGON = 0x1003
2321
SET_AMAZONESS = 0x4
2422
SET_ARCANA_FORCE = 0x5
2523
SET_DARK_WORLD = 0x6
@@ -115,6 +113,7 @@ SET_JUNK = 0x43
115113
SET_THE_AGENT = 0x44
116114
SET_ARCHFIEND = 0x45
117115
SET_RED_DRAGON_ARCHFIEND = 0x1045
116+
SET_POLYMERIZATION = 0x46
118117
SET_FUSION = 0x46
119118
SET_FUSION_DRAGON = 0x1046
120119
SET_GEM = 0x47
@@ -165,7 +164,6 @@ SET_MAGNET_WARRIOR_SIGMA = 0xb066
165164
SET_HIERATIC = 0x69
166165
SET_BUTTERSPY = 0x6a
167166
SET_BOUNZER = 0x6b
168-
SET_HELIOS = 0x6c
169167
SET_DJINN = 0x6d
170168
SET_PROPHECY = 0x6e
171169
SET_SPELLBOOK = 0x106e
@@ -214,7 +212,7 @@ SET_STAR_SERAPH = 0x86
214212
SET_UMBRAL_HORROR = 0x87
215213
SET_BUJIN = 0x88
216214
SET_HOLE = 0x89
217-
SET_TRAPTRIX = 0x108a
215+
SET_TRAPTRIX = 0x8a
218216
SET_MALICEVOROUS = 0x8b
219217
SET_GHOSTRICK = 0x8d
220218
SET_VAMPIRE = 0x8e
@@ -522,7 +520,6 @@ SET_GHOTI = 0x18b
522520
SET_KASHTIRA = 0x18a
523521
SET_GOLD_PRIDE = 0x193
524522
SET_KOALA = 0x67
525-
SET_KANGAROO = 0x68
526523
SET_RESCUE_ACE = 0x18c
527524
SET_PURRELY = 0x18d
528525
SET_MIKANKO = 0x18e
@@ -537,7 +534,7 @@ SET_NOUVELLES = 0x197
537534
SET_RECIPE = 0x198
538535
SET_VISAS = 0x199
539536
SET_MEMENTO = 0x19a
540-
SET_CENTURION = 0x19b
537+
SET_CENTUR_ION = 0x19b
541538
SET_VAALMONICA = 0x19c
542539
SET_YUBEL = 0x19d
543540
SET_VOICELESS_VOICE = 0x19e

official/c15005145.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function s.initial_effect(c)
1010
e1:SetRange(LOCATION_SZONE)
1111
e1:SetTargetRange(LOCATION_MZONE,0)
1212
e1:SetCondition(function(e) return e:GetHandler():IsContinuousTrap() end)
13-
e1:SetTarget(function(e,c) return c:IsLevelAbove(5) and c:IsSetCard(SET_CENTURION) end)
13+
e1:SetTarget(function(e,c) return c:IsLevelAbove(5) and c:IsSetCard(SET_CENTUR_ION) end)
1414
e1:SetValue(1)
1515
c:RegisterEffect(e1)
1616
--Search 1 "Centurion" card
@@ -42,9 +42,9 @@ function s.initial_effect(c)
4242
c:RegisterEffect(e4)
4343
end
4444
s.listed_names={id}
45-
s.listed_series={SET_CENTURION}
45+
s.listed_series={SET_CENTUR_ION}
4646
function s.thfilter(c)
47-
return c:IsSetCard(SET_CENTURION) and not c:IsCode(id) and c:IsAbleToHand()
47+
return c:IsSetCard(SET_CENTUR_ION) and not c:IsCode(id) and c:IsAbleToHand()
4848
end
4949
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
5050
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end

official/c15982593.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function s.initial_effect(c)
3838
e3:SetOperation(s.plop)
3939
c:RegisterEffect(e3)
4040
end
41-
s.listed_series={SET_CENTURION}
41+
s.listed_series={SET_CENTUR_ION}
4242
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
4343
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
4444
Duel.SetTargetPlayer(tp)
@@ -66,7 +66,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
6666
end
6767
end
6868
function s.plfilter(c)
69-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsType(TYPE_SYNCHRO) and not c:IsForbidden()
69+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsType(TYPE_SYNCHRO) and not c:IsForbidden()
7070
end
7171
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)
7272
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0

official/c40155014.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function s.initial_effect(c)
3030
e2:SetOperation(s.spop)
3131
c:RegisterEffect(e2)
3232
end
33-
s.listed_series={SET_CENTURION}
33+
s.listed_series={SET_CENTUR_ION}
3434
function s.rmvfilter(c)
3535
return c:IsFaceup() and c:IsOriginalType(TYPE_MONSTER) and c:IsAbleToRemove()
3636
end
@@ -60,7 +60,7 @@ function s.rmvop(e,tp,eg,ep,ev,re,r,rp)
6060
end
6161
end
6262
function s.spfilter(c,e,tp)
63-
return c:IsSetCard(SET_CENTURION) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
63+
return c:IsSetCard(SET_CENTUR_ION) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
6464
end
6565
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
6666
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.spfilter(chkc,e,tp) end

official/c41371602.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ function s.initial_effect(c)
4242
e4:SetOperation(s.synop)
4343
c:RegisterEffect(e4)
4444
end
45-
s.listed_series={SET_CENTURION}
45+
s.listed_series={SET_CENTUR_ION}
4646
function s.reg(e,tp,eg,ep,ev,re,r,rp,chk)
4747
if chk==0 then return true end
4848
e:GetHandler():RegisterFlagEffect(id,RESETS_STANDARD_PHASE_END,EFFECT_FLAG_OATH,1)
4949
end
5050
function s.indfilter(c)
51-
return c:IsFaceup() and c:IsOriginalType(TYPE_MONSTER) and c:IsSetCard(SET_CENTURION)
51+
return c:IsFaceup() and c:IsOriginalType(TYPE_MONSTER) and c:IsSetCard(SET_CENTUR_ION)
5252
end
5353
function s.indcon(e)
5454
return Duel.IsExistingMatchingCard(s.indfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
@@ -60,7 +60,7 @@ function s.tfcost(e,tp,eg,ep,ev,re,r,rp,chk)
6060
Duel.SendtoGrave(g,REASON_COST)
6161
end
6262
function s.plfilter(c)
63-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsForbidden()
63+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsForbidden()
6464
end
6565
function s.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
6666
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
@@ -82,7 +82,7 @@ function s.tfop(e,tp,eg,ep,ev,re,r,rp)
8282
end
8383
end
8484
function s.syncheck(tp,sg,sc)
85-
return sg:IsExists(Card.IsSetCard,1,nil,SET_CENTURION)
85+
return sg:IsExists(Card.IsSetCard,1,nil,SET_CENTUR_ION)
8686
end
8787
function s.syntg(e,tp,eg,ep,ev,re,r,rp,chk)
8888
if chk==0 then

official/c4160316.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function s.initial_effect(c)
2727
e2:SetOperation(s.plop)
2828
c:RegisterEffect(e2)
2929
end
30-
s.listed_series={SET_CENTURION}
30+
s.listed_series={SET_CENTUR_ION}
3131
function s.move_to_stzone(c,hc,tp)
3232
if not Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) then return end
3333
--Treat as Continuous Trap
@@ -41,7 +41,7 @@ function s.move_to_stzone(c,hc,tp)
4141
return true
4242
end
4343
function s.plfilter(c)
44-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsForbidden()
44+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsForbidden()
4545
end
4646
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
4747
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
@@ -59,7 +59,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
5959
end
6060
end
6161
function s.cfilter(c,tp)
62-
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(SET_CENTURION) and c:IsType(TYPE_SYNCHRO)
62+
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(SET_CENTUR_ION) and c:IsType(TYPE_SYNCHRO)
6363
end
6464
function s.plcon(e,tp,eg,ep,ev,re,r,rp)
6565
return eg:IsExists(s.cfilter,1,nil,tp)

official/c42493140.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function s.initial_effect(c)
2727
c:RegisterEffect(e2)
2828
end
2929
s.listed_names={id}
30-
s.listed_series={SET_CENTURION}
30+
s.listed_series={SET_CENTUR_ION}
3131
function s.plfilter(c)
32-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsForbidden() and not c:IsCode(id)
32+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsForbidden() and not c:IsCode(id)
3333
end
3434
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)
3535
if chk==0 then return not e:GetHandler():IsForbidden()

official/c61950680.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function s.initial_effect(c)
3131
e3:SetCode(EVENT_REMOVE)
3232
c:RegisterEffect(e3)
3333
end
34-
s.listed_series={SET_CENTURION}
34+
s.listed_series={SET_CENTUR_ION}
3535
function s.rmcostfilter(c)
36-
return c:IsSetCard(SET_CENTURION) and c:IsMonsterCard() and c:IsFaceup() and c:IsAbleToRemoveAsCost()
36+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonsterCard() and c:IsFaceup() and c:IsAbleToRemoveAsCost()
3737
end
3838
function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
3939
if chk==0 then return Duel.IsExistingMatchingCard(s.rmcostfilter,tp,LOCATION_STZONE,0,1,nil) end
@@ -60,7 +60,7 @@ function s.plcon(e,tp,eg,ep,ev,re,r,rp)
6060
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEDOWN)
6161
end
6262
function s.plfilter(c)
63-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsForbidden()
63+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsForbidden()
6464
and (c:IsFaceup() or c:IsLocation(LOCATION_HAND|LOCATION_DECK))
6565
end
6666
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)

official/c71858682.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ function s.initial_effect(c)
3636
e3:SetOperation(s.plop)
3737
c:RegisterEffect(e3)
3838
end
39-
s.listed_series={SET_CENTURION}
39+
s.listed_series={SET_CENTUR_ION}
4040
function s.thfilter(c)
41-
return c:IsSetCard(SET_CENTURION) and c:IsAbleToHand()
41+
return c:IsSetCard(SET_CENTUR_ION) and c:IsAbleToHand()
4242
end
4343
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
4444
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
@@ -53,7 +53,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
5353
end
5454
end
5555
function s.plfilter(c,tp)
56-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsType(TYPE_SYNCHRO)
56+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsType(TYPE_SYNCHRO)
5757
and c:IsFaceup() and not c:IsForbidden() and c:CheckUniqueOnField(tp)
5858
end
5959
function s.pltg(e,tp,eg,ep,ev,re,r,rp,chk)

official/c77765207.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ function s.initial_effect(c)
1414
e1:SetOperation(s.activate)
1515
c:RegisterEffect(e1)
1616
end
17-
s.listed_series={SET_CENTURION}
17+
s.listed_series={SET_CENTUR_ION}
1818
function s.plfilter(c)
19-
return c:IsSetCard(SET_CENTURION) and c:IsMonster() and not c:IsForbidden()
19+
return c:IsSetCard(SET_CENTUR_ION) and c:IsMonster() and not c:IsForbidden()
2020
end
2121
function s.setfilter(c,ft)
22-
return c:IsSetCard(SET_CENTURION) and c:IsSpellTrap() and c:IsSSetable() and (ft>0 or c:IsFieldSpell())
22+
return c:IsSetCard(SET_CENTUR_ION) and c:IsSpellTrap() and c:IsSSetable() and (ft>0 or c:IsFieldSpell())
2323
end
2424
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2525
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
@@ -64,11 +64,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
6464
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
6565
e2:SetTargetRange(1,0)
6666
e2:SetCondition(function() return Duel.IsExistingMatchingCard(s.spconfilter,tp,LOCATION_ONFIELD,0,1,nil,sc:GetOriginalCodeRule()) end)
67-
e2:SetTarget(function(_e,_c) return not _c:IsSetCard(SET_CENTURION) and _c:IsLocation(LOCATION_EXTRA) end)
67+
e2:SetTarget(function(_e,_c) return not _c:IsSetCard(SET_CENTUR_ION) and _c:IsLocation(LOCATION_EXTRA) end)
6868
e2:SetReset(RESET_PHASE|PHASE_END)
6969
Duel.RegisterEffect(e2,tp)
7070
--Clock Lizard check
71-
aux.addTempLizardCheck(c,tp,function(_e,_c) return not _c:IsOriginalSetCard(SET_CENTURION) end)
71+
aux.addTempLizardCheck(c,tp,function(_e,_c) return not _c:IsOriginalSetCard(SET_CENTUR_ION) end)
7272
end
7373
elseif op==2 then
7474
--Set 1 "Centurion" Spell/Trap directly from your Deck

0 commit comments

Comments
 (0)