summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/css/style.css11
-rw-r--r--src/votann/codex_view.clj32
-rw-r--r--src/votann/models/leagues_of_votann.clj80
-rw-r--r--src/votann/records/model.clj1
4 files changed, 85 insertions, 39 deletions
diff --git a/resources/css/style.css b/resources/css/style.css
index 5d08231..cc21013 100644
--- a/resources/css/style.css
+++ b/resources/css/style.css
@@ -27,6 +27,13 @@ stats {
margin-bottom: 12px;
}
+stats-two {
+ display: block;
+ height: 175px;
+ column-fill: auto;
+ column-width: 585px;
+}
+
content {
display: flex;
align-items: stretch;
@@ -134,11 +141,11 @@ td.text {
float: left;
}
-stats table {
+stats table, stats-two table {
border-spacing: 15px 0px;
}
-stats td {
+stats td, stats-two td {
width: 47px;
height: 47px;
font-size: 24px;
diff --git a/src/votann/codex_view.clj b/src/votann/codex_view.clj
index e5088ec..89bff26 100644
--- a/src/votann/codex_view.clj
+++ b/src/votann/codex_view.clj
@@ -36,10 +36,10 @@
stat-head
(stat-body (:m model) (:t model) (:sv model) (:w model) (:ld model) (:oc model))])
-(def stat-table-bottom
+(defn stat-table-bottom [model]
[:table
stat-head-empty
- stat-body])
+ (stat-body (:m model) (:t model) (:sv model) (:w model) (:ld model) (:oc model))])
(defn stat-model [name]
[:div {:class "stat-name"} [:h3 name]])
@@ -49,8 +49,30 @@
(defn stats [model]
[:stats
+ (if (empty? (:bodyguards model))
+ [:div {:class "stat-container"}
+ (stat-table model)]
+ (h/html
+ [:div {:class "stat-container"}
+ (stat-table model)
+ (stat-model (:name model))]
+ (map-indexed (fn [index model]
+ (if (= index 0)
+ [:div {:class "stat-container"}
+ (stat-table model)
+ (stat-model (:name model))]
+ [:div {:class "stat-container"}
+ (stat-table-bottom model)
+ (stat-model-bottom (:name model))])) (:bodyguards model))))])
+
+(defn stats-two [model]
+ [:stats-two
+ [:div {:class "stat-container"}
+ (stat-table model)
+ (stat-model (:name model))]
[:div {:class "stat-container"}
- (stat-table model)]])
+ (stat-table-bottom (first (:bodyguards model)))
+ (stat-model-bottom (:name (first (:bodyguards model))))]])
(def ranged-head
[:tr
@@ -219,7 +241,9 @@
(defn top [model]
[:top
[:h1 (:name model)]
- (stats model)])
+ (if (not= (count (:bodyguards model)) 1)
+ (stats model)
+ (stats-two model))])
(defn content [model]
[:content
diff --git a/src/votann/models/leagues_of_votann.clj b/src/votann/models/leagues_of_votann.clj
index 1d98fb6..0a9b56e 100644
--- a/src/votann/models/leagues_of_votann.clj
+++ b/src/votann/models/leagues_of_votann.clj
@@ -24,6 +24,7 @@
{:composition ["1 Ûthar the Destined - Epic Hero"]
:equipment ["volkanite disintegrator" "Blade of the Ancestors" "rampart crest"]}
["Einhyr Hearthguard" "Hearthkyn Warriors"]
+ []
{:model ["Infantry" "Character" "Epic Hero" "Ûthar the Destined"]
:faction ["Leagues of Votann"]}
"As the most accomplished hero of the Greater Thurian League, Kahl Ûthar the Destined is marked for greatness. Few can assess the foe as swiftly or mercilessly as Ûthar and - once he has his enemies' measure- he soon cuts them to pieces with the glowing Blade of the Ancestors."))
@@ -47,6 +48,7 @@
{:composition ["1 Khâl"]
:equipment ["Autoch-pattern combi-bolter" "forgewrought plasma axe" "rampart crest"]}
["Einhyr Hearthguard" "Hearthkyn Warriors"]
+ []
{:model ["Infantry" "Character" "Khâl"]
:faction ["Leagues of Votann"]}
"Most Oathbands are led by a Khâl, whose strategic wisdom, determination and martial might are an inspiration to their warriors. Khâls are often equipped with especially powerful weapons and potent field or teleportation technologies, the better to lead the fight from the front and bring down the deadliest foes."))
@@ -69,9 +71,22 @@
{:composition ["1 Einhyr Champion"]
:equipment ["Autoch-pattern combi-bolter" "mass hammer" "weavefield crest"]}
["Einhyr Hearthguard"]
+ []
{:model ["Infantry" "Character" "Exo-Armour" "Einhyr Champion"]
:faction ["Leagues of Votann"]} "Einhyr Champions wear modified exo-armour fitted with mass drivers. Combined with their formidable close-quarters weaponry and bulky RAM shields, this wargear transforms them into living battering rams whose accelerated charge hits hard enough to smash clean through armoured fortress gates."))
+(def corv (Model. "CORV" 5 5 4 1 6 1
+ []
+ [weapon/autoch-pattern-bolter]
+ [weapon/close-combat-weapon]
+ {}
+ []
+ {}
+ []
+ []
+ {}
+ ""))
+
(def grimnyr (Model. "Grimnyr" 5 5 4 4 6 1
(Points. "x3" 75)
[weapon/ancestral-wrath-witchfire weapon/ancestral-wrath-focused-witchfire]
@@ -88,21 +103,35 @@
:composition-notice ["If this unit's Grimny model is ever destroyed, all of this unit's remaining CORV's models are also destroyed."]
:equipment ["Ancestral Wrath" "ancestral ward stave" "Autoch-pattern bolter" "close combat weapon"]}
["Hearthkyn Warriors"]
+ [corv]
{:all-models ["Infantry" "Grimnyr"]
:model ["Character" "Psyker"]
:faction ["Leagues of Votann"]}
"The Grimnyr - or Living Ancestors - are privy to the wisdom of the Votann, and as close as to priests as the secular Kin get. Equipped with barrier tech such as ward staves and energy-focused CORVs, they are able to rouse the fury of the immaterium against their foes."))
-(def corv (Model. "CORV" 5 5 4 1 6 1
- []
- [weapon/autoch-pattern-bolter]
- [weapon/close-combat-weapon]
- {}
- []
- {}
- []
- {}
- ""))
+(def ironkin-assistant (Model. "Ironkin Assistant" 5 5 4 2 7 1
+ []
+ [weapon/las-beam-cutter]
+ [weapon/close-combat-weapon]
+ {}
+ []
+ {}
+ []
+ []
+ {}
+ ""))
+
+(def e-cog (Model. "E-COG" 5 5 4 1 7 1
+ []
+ [weapon/autoch-pattern-bolt-pistol]
+ [weapon/close-combat-weapon weapon/plasma-torch weapon/manipulator-arms]
+ {}
+ []
+ {}
+ []
+ []
+ {}
+ ""))
(def brokyr-iron-master (Model. "Brôkhyr Iron-Master" 5 5 4 4 7 1
(Points. "x3" 95)
@@ -120,34 +149,12 @@
:composition-notice ["If this unit's Iron-master is ever destroyed, all of this unit's Ironkyn Assistant and all remaining E-COGs are also destroyed."]
:equipment ["graviton rifle" "graviton hammer" "las-beam cutter" "close combat weapon" "Autoch-pattern bolt pistol" "close combat weapon" "plasma torch" "manipulator arms"]}
["Hearthkyn Warriors" "Brôkhyr Thunderkyn"]
-
+ [e-cog ironkin-assistant]
{:all-models ["Infantry" "Brôkhyr Iron-master"]
:model ["Character"]
:faction ["Leagues of Votann"]}
"Iron-masters are the most accomplished Brôkhyrs of their Kindred. In battle, they take on the duty of maintaining damaged Kin war engines, often aided by Ironkin and COG repair crews. These verteran Brôkhyrs also bring their most powerful personal creations to war, taking satisfaction in unleashing them upon the foe."))
-(def ironkin-assistant (Model. "Ironkin Assistant" 5 5 4 2 7 1
- []
- [weapon/las-beam-cutter]
- [weapon/close-combat-weapon]
- {}
- []
- {}
- []
- {}
- ""))
-
-(def e-cog (Model. "E-COG"5 5 4 1 7 1
- []
- [weapon/autoch-pattern-bolt-pistol]
- [weapon/close-combat-weapon weapon/plasma-torch weapon/manipulator-arms]
- {}
- []
- {}
- []
- {}
- ""))
-
(def hearthkyn-warriors (Model. "Hearthkyn Warriors" 5 5 4 1 7 2
(Points. "x10" 135)
[weapon/autoch-pattern-bolt-pistol
@@ -179,6 +186,7 @@
{:composition ["1 Theyn" "9 Hearthkyn Warriors"]
:equipment ["Autoch-pattern bolt pistol" "Autoch-pattern bolter" "close combat weapon" "weavefield crest"]}
[]
+ []
{:model ["Infantry" "Battleline" "Grenades" "Hearthkyn Warriors"]
:faction ["Leagues of Votann"]}
"Well-armoured, well-trained and equipped with an array of powerful weaponry, Hearthkyn Warriors form the backbone of most Oathbands. Led by their Theyns, they lay down hails of firepower, shrugging off the enemy's return volleys before storming in to shatter their wavering foes for good."))
@@ -203,6 +211,7 @@
{:composition ["1 Hesyr" "4-9 Hearthguard"]
:equipment ["EtaCam plasma gun" "exo-armour grenade launcher" "concussion gauntlet" "weavefield crest"]}
[]
+ []
{:model ["Infantry" "Exo-Armour" "Einhyr Hearthguard"]
:faction ["Leagues of Votann"]}
"Clad in formidable exo-armour and equipped with a fearsome array of weaponry, Einhyr Hearthguard are a force to be reckoned with. Whether forming bodyguard around their Oathband's heroes or striking deep into the heart of enemy territory, they are unstoppable on the attack and immovable in defence."))
@@ -227,6 +236,7 @@
{:composition ["5-10 Cthonian Beserks"]
:equipment ["heavy plasma axe"]}
[]
+ []
{:model ["Infantry" "Cthonian Beserks"]
:faction ["Leagues of Votann"]}
"Cthonian Beserks are amongs the most heavily augmented and courageious Kin. Brandishing mining-tools-cum-weapons-of-war and unleashing explosives that tunnel through solid rock, the Beserks storm the enemy's strongpoints and break them open like an asterioid filled with seams of precious ore."))
@@ -255,6 +265,7 @@
{:composition ["3-6 Hernkyn Pioneers"]
:equipment ["bolt revolver" "bolt shotgun" "magna-coil autocannon" "plasma knife"]}
[]
+ []
{:model ["Mounted" "Grenades" "Fly" "Hernkyn Pioneers"]
:faction ["Leagues of Votann"]}
"Hernkyn Pioneers skim across alien worlds and scout enemey positions, riding on their magna-coil bikes. Fast, resilient, and possessed of formidable firepower, these far ranging bands of warriors often strike at the foe from unexpected quarters, or send back intelligence on enemy movements to their Oathban's Kahl."))
@@ -277,6 +288,7 @@
{:composition ["1 Sagitaur"]
:equipment ["HYLas beam cannon" "twin bolt cannon" "armoured wheels"]}
[]
+ []
{:model ["Vehicle" "Transport" "Dedicated Transport" "Sagitaur"]
:faction ["Leagues of Votann"]}
"Designed to survive the worst that hostile worlds and alien predators can throw at it, the Sagitaur is a rugged ATV ideally suited to scouting operations and switft, armoured offensives. Sagitaurs mount a remarkable amount of firepowr for their size, and can even knock out enemey battle tanks."))
@@ -295,6 +307,7 @@
{:composition ["3-6 Brôkhyr Thunderkyn"]
:equipment ["bolt cannon" "close combat weapon"]}
[]
+ []
{:model ["Infantry" "Exo-Frame" "Brôkhyr Thunderkyn"]
:faction ["Leagues of Votann"]}
"When a Brôkhyr hooks into a powerful exo-frame, they become Thunderkyn. Adapted from void-rigs used to maintain Kin spacecraft, these armoured exoskeletons exchange repair tools for massive heavy weapons, which the Brôkhyr use to lay down withering covering fire for the Oathbands and to pick off enemey armour."))
@@ -322,6 +335,7 @@
{:composition ["1 Hekaton Land Fortress"]
:equipment ["cyclic ion cannon" "MATR autocannon" "2 twin bolt cannons" "armoured wheels" "pan spectral scanner"]}
[]
+ []
{:model ["Vehicle" "Transport" "Hekaton Land Fortress"]
:faction ["Leagues of Votann"]}
"The iconic battle tank and armoured transport of the Leagues of Votann, the Hekaton Land Fortress is a venerable and well-respected as it is powerful. With a fearsome arsenal of heavy weaponry and tremendously resilient armour - and with the ability to bear bands of Kin solidery into battle - it is a versatile military asset."))
diff --git a/src/votann/records/model.clj b/src/votann/records/model.clj
index 21eb237..9676016 100644
--- a/src/votann/records/model.clj
+++ b/src/votann/records/model.clj
@@ -8,5 +8,6 @@
wargear-options
unit-composition
leader
+ bodyguards
keywords
quote])