Skip to content

Commit 17b2224

Browse files
committed
update the l0g-101086.psm1 to use location info
Modify the module file to expect location data from the EVTC information generated by simpleArcParse. This makes the scripts expect simpleArcParse version 2.4.0 at least. With this change, there is a slight window where old encounters that were recorded with a previous version of simpleArcParse will not be published properly. However, newly published encounters will correctly determine the location from the simpleArcParse data. This has the advantage that new encounter data only needs to be added to the simpleArcParse program, rather than needing both a change to the module file and to the program. Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
1 parent 7983a4b commit 17b2224

File tree

1 file changed

+18
-120
lines changed

1 file changed

+18
-120
lines changed

l0g-101086.psm1

Lines changed: 18 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ Function Check-SimpleArcParse-Version {
272272
param([Parameter(Mandatory)][string]$version)
273273

274274
$expected_major_ver = 2
275-
$expected_minor_ver = 2
276-
$expected_patch_ver = 0
275+
$expected_minor_ver = 4
276+
$expected_patch_ver = 1
277277

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

@@ -1351,108 +1351,6 @@ Function Get-Discord-Players {
13511351
return $names
13521352
}
13531353

1354-
<#
1355-
.Synopsis
1356-
Given a boss name, look up the associated raid wing or fractal CM
1357-
1358-
.Description
1359-
Convert the boss name into the equivalent wing. Additionally, convert the
1360-
fractal bosses into their respective CMs as well.
1361-
1362-
.Parameter boss_name
1363-
The boss name to lookup
1364-
#>
1365-
Function Convert-Boss-To-Wing {
1366-
[CmdletBinding()]
1367-
param([Parameter(Mandatory)][string]$boss_name)
1368-
1369-
$wings = @{### Raids
1370-
# Wing 1
1371-
"Vale Guardian"=1;
1372-
"Gorseval"=1;
1373-
"Sabetha"=1;
1374-
# Wing 2
1375-
"Slothasor"=2;
1376-
"Bandit Trio"=2;
1377-
"Matthias"=2;
1378-
# Wing 3
1379-
"Keep Construct"=3;
1380-
"Twisted Castle"=3;
1381-
"Xera"=3;
1382-
# Wing 4
1383-
"Cairn"=4;
1384-
"Mursaat Overseer"=4;
1385-
"Samarog"=4;
1386-
"Deimos"=4;
1387-
# Wing 5
1388-
"Soulless Horror"=5;
1389-
"Dhuum"=5;
1390-
# Wing 6
1391-
"Conjured Amalgamate"=6;
1392-
"Largos Twins"=6;
1393-
"Qadim"=6;
1394-
# Wing 7
1395-
"Cardinal Adina"=7;
1396-
"Cardinal Sabir"=7;
1397-
"Qadim the Peerless"=7;
1398-
### Fractal names
1399-
# 99 CM
1400-
"MAMA (CM)"="99cm";
1401-
"Siax (CM)"="99cm";
1402-
"Ensolyss (CM)"="99cm";
1403-
# 100 CM
1404-
"Skorvald (CM)"="100cm";
1405-
"Artsariiv (CM)"="100cm";
1406-
"Arkk (CM)"="100cm";
1407-
# Aquatic Ruins
1408-
"Jellyfish Beast"="Aquatic Ruins";
1409-
# Mai Trin Boss
1410-
"Inquest Technician"="Mai Trin Boss";
1411-
"Mai Trin"="Mai Trin Boss";
1412-
# Chaos Isles
1413-
"Brazen Gladiator"="Chaos Isles";
1414-
# Cliffside
1415-
"Archdiviner"="Cliffside";
1416-
# Molten Boss
1417-
"Molten Effigy"="Molten Boss";
1418-
# Nightmare
1419-
"MAMA"="Nightmare";
1420-
"Siax the Unclean"="Nightmare";
1421-
"Ensolyss"="Nightmare";
1422-
# Shattered Observatory
1423-
"Skorvald the Shattered"="Shattered Observatory";
1424-
# Snowblind
1425-
"Svanir Shaman"="Snowblind";
1426-
# Solid Ocean
1427-
"The Jade Maw"="Solid Ocean";
1428-
# Swampland
1429-
"Mossman"="Swampland";
1430-
"Bloomhunger"="Swampland";
1431-
# Thaumanova Reactor
1432-
"Subject 6"="Thaumanova Reactor";
1433-
"Thaumanova Anomaly"="Thaumanova Reactor";
1434-
# Underground Facility
1435-
"Rabsovich"="Underground Facility";
1436-
"Rampaging Ice Elemental"="Underground Facility";
1437-
"Dredge Powersuit"="Underground Facility";
1438-
# Urban Battleground
1439-
"Seigemaster Dulfy"="Urban Battleground";
1440-
"Captain Ashym"="Urban Battleground";
1441-
# Volcanic
1442-
"Grawl Shaman"="Volcanic";
1443-
"Imbued Shaman"="Volcanic";
1444-
# Uncategorized
1445-
"Uncategorized Champions"="Uncategorized";
1446-
"Old Tom" ="Uncategorized";
1447-
"Raving Asura" ="Uncategorized";}
1448-
1449-
try {
1450-
return $wings[$boss_name];
1451-
} catch {
1452-
return $null
1453-
}
1454-
}
1455-
14561354
<#
14571355
.Synopsis
14581356
Get the abbreviated name for a boss, if there is one
@@ -1646,6 +1544,9 @@ Function Load-From-EVTC {
16461544

16471545
# Get whether the encounter is a Challenge Mote
16481546
$boss["is_cm"] = ($evtc_info.boss.is_cm -eq "YES")
1547+
1548+
# Get the encounter location
1549+
$boss["location"] = $evtc_info.boss.location
16491550
} else {
16501551
# Extract data from the old format
16511552
Load-From-Old-EVTC $config $extras_path
@@ -1666,9 +1567,6 @@ Function Load-From-EVTC {
16661567
# Get an abbreviated name, if there is one
16671568
$boss["shortname"] = Get-Abbreviated-Name $boss["name"]
16681569

1669-
# Get the wing for this encounter
1670-
$boss["wing"] = Convert-Boss-To-Wing $boss["name"]
1671-
16721570
# Get whether this encounter is a fracal
16731571
if (Is-Fractal-Encounter $boss["id"]) {
16741572
$boss["encounter_type"] = "fractal"
@@ -1860,8 +1758,8 @@ Function Format-And-Publish-Some {
18601758
}
18611759
}
18621760

1863-
# Determine which wings we did
1864-
$wings = $($some_bosses | ForEach-Object {$_.wing} | Get-Unique) -join ", "
1761+
# Determine which locations we have encounters for
1762+
$locations = $($some_bosses | ForEach-Object {$_.location} | Get-Unique) -join ", "
18651763

18661764
# Get the date based on the first boss in the list, since we assume all bosses were run on the same date
18671765
$date = Get-Date -Format "MMM d, yyyy" -Date $some_bosses[0].start_time
@@ -1876,11 +1774,11 @@ Function Format-And-Publish-Some {
18761774

18771775
# Print "Fractals" if this is a set of fractals, otherwise print "Wings", determined from the first encounter
18781776
if ($some_bosses[0].encounter_type -eq "fractal") {
1879-
$prefix = "Fractals: ${wings}"
1777+
$prefix = "Fractals: ${locations}"
18801778
} elseif ($some_bosses[0].encounter_type -eq "golem") {
18811779
$prefix = "Training Golems"
18821780
} else {
1883-
$prefix = "Wings : ${wings}"
1781+
$prefix = "Wings : ${locations}"
18841782
}
18851783

18861784
# Create the data object
@@ -2317,8 +2215,8 @@ Function Complete-UploadTo-DpsReport {
23172215
# SIG # Begin signature block
23182216
# MIIFhQYJKoZIhvcNAQcCoIIFdjCCBXICAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
23192217
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
2320-
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU+5UYBcZn+VlRBThpZG1vt6VZ
2321-
# ew2gggMYMIIDFDCCAfygAwIBAgIQLNFTiNzlwrtPtvlsLl9i3DANBgkqhkiG9w0B
2218+
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU/GhSVzu0l2h0n1d1K04F2dQx
2219+
# /O2gggMYMIIDFDCCAfygAwIBAgIQLNFTiNzlwrtPtvlsLl9i3DANBgkqhkiG9w0B
23222220
# AQsFADAiMSAwHgYDVQQDDBdMMEctMTAxMDg2IENvZGUgU2lnbmluZzAeFw0xOTA1
23232221
# MTEwNjIxMjNaFw0yMDA1MTEwNjQxMjNaMCIxIDAeBgNVBAMMF0wwRy0xMDEwODYg
23242222
# Q29kZSBTaWduaW5nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz8yX
@@ -2338,11 +2236,11 @@ Function Complete-UploadTo-DpsReport {
23382236
# HgYDVQQDDBdMMEctMTAxMDg2IENvZGUgU2lnbmluZwIQLNFTiNzlwrtPtvlsLl9i
23392237
# 3DAJBgUrDgMCGgUAoHgwGAYKKwYBBAGCNwIBDDEKMAigAoAAoQKAADAZBgkqhkiG
23402238
# 9w0BCQMxDAYKKwYBBAGCNwIBBDAcBgorBgEEAYI3AgELMQ4wDAYKKwYBBAGCNwIB
2341-
# FTAjBgkqhkiG9w0BCQQxFgQUUktKg8EmXtMtgAjVGpPPhpuswfcwDQYJKoZIhvcN
2342-
# AQEBBQAEggEAMLI0RK9zejI1IWC4RHBGkuDx0qWVqvuqfdEpmgBWqEbZy8O0DUiO
2343-
# DK5fyn7gQwBuXBDLVa+OXLjcIy+2AamhJmvAusxTc3OiIdTGBXxuYi6mZZUtWlG+
2344-
# 9rWk7pBzLw7j7iSzCqSHNvaKHVO+3IUq1Sg0j73YTUao0vS6gE31IpAsGad3uNHF
2345-
# 2cm6ybkWX/Ky80+wYx84EBLXvJa5ci/Z6qunDJjvCe+ISjQAEzsQEigaW2KHSip+
2346-
# u6oCT81TBTE0PaoOxjyok0J7kGM85WmL8LUF7xDvG3fwQ1AbeFmuIlvRM/VqmuS+
2347-
# oDEQBFXp1rtsQ4x3wYA0Fe+QpgkGII42rA==
2239+
# FTAjBgkqhkiG9w0BCQQxFgQU3qdKcVd70q59H/hVQmI5kRD53ZwwDQYJKoZIhvcN
2240+
# AQEBBQAEggEAHE+NfqKwzqlyKhAYhpX9nFFKlIBU13WifiBIsF1PT2bDpd1Tyicb
2241+
# czZomilvsRZHXpac7E+g1PGeR20QGIV87h7DROvDUF/llDnX4UbkeuDYLKunU30H
2242+
# EUCfGtAI9Og6Qd5NIwNfBfXw/lkSs+ugNr3b0JZY5NbyxuZkPSL/2P3M9XaxBbMX
2243+
# lFWNah06xw8ctccPFJrq3KhD0KnWc7FecaIRjAPqpWvvfORuRnEJ0nrofBL9LX2J
2244+
# pjpZpukZ6bH7vLQfQVF6XqqMAO3BREWEt7K8IIRVEna8abp9RkqaYrMJPmYMOWTO
2245+
# ocnJCJj5/iJ6jCquRurpxfPCHF37jXbMbg==
23482246
# SIG # End signature block

0 commit comments

Comments
 (0)