duxbuse / ninthage-data-analytics

A better way for the project to ingest tournament results
GNU General Public License v3.0
1 stars 0 forks source link

Armybuilder keeps point costs of upgrades leading to wrong point calculation by the error validator. #124

Open SanderND opened 2 years ago

SanderND commented 2 years ago

The output of an Armybuilder list is not correctly compiled by the formatter.

Input: "Dread Elves Army

9 Dread Knights @ 560 Pts Lance; Heavy Armour; Shield; Standard; Ruthless Efficiency; Scent of Blood Eye of the Gorgon [50]

 1 Champion @ [10] Pts

 10 Daeb Raptor @ [0] Pts

9 Shadow Riders @ 330 Pts Light Lance; Reapeater Crossbow (3+); Light Armour; Shield; Standard; Hunting Bolas; Ruthless Efficiency

 1 Champion @ [10] Pts

 10 Elven Horse @ [0] Pts

1 Dread Prince @ 510 Pts General; Lance; Heavy Armour; Shield; Deadly Riposte; Ruthless Efficiency Basalt Infusion [40] Transcendence [50] Talisman of Shielding [50] Mask of the War Crow [60]

 1 Daeb Raptor @ [0] Pts
      Scent of Blood

1 Hydra @ 420 Pts Cut one off...; Rage

 2 Lashmaster @ [0] Pts
      Ruthless Efficiency

3 Gorgons @ 395 Pts Halberd; Petrifying Stare; Ruthless Efficiency

10 Beast Breakers Raiding Party @ 180 Pts Beast Breakers; Light Armour; Shield; Hunting Bolas; Ruthless Efficiency

29 Temple Militants @ 555 Pts Blades of Darag; Light Armour; Standard; Ruthless Efficiency Rending Banner [50]

 1 Champion @ [10] Pts

1 Divine Altar - Crucible of Slaughter @ 310 Pts Crucible of Slaughter; Divine Blessing; Frenzy

 3 Attendant @ [0] Pts
      Ruthless Efficiency

1 Warlock Outcast Master @ 640 Pts Wizard Master; The Witchcraft; Paired Weapons; Light Armour; Irresistible Will; Ruthless Efficiency Hero's Heart [50] Essence of Mithril [50] Moithir’s Mirror [60] Dragon Staff [25]

 1 Elven Horse @ [0] Pts

10 Beast Breakers Raiding Party @ 180 Pts Beast Breakers; Light Armour; Shield; Hunting Bolas; Ruthless Efficiency

1 Hydra @ 420 Pts Cut one off...; Rage

 2 Lashmaster @ [0] Pts
      Ruthless Efficiency

Models in Army: 67

Total Army Cost: 4500"

Output:

"Army Dread Elves 560 - 9x Dread Knights, Lance, Heavy Armour, Shield, Standard Bearer, Ruthless Efficiency, Scent of Blood Eye of the Gorgon [50] 10 - Daeb Raptor @ [0] Pts 330 - 9x Shadow Riders, Light Lance, Repeater Crossbow3, Light Armour, Shield, Standard Bearer, Hunting Bolas, Ruthless Efficiency 10 - Elven Horse @ [0] Pts 510 - Dread Prince, General, Lance, Heavy Armour, Shield, Deadly Riposte, Ruthless Efficiency Basalt Infusion [40] Transcendence [50] Talisman of Shielding [50] Mask of the War Crow [60] 420 - Hydra, Cut one off, Rage 395 - 3x Gorgons, Halberd, Petrifying Stare, Ruthless Efficiency 180 - 10x Beast Breakers Raiding Party Beast Breakers, Light Armour, Shield, Hunting Bolas, Ruthless Efficiency 555 - 29x Temple Militants, Blades of Darag, Light Armour, Standard Bearer, Ruthless Efficiency Rending Banner [50] 310 - Divine Altar, Crucible of Slaughter, Divine Blessing, Frenzy 640 - Warlock Outcast, Master Wizard Master, The Witchcraft, Paired Weapons, Light Armour, Irresistible Will, Ruthless Efficiency Hero's Heart [50] Essence of Mithril [50] Moithir's Mirror [60] Dragon Staff [25] 180 - 10x Beast Breakers Raiding Party Beast Breakers, Light Armour, Shield, Hunting Bolas, Ruthless Efficiency 420 - Hydra, Cut one off, Rage 4500"