From edb9e8991cde2a64b3dbca44d9b38018ea96d018 Mon Sep 17 00:00:00 2001 From: "jakub.salavec" Date: Fri, 25 Apr 2025 15:16:25 +0200 Subject: [PATCH] Added - draft format json files now have format description --- .../src/main/resources/draft-table/fotrFusionTableDraft.json | 1 + .../main/resources/draft-table/fotrPowerMaxTableDraft.json | 1 + .../src/main/resources/draft-table/fotrTableDraft.json | 1 + .../src/main/resources/draft-table/hobbitTableDraft.json | 1 + .../src/main/resources/draft-table/tttFusionTableDraft.json | 1 + .../src/main/resources/draft-table/tttTableDraft.json | 1 + .../lotro/draft3/TableDraftDefinitionHtmlBuilder.java | 4 ++++ 7 files changed, 10 insertions(+) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrFusionTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrFusionTableDraft.json index 68c3daed4..28327ca02 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrFusionTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrFusionTableDraft.json @@ -3,6 +3,7 @@ "code": "fotr_fusion_table_draft", "format": "limited_fotr", "max-players": 6, + "html-description": "Each player begins with a Fellowship Draft Pack, which includes semi-random Free Peoples and Shadow cards, and one random Fellowship of the Ring rare card. Players also receive common Frodo, common Ring, and one copy of each site card.
Then, players draft six booster packs in the following order:The Fellowship of the Ring Block booster consists of cards from the Fellowship of the Ring, Mines of Moria, and Realms of the Elf-lords sets combined into a single draft pool. This means that each booster may contain cards from any of these three sets, depending on the random distribution.
Note that not all cards from these sets are included in the draft. Based on past draft analyses, some common and uncommon cards have been cut, as these cards appeared in less than 1% of decks.", "starting-collection": [ { "size": 3, "card-list": ["1_2", "1_290", "Fellowship Site Pack"] }, { diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrPowerMaxTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrPowerMaxTableDraft.json index 017458f2e..5e867df3b 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrPowerMaxTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrPowerMaxTableDraft.json @@ -3,6 +3,7 @@ "code": "fotr_power_table_draft", "format": "limited_fotr", "max-players": 8, + "html-description": "Each player begins with a Fellowship Power Max Draft Pack, which includes semi-random Free Peoples and Shadow cards. Players also receive common Frodo, common Ring, Hobbit Sword, common Balrog, Enquea, and Nertea, along with one copy of each site card.
Then, players draft six booster packs in the following order:The Fellowship of the Ring Power Max booster consists of cards from the Fellowship of the Ring, Mines of Moria, and Realms of the Elf-lords sets combined into a single draft pool. This means that each booster may contain cards from any of these three sets, depending on the random distribution.
Note that not all cards from these sets are included in the draft. Based on past draft analyses, some common and uncommon cards have been cut, as these cards appeared in less than 5% of decks. Additionally, rare cards with a playrate below 2% have also been excluded from the draft.
After that, the card pool was manually modified by Wertigo, and some cards may have been added or cut based on his evaluation.
The complete card list can be found below.", "starting-collection": [ { "size": 7, diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrTableDraft.json index 7f22a7639..9c7ec4b3b 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/fotrTableDraft.json @@ -3,6 +3,7 @@ "code": "fotr_table_draft", "format": "limited_fotr", "max-players": 6, + "html-description": "Each player begins with a Fellowship Draft Pack, which includes semi-random Free Peoples and Shadow cards, and one random Fellowship of the Ring rare card. Players also receive common Frodo, common Ring, and one copy of each site card.
Then, players draft six booster packs in the following order:
  1. Fellowship of the Ring Free Peoples booster
  2. Mines of Moria Free Peoples booster
  3. Realms of the Elf-lords Free Peoples booster
  4. Fellowship of the Ring Shadow booster
  5. Mines of Moria Shadow booster
  6. Realms of the Elf-lords Shadow booster
