Skip to content

Commit

Permalink
simpleArcParse: add support for the Freezie boss
Browse files Browse the repository at this point in the history
The wintersday patch added a new "raid" encounter, Freezie. Support naming
this encounter properly.

This is a new feature, so increment the major version of simpleArcParse.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
  • Loading branch information
jacob-keller committed Dec 18, 2018
1 parent b59a6df commit 9256c68
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions l0g-101086.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ Function Check-SimpleArcParse-Version {
param([Parameter(Mandatory)][string]$version)

$expected_major_ver = 1
$expected_minor_ver = 2
$expected_patch_ver = 1
$expected_minor_ver = 4
$expected_patch_ver = 0

$expected_version = "v${expected_major_ver}.${expected_minor_ver}.${expected_patch_ver}"

Expand Down
18 changes: 16 additions & 2 deletions simpleArcParse.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ $simpleArcParse = $config.simple_arc_parse_path
describe 'simpleArcParse version' {
$version = (& $simpleArcParse version)

it 'version should be v1.3.0' {
$version | Should BeExactly 'v1.3.0'
it 'version should be v1.4.0' {
$version | Should BeExactly 'v1.4.0'
}
}

Expand Down Expand Up @@ -93,6 +93,20 @@ $testEncounters = @(
end_time=1538615342
duration=236913
}
@{
name='freezie.evtc'
version='EVTC20181214'
boss_name='Freezie'
boss_id='21333'
players=@('Red Chrysanthemum.2759', 'cozzybob.9175', 'Lumelien.1580',
'Hogfather.1028', 'eli.7123', 'Yorick.8390',
'Cat Whisperer J.2170', 'Shazbot.4328', 'Serena Sedai.3064',
'Draykrah.1980')
success='SUCCESS'
start_time=1545111706
end_time=1545112098
duration=387514
}
)

ForEach ($encounter in $testEncounters) {
Expand Down
8 changes: 7 additions & 1 deletion simpleArcParse/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ static const uint16_t nikare_id = 21105;
static const uint16_t kenut_id = 21089;
static const uint16_t qadim_id = 20934;

/* Wintersday Freezie encounter */
static const uint16_t freezie_id = 21333;

/* Fractal 99 CM boss encounters */
static const uint16_t mama_cm_id = 0x427d;
static const uint16_t siax_cm_id = 0x4284;
Expand Down Expand Up @@ -521,6 +524,9 @@ parse_header(parsed_details& details, ifstream& file)
case qadim_id:
details.boss_name = "Qadim";
break;
case freezie_id:
details.boss_name = "Freezie";
break;

default:
std::stringstream ss;
Expand Down Expand Up @@ -1035,7 +1041,7 @@ int main(int argc, char *argv[])
}

if (type == "version") {
cout << "v1.3.1" << endl;
cout << "v1.4.0" << endl;
return 0;
}

Expand Down

0 comments on commit 9256c68

Please sign in to comment.