Skip to content

Commit

Permalink
Update for Season of the Witch
Browse files Browse the repository at this point in the history
-   Added support for Season of the Witch
-   Added support for Relic mode
-   Fixed bug where Season of the Deep had wrong date (was one day late)
  • Loading branch information
mikechambers committed Sep 2, 2023
1 parent 89530f6 commit 492fe3c
Show file tree
Hide file tree
Showing 22 changed files with 76 additions and 57 deletions.
8 changes: 8 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# dcli Release Notes

## v0.99.2 September 2, 2023

- Added support for Season of the Witch
- Added support for Relic mode
- Fixed bug where Season of the Deep had wrong date (was one day late)

## v0.99.1 May 24, 2023

- Updating Mac build environment to macos-11.

## v0.99.0 May 24, 2023

- Added support for Season of the Deep (season_of_the_deep) moment.

## v0.98.0 March 3 2023
Expand Down
18 changes: 9 additions & 9 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/dcli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dcli"
#version
version = "0.99.1"
version = "0.99.2"
authors = ["Mike Chambers <[email protected]>"]
edition = "2018"
description = "Library for the dcli collection of command line tools for Destiny 2."
Expand Down
5 changes: 5 additions & 0 deletions src/dcli/src/enums/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ pub enum Mode {
ZoneControl = 89,
IronBannerRift = 90,
IronBannerZoneControl = 91,
Relic = 92,

//Added by dcli
RiftCompetitive = 700,
Expand Down Expand Up @@ -210,6 +211,7 @@ impl Mode {
89 => Ok(Mode::ZoneControl),
90 => Ok(Mode::IronBannerRift),
91 => Ok(Mode::IronBannerZoneControl),
92 => Ok(Mode::Relic),

700 => Ok(Mode::RiftCompetitive),
701 => Ok(Mode::ShowdownCompetitive),
Expand Down Expand Up @@ -288,6 +290,7 @@ impl Mode {
|| *self == Mode::RiftCompetitive
|| *self == Mode::ShowdownCompetitive
|| *self == Mode::SurvivalCompetitive
|| *self == Mode::Relic
}

pub fn is_private(&self) -> bool {
Expand Down Expand Up @@ -399,6 +402,7 @@ impl FromStr for Mode {
"rift_competitive" => Ok(Mode::RiftCompetitive),
"showdown_competitive" => Ok(Mode::ShowdownCompetitive),
"survival_competitive" => Ok(Mode::SurvivalCompetitive),
"relic" => Ok(Mode::Relic),

_ => Err("Unknown Mode type"),
}
Expand Down Expand Up @@ -495,6 +499,7 @@ impl fmt::Display for Mode {
Mode::RiftCompetitive => "Rift Competitive",
Mode::ShowdownCompetitive => "Showdown Competitive",
Mode::SurvivalCompetitive => "Survival Competitive",
Mode::Relic => "Relic",
};

write!(f, "{}", out)
Expand Down
14 changes: 10 additions & 4 deletions src/dcli/src/enums/moment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ pub enum Moment {
SeasonOfTheSeraph,
Lightfall,
SeasonOfDefiance,
SeasonOfTheDeep
SeasonOfTheDeep,
SeasonOfTheWitch,
}

impl Moment {
Expand Down Expand Up @@ -168,9 +169,12 @@ impl Moment {
Utc.with_ymd_and_hms(2023, 2, 28, 17, 0, 0).unwrap()
}


Moment::SeasonOfTheDeep => {
Utc.with_ymd_and_hms(2023, 5, 23, 17, 0, 0).unwrap()
Utc.with_ymd_and_hms(2023, 5, 22, 17, 0, 0).unwrap()
}

Moment::SeasonOfTheWitch => {
Utc.with_ymd_and_hms(2023, 8, 22, 17, 0, 0).unwrap()
}
}
}
Expand Down Expand Up @@ -224,6 +228,7 @@ impl FromStr for Moment {
"lightfall" => Ok(Moment::Lightfall),
"season_of_defiance" => Ok(Moment::SeasonOfDefiance),
"season_of_the_deep" => Ok(Moment::SeasonOfTheDeep),
"season_of_the_witch" => Ok(Moment::SeasonOfTheWitch),

_ => Err("Unknown Moment type"),
}
Expand Down Expand Up @@ -272,7 +277,8 @@ impl fmt::Display for Moment {
Moment::SeasonOfTheSeraph => "Season of the Seraph",
Moment::Lightfall => "Lightfall",
Moment::SeasonOfDefiance => "Season of Defiance",
Moment::SeasonOfTheDeep => "Season of the Deep"
Moment::SeasonOfTheDeep => "Season of the Deep",
Moment::SeasonOfTheWitch => "Season of the Witch",
};

write!(f, "{}", out)
Expand Down
2 changes: 1 addition & 1 deletion src/dclia/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dclia"
#version
version = "0.99.1"
version = "0.99.2"
authors = ["Mike Chambers <[email protected]>"]
description = "Command line tool for retrieving information on current activity for specified player character."
homepage = "https://www.mikechambers.com"
Expand Down
2 changes: 1 addition & 1 deletion src/dcliad/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dcliad"
#version
version = "0.99.1"
version = "0.99.2"
authors = ["Mike Chambers <[email protected]>"]
edition = "2018"
description = "Command line tool for viewing Destiny 2 activity details."
Expand Down
8 changes: 4 additions & 4 deletions src/dcliad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ OPTIONS:
Addition values available are crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles,
private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift, zone_control, iron_banner_zone_control
scorched_team, breakthrough, clash_quickplay, trials_of_the_nine [default: all_pvp]
scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic [default: all_pvp]
-n, --name <name>
Bungie name for player
Expand All @@ -77,9 +77,9 @@ OPTIONS:
The number of weapons to display details for [default: 5]
```

| ARGUMENT | OPTIONS |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift, zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine |
| ARGUMENT | OPTIONS |
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift, zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic |

Manifest can be downloaded and synced with from [dclim](https://github.com/mikechambers/dcli/tree/main/src/dclim).

Expand Down
2 changes: 1 addition & 1 deletion src/dcliad/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ struct Opt {
/// private_survival, private_rumble, showdown_competitive, survival_competitive,
/// rift_competitive, showdown, lockdown, iron_banner_rift,
/// zone_control, iron_banner_zone_control, rift,
/// scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine
/// scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic
#[structopt(long = "mode", short = "M",
parse(try_from_str=parse_and_validate_mode), default_value = "all_pvp")]
mode: Mode,
Expand Down
2 changes: 1 addition & 1 deletion src/dcliah/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "dcliah"
#version
version = "0.99.1"
version = "0.99.2"
authors = ["Mike Chambers <[email protected]>"]
edition = "2018"
description = "Command line tool for viewing Destiny 2 activity history."
Expand Down
14 changes: 7 additions & 7 deletions src/dcliah/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ OPTIONS:
rumble, pvp_competitive, quickplay and trials_of_osiris.
Addition values available are crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles,
private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift,zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine [default: all_pvp]
private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift,zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic [default: all_pvp]
-T, --moment <moment>
Start moment from which to pull activities from
Expand Down Expand Up @@ -126,12 +126,12 @@ OPTIONS:
type, wins_percent [default: kills]
```

| ARGUMENT | OPTIONS |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift, zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine |
| --moment | daily (last daily reset), weekend (last weekend reset on Friday), weekly (last weekly reset on Tuesday), day (last day), week (last week), month (last month), all_time, custom, launch, curse_of_osiris, warmind, season_of_the_outlaw, season_of_the_forge, season_of_the_drifter, season_of_opulence, season_of_the_undying, season_of_dawn, season_of_the_worthy, season_of_arrivals, season_of_the_hunt, season_of_the_chosen, season_of_the_splicer, season_of_the_lost, season_of_the_risen, witch_queen, season_of_the_haunted, season_of_plunder, season_of_the_seraph, lightfall, season_of_defiance |
| --end-moment | daily (last daily reset), weekend (last weekend reset on Friday), weekly (last weekly reset on Tuesday), day (last day), week (last week), month (last month), all_time, custom, launch, curse_of_osiris, warmind, season_of_the_outlaw, season_of_the_forge, season_of_the_drifter, season_of_opulence, season_of_the_undying, season_of_dawn, season_of_the_worthy, season_of_arrivals, season_of_the_hunt, season_of_the_chosen, season_of_the_splicer, season_of_the_lost, season_of_the_risen, witch_queen, season_of_the_haunted, season_of_plunder, season_of_the_seraph, lightfall, season_of_defiance |
| --weapon-sort | name, kills (default), games, kills_per_game_kills kills_per_game_total, precision_total, precision_percent, type |
| ARGUMENT | OPTIONS |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| --mode | all_pvp (default), control, clash, elimination, mayhem, iron_banner, all_private, rumble, pvp_competitive, quickplay and trials_of_osiris, crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles private_clash, private_control, private_survival, private_rumble, showdown_competitive, survival_competitive, rift_competitive, showdown, lockdown, scorched, rift, iron_banner_rift, zone_control, iron_banner_zone_control, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine,relic |
| --moment | daily (last daily reset), weekend (last weekend reset on Friday), weekly (last weekly reset on Tuesday), day (last day), week (last week), month (last month), all_time, custom, launch, curse_of_osiris, warmind, season_of_the_outlaw, season_of_the_forge, season_of_the_drifter, season_of_opulence, season_of_the_undying, season_of_dawn, season_of_the_worthy, season_of_arrivals, season_of_the_hunt, season_of_the_chosen, season_of_the_splicer, season_of_the_lost, season_of_the_risen, witch_queen, season_of_the_haunted, season_of_plunder, season_of_the_seraph, lightfall, season_of_defiance, season_of_the_deep, season_of_the_witch |
| --end-moment | daily (last daily reset), weekend (last weekend reset on Friday), weekly (last weekly reset on Tuesday), day (last day), week (last week), month (last month), all_time, custom, launch, curse_of_osiris, warmind, season_of_the_outlaw, season_of_the_forge, season_of_the_drifter, season_of_opulence, season_of_the_undying, season_of_dawn, season_of_the_worthy, season_of_arrivals, season_of_the_hunt, season_of_the_chosen, season_of_the_splicer, season_of_the_lost, season_of_the_risen, witch_queen, season_of_the_haunted, season_of_plunder, season_of_the_seraph, lightfall, season_of_defiance, season_of_the_deep, season_of_the_witch |
| --weapon-sort | name, kills (default), games, kills_per_game_kills kills_per_game_total, precision_total, precision_percent, type |

Manifest can be downloaded and synced with from [dclim](https://github.com/mikechambers/dcli/tree/main/src/dclim).

Expand Down
Loading

0 comments on commit 492fe3c

Please sign in to comment.