Note that not all cards from these sets are included in the draft. Based on past draft analyses, some common and uncommon cards have been cut, as these cards appeared in less than 1% of decks.", "starting-collection": [ { "size": 3, "card-list": ["1_2", "1_290", "Fellowship Site Pack"] }, { diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/hobbitTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/hobbitTableDraft.json index 08aed02ec..5d36a7b25 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/hobbitTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/hobbitTableDraft.json @@ -4,6 +4,7 @@ "format": "limited_hobbit", "max-players": 4, "timer": "SLOW", + "html-description": "Hobbit Draft Game is based on the rules of the Lord of the Rings TCG produced by Decipher Inc, except that the Ring-bearer is replaced by a Burglar.
Each player takes a main deck, a random Gandalf, and a random Bilbo.
Originally, each player would receive 3 booster packs of 15 cards, but this was adjusted to 5 booster packs of 9 cards due to the 4-player draft format.
Those booster packs are made from a draft pool that is randomly selected for each draft.

Hobbit Draft Game was designed by Enola: http://hobbitdraftgame.free.fr/", "starting-collection": [ { "size": 68, diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttFusionTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttFusionTableDraft.json index e347269ee..5173d154f 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttFusionTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttFusionTableDraft.json @@ -3,6 +3,7 @@ "code": "ttt_fusion_table_draft", "format": "limited_ttt", "max-players": 6, + "html-description": "Each player begins with a Towers Draft Pack, which includes semi-random Free Peoples and Shadow cards, and one random Two Towers rare card. Players also receive common Frodo, common Ring, and one copy of each site card.
Then, players draft six booster packs in the following order:The TTT Block booster consists of cards from the The Two Towers, Battle of Helm's Deep, and Ents of Fangorn sets combined into a single draft pool. This means that each booster may contain cards from any of these three sets, depending on the random distribution.
Note that not all cards from these sets are included in the draft. Based on past draft analyses, some common and uncommon cards have been cut, as these cards appeared in less than 1% of decks.", "starting-collection": [ { "size": 3, "card-list": ["4_2", "4_302", "Towers Site Pack"] }, { diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttTableDraft.json b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttTableDraft.json index f85abf68a..056c158cf 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttTableDraft.json +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/draft-table/tttTableDraft.json @@ -3,6 +3,7 @@ "code": "ttt_table_draft", "format": "limited_ttt", "max-players": 6, + "html-description": "Each player begins with a Towers Draft Pack, which includes semi-random Free Peoples and Shadow cards, and one random The Two Towers rare card. Players also receive common Frodo, common Ring, and one copy of each site card.
Then, players draft six booster packs in the following order:
  1. The Two Towers Free Peoples booster
  2. Battle of Helm's Deep Free Peoples booster
  3. Ents of Fangorn Free Peoples booster
  4. The Two Towers Shadow booster
  5. Battle of Helm's Deep Shadow booster
  6. Ents of Fangorn Shadow booster
Note that not all cards from these sets are included in the draft. Based on past draft analyses, some common and uncommon cards have been cut, as these cards appeared in less than 1% of decks.", "starting-collection": [ { "size": 3, "card-list": ["4_2", "4_302", "Towers Site Pack"] }, { diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/draft3/TableDraftDefinitionHtmlBuilder.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/draft3/TableDraftDefinitionHtmlBuilder.java index 756ab8ea1..3db887d51 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/draft3/TableDraftDefinitionHtmlBuilder.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/draft3/TableDraftDefinitionHtmlBuilder.java @@ -144,8 +144,12 @@ public class TableDraftDefinitionHtmlBuilder { String name = (String) definition.get("name"); String timer = (String) definition.get("timer"); int maxPlayers = ((Number) definition.get("max-players")).intValue(); + String htmlDescription = (String) definition.get("html-description"); builder.append("

").append(StringEscapeUtils.escapeHtml3(name)).append("

"); + if (htmlDescription != null) { + builder.append(htmlDescription); + } builder.append("

Max Players: ").append(maxPlayers).append("

"); if (timer != null) { builder.append("

Recommended Timer: ").append(StringEscapeUtils.escapeHtml3(timer)).append("

");