core: import the rules core (ygopro-core 973672dc + fork patches)
The vendored ocgcore from the Unity repo (Tools/YGOLegacy/ocgcore at dev HEAD). Upstream is nanahira/ygopro-core at 973672dc9ce7cb49f47173277ab1ad0e318b7593; the seven files that differ from it carry the fork's core patches, already applied: 0001 face-down Token setcode, 0004 effect damage step outside a chain, 0008 Sandbox god mode, 0015 tag first seat holds the hand, 0022 attack preview, 0024 attack preview legality. Generated build/ output is left out. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
commit
26f9baf9b4
47 files changed
+40899
No files matched your search
@@ -0,0 +1,20 @@
|
||||
--step 1: add new column
|
||||
ALTER TABLE datas ADD COLUMN rule_code INTEGER DEFAULT 0;
|
||||
|
||||
--step 2: update "treated as X" cards
|
||||
UPDATE datas
|
||||
SET rule_code = alias, alias = 0
|
||||
WHERE id IN (
|
||||
SELECT id
|
||||
FROM datas
|
||||
WHERE NOT (type & 0x4000) AND alias != 0 AND abs(id - alias) >= 20
|
||||
);
|
||||
|
||||
--step 3: update special cards
|
||||
UPDATE datas
|
||||
SET rule_code = alias, alias = 0
|
||||
WHERE id = 5405695;
|
||||
|
||||
UPDATE datas
|
||||
SET rule_code = 13331639
|
||||
WHERE alias = 6218704;
|
||||
Reference in new issue
Block a user