Adding promos for April weekend league

This commit is contained in:
Christian 'ketura' McCarty
2024-04-28 22:19:27 -05:00
parent 1661be53b8
commit 6299ceadc0
6 changed files with 96 additions and 17 deletions

View File

@@ -1,7 +1,11 @@
--
-- SELECT *
-- FROM league l
-- ORDER BY id DESC;
SET @player = 'sempolPL', @rank=0;
SET @player = 'Chadwick537', @rank=0;
SELECT
@player AS player
@@ -15,16 +19,28 @@ SELECT
CASE
WHEN winner = @player THEN CONCAT(REPLACE(winner, '_', '%5F'), '$', win_recording_id)
ELSE CONCAT(REPLACE(loser, '_', '%5F'), '$', lose_recording_id)
END, ']', @rank:=@rank+1,'[/url] <EFBFBD> ') AS URL
END, ']', @rank:=@rank+1,'[/url] ') AS URL
FROM game_history gh
INNER JOIN player p
ON p.name = @player
INNER JOIN deck d
LEFT JOIN deck d
ON d.player_id = p.id
AND (d.name = winner_deck_name OR d.name = loser_deck_name OR d.name = 'denethor / tentacle V2')
WHERE tournament = 'Constructed - Weekend Qualifier PC-Expanded - Serie 1'
AND start_date > '2023-07-20'
WHERE tournament = 'PC Weekend Qualifier League - PC-FOTR - Serie 1'
AND start_date > '2024-04-20'
AND (winner = @player OR loser = @player)
ORDER BY gh.id;
-- SELECT *
-- FROM game_history gh
-- WHERE winner = @player OR loser = @player
-- ORDER BY id DESC
--
--
-- SELECT *
-- FROM deck d
-- INNER JOIN player p
-- ON d.player_id = p.id
-- WHERE p.name = @player

View File

@@ -55,12 +55,12 @@ ORDER BY gh.id;
--
-- SELECT *
-- ,CONCAT('https://play.lotrtcgpc.net/gemp-lotr/game.html?replayId=',REPLACE(winner, '_', '%5F'), '$', win_recording_id) AS winner_replay
-- ,CONCAT('https://play.lotrtcgpc.net/gemp-lotr/game.html?replayId=',REPLACE(loser, '_', '%5F'), '$', lose_recording_id) AS loser_replay
-- FROM game_history gh
-- WHERE tournament = '2023 PC-Expanded Championship'
SELECT winner, loser, win_reason, lose_reason, start_date, end_date
,CONCAT('https://play.lotrtcgpc.net/gemp-lotr/game.html?replayId=',REPLACE(winner, '_', '%5F'), '$', win_recording_id) AS winner_replay
,CONCAT('https://play.lotrtcgpc.net/gemp-lotr/game.html?replayId=',REPLACE(loser, '_', '%5F'), '$', lose_recording_id) AS loser_replay
FROM game_history gh
WHERE tournament = '2023 WC Group Stage'

View File

@@ -9,8 +9,50 @@ WHERE contents RLIKE '(7|8)\\d_'
SELECT REGEXP_REPLACE(REGEXP_REPLACE('7_94,7_94,87_13,81_30,72_32,51_80,1_83,71_240,71_240,71_240,71_240,72_32', '7(\\d)_', '5\\1_'), '8(\\d)_', '6\\1_')
SELECT REGEXP_REPLACE('51_404,7_94,87_13,81_30,72_32,51_80,1_83,71_240,71_240,71_240,71_240,72_32,51_402,51_403', '51_40\\d', '51_70')
SELECT REGEXP_REPLACE('51_404,7_94,87_13,81_30,72_32,51_80,1_83,71_240,71_240,71_240,71_240,72_32,51_402,51_403,51_401', '53_401', '53_13')
UPDATE deck
SET contents = REGEXP_REPLACE(REGEXP_REPLACE(contents, '7(\\d)_', '5\\1_'), '8(\\d)_', '6\\1_')
WHERE contents RLIKE '(7|8)_'
UPDATE deck
SET contents = REGEXP_REPLACE(contents, '51_40\\d', '51_70')
WHERE contents RLIKE '51_40\\d'
UPDATE deck
SET contents = REGEXP_REPLACE(contents, '53_401', '53_13')
WHERE contents RLIKE '53_401'
UPDATE deck
SET contents = CONCAT(contents,'|100_4')
WHERE target_format = 'Movie Block (PC)'
UPDATE deck
SET contents = CONCAT(contents,'|100_4')
WHERE target_format = 'PLAYTEST - Movie Block (PC)'
AND contents RLIKE '(7_335|7_336|7_337)'
UPDATE deck
SET contents = CONCAT(contents,'|100_2')
WHERE target_format = 'PLAYTEST - Movie Block (PC)'
AND contents RLIKE '(1_349)'
UPDATE deck
SET contents = CONCAT(contents,'|100_3')
WHERE target_format = 'PLAYTEST - Movie Block (PC)'
AND contents RLIKE '(4_360|4_361|4_362|4_363|5_120|6_120)'
SELECT *
FROM deck d
WHERE target_format = 'PLAYTEST - Movie Block (PC)'
-- UPDATE deck
-- SET contents = REGEXP_REPLACE(REGEXP_REPLACE(contents, '7(\\d)_', '5\\1_'), '8(\\d)_', '6\\1_')
-- WHERE contents RLIKE '(7|8)_'

View File

@@ -621,6 +621,12 @@ var PCCards = {
//Maps
'100_2' : 'https://i.lotrtcgpc.net/sets/vset0/LOTR-ENV0S002.0_card.jpg',
'100_3' : 'https://i.lotrtcgpc.net/sets/vset0/LOTR-ENV0S003.0_card.jpg',
'100_4' : 'https://i.lotrtcgpc.net/sets/vset0/LOTR-ENV0S004.0_card.jpg'
'100_4' : 'https://i.lotrtcgpc.net/sets/vset0/LOTR-ENV0S004.0_card.jpg',
//April 2024 Weekend League
//Troop of Uruk-hai FA
'1_389': 'https://i.lotrtcgpc.net/promos/LOTR-EN01U143.0_card.jpg',
//Gandalf's Staff MW
'2_127': 'https://i.lotrtcgpc.net/promos/LOTR-EN02O022.0_card.jpg'
}

View File

@@ -376,3 +376,7 @@ gl_theOneRing,1_2
1_387,1_307
#Merry, Holiday Promo
1_388,1_302
#Troop of Uruk-hai FA
1_389,1_143
#Gandalf's Staff MW
2_127,2_22

View File

@@ -376,6 +376,10 @@
1x10_127
#Arwen, Queen of Elves and Men FA
1x10_128
#Troop of Uruk-hai FA
1x1_389
#Gandalf's Staff MW
1x2_127
]
}
@@ -461,6 +465,9 @@
1x10_127
#Arwen, Queen of Elves and Men FA
1x10_128
#Troop of Uruk-hai FA
1x1_389
]
}
@@ -584,6 +591,8 @@
1x8_125
#Sapling of the White Tree MW
1x9_58
#Gandalf's Staff MW
1x2_127
]
}
@@ -707,6 +716,8 @@
1x8_125
#Sapling of the White Tree MW
1x9_58
#Gandalf's Staff MW
1x2_127
]
}
]