Skip to content

Commit abf6b13

Browse files
committed
Adding support for Iron Banner Fortress
1 parent c2e1af6 commit abf6b13

File tree

22 files changed

+53
-36
lines changed

22 files changed

+53
-36
lines changed

RELEASE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# dcli Release Notes
22

3+
## v0.99.7 January 26, 2024
4+
5+
- Added support for Iron Banner Fortress (iron_banner_fortress)
6+
37
## v0.99.6 December 5,2023
48

59
- Added support for Iron Banner Tribute (iron_banner_tribute)

src/Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dcli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dcli"
33
#version
4-
version = "0.99.6"
4+
version = "0.99.7"
55
authors = ["Mike Chambers <mikechambers@gmail.com>"]
66
edition = "2018"
77
description = "Library for the dcli collection of command line tools for Destiny 2."

src/dcli/src/activitystoreinterface.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use crate::utils::{
3333
CHECKMATE_CONTROL_ACTIVITY_HASHES, CHECKMATE_COUNTDOWN_ACTIVITY_HASH,
3434
CHECKMATE_RUMBLE_ACTIVITY_HASH, CHECKMATE_SURVIVAL_ACTIVITY_HASH,
3535
COMPETITIVE_PVP_ACTIVITY_HASH, FREELANCE_COMPETITIVE_PVP_ACTIVITY_HASH,
36-
IRON_BANNER_TRIBUTE_ACTIVITY_HASH,
36+
IRON_BANNER_FORTRESS_ACTIVITY_HASH, IRON_BANNER_TRIBUTE_ACTIVITY_HASH,
3737
};
3838
use crate::{
3939
crucible::{CrucibleActivity, Member, PlayerName, Team},
@@ -996,6 +996,13 @@ impl ActivityStoreInterface {
996996
self.remove_from_modes(activity, Mode::IronBannerSupremacy);
997997
}
998998

999+
if activity.activity_details.director_activity_hash
1000+
== IRON_BANNER_FORTRESS_ACTIVITY_HASH
1001+
{
1002+
self.set_mode(activity, Mode::IronBannerFortress);
1003+
self.remove_from_modes(activity, Mode::IronBannerZoneControl);
1004+
}
1005+
9991006
//add support for checkmate (adding modes)
10001007

10011008
if CHECKMATE_CONTROL_ACTIVITY_HASHES

src/dcli/src/enums/mode.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub enum Mode {
132132
CheckmateCountdown = 715,
133133

134134
IronBannerTribute = 800,
135+
IronBannerFortress = 801,
135136
}
136137

137138
impl Mode {
@@ -235,6 +236,7 @@ impl Mode {
235236
714 => Ok(Mode::CheckmateClash),
236237
715 => Ok(Mode::CheckmateCountdown),
237238
800 => Ok(Mode::IronBannerTribute),
239+
801 => Ok(Mode::IronBannerFortress),
238240

239241
_ => Err(Error::UnknownEnumValue),
240242
}
@@ -318,6 +320,7 @@ impl Mode {
318320
|| *self == Mode::CheckmateClash
319321
|| *self == Mode::CheckmateCountdown
320322
|| *self == Mode::IronBannerTribute
323+
|| *self == Mode::IronBannerFortress
321324
}
322325

323326
pub fn is_private(&self) -> bool {
@@ -439,6 +442,7 @@ impl FromStr for Mode {
439442
"checkmate_clash" => Ok(Mode::CheckmateClash),
440443
"checkmate_countdown" => Ok(Mode::CheckmateCountdown),
441444
"iron_banner_tribute" => Ok(Mode::IronBannerTribute),
445+
"iron_banner_fortress" => Ok(Mode::IronBannerFortress),
442446

443447
_ => Err("Unknown Mode type"),
444448
}
@@ -545,6 +549,7 @@ impl fmt::Display for Mode {
545549
Mode::CheckmateClash => "Checkmate Clash",
546550
Mode::CheckmateCountdown => "Checkmate Countdown",
547551
Mode::IronBannerTribute => "Iron Banner Tribute",
552+
Mode::IronBannerFortress => "Iron Banner Fortress",
548553
};
549554

550555
write!(f, "{}", out)

src/dcli/src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pub const CHECKMATE_COUNTDOWN_ACTIVITY_HASH: u32 = 2344293485;
5656
pub const CHECKMATE_RUMBLE_ACTIVITY_HASH: u32 = 2461220411;
5757

5858
pub const IRON_BANNER_TRIBUTE_ACTIVITY_HASH: u32 = 2955009825;
59+
pub const IRON_BANNER_FORTRESS_ACTIVITY_HASH: u32 = 2888503916;
5960

6061
pub const CHECKMATE_SURVIVAL_ACTIVITY_HASH: u32 = 3876264582;
6162

src/dclia/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dclia"
33
#version
4-
version = "0.99.6"
4+
version = "0.99.7"
55
authors = ["Mike Chambers <mikechambers@gmail.com>"]
66
description = "Command line tool for retrieving information on current activity for specified player character."
77
homepage = "https://www.mikechambers.com"

src/dcliad/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dcliad"
33
#version
4-
version = "0.99.6"
4+
version = "0.99.7"
55
authors = ["Mike Chambers <mikechambers@gmail.com>"]
66
edition = "2018"
77
description = "Command line tool for viewing Destiny 2 activity details."

src/dcliad/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ OPTIONS:
6767
6868
Addition values available are crimsom_doubles, supremacy, survival, countdown, all_doubles, doubles,
6969
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
70-
scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute [default: all_pvp]
70+
scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute, iron_banner_fortress [default: all_pvp]
7171
-n, --name <name>
7272
Bungie name for player
7373
@@ -77,9 +77,9 @@ OPTIONS:
7777
The number of weapons to display details for [default: 5]
7878
```
7979

80-
| ARGUMENT | OPTIONS |
81-
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
82-
| --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, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute |
80+
| ARGUMENT | OPTIONS |
81+
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
82+
| --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, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute, iron_banner_fortress |
8383

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

src/dcliad/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ struct Opt {
508508
/// private_survival, private_rumble, showdown_competitive, survival_competitive,
509509
/// rift_competitive, showdown, lockdown, iron_banner_rift,
510510
/// zone_control, iron_banner_zone_control, rift,
511-
/// scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute
511+
/// scorched, scorched_team, breakthrough, clash_quickplay, trials_of_the_nine, relic, countdown_competitive, checkmate_all, checkmate_control, checkmate_rumble, checkmate_survival, checkmate_rumble, checkmate_clash, checkmate_countdown, iron_banner_tribute, iron_banner_fortress
512512
#[structopt(long = "mode", short = "M",
513513
parse(try_from_str=parse_and_validate_mode), default_value = "all_pvp")]
514514
mode: Mode,

0 commit comments

Comments
 (0)