Skip to content

Commit

Permalink
Add cryptodrege to update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaynardMiner committed Oct 3, 2019
1 parent fbe12ad commit a6650e7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/powershell/startup/remoteagent.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function Global:start-update {
$PreviousVersions += "SWARM.2.7.2"
$PreviousVersions += "SWARM.2.7.3"
$PreviousVersions += "SWARM.2.7.4"
$PreviousVersions += "SWARM.2.7.5"

$PreviousVersions | ForEach-Object {
$PreviousVersions += "$($_).linux"
Expand Down Expand Up @@ -192,6 +193,17 @@ function Global:start-update {
}
}

if ($ChangeFile -eq "cryptodredge.json") {
$Data | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | foreach {
if ($_ -ne "name") {
$Data.$_.commands | Add-Member "x16rv2" "" -ErrorAction SilentlyContinue
$Data.$_.difficulty | Add-Member "x16rv2" "" -ErrorAction SilentlyContinue
$Data.$_.naming | Add-Member "x16rv2" "x16rv2" -ErrorAction SilentlyContinue
$Data.$_.fee | Add-Member "x16rv2" 1 -ErrorAction SilentlyContinue
}
}
}


if ($ChangeFile -eq "z-enemy.json") {
$Data | Get-Member -MemberType NoteProperty | Select -ExpandProperty Name | foreach {
Expand Down

0 comments on commit a6650e7

Please sign in to comment.