Skip to content

Commit

Permalink
chore(cleanup): applied rename_all = lowercase instead of manually re…
Browse files Browse the repository at this point in the history
…naming every variant
  • Loading branch information
Mettwasser committed Oct 21, 2024
1 parent f4bef70 commit 9c49e92
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/worldstate/models/items/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,31 @@ pub mod weapon;

/// Represents a polarity
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq, strum::Display)]
#[serde(rename_all = "lowercase")]
pub enum Polarity {
/// V (Damage, Powers) - Commonly dropped by Grineer
#[serde(rename = "madurai")]
Madurai,

/// D (Defensive, Health, Armor) - Dropped by all factions
#[serde(rename = "vazarin")]
Vazarin,

/// Dash/Bar (Utility, Misc.) - Commonly dropped by Corpus
#[serde(rename = "naramon")]
Naramon,

/// Mainly used for Warframe Augment Mods, in addition to some Melee Stance Mods
#[serde(rename = "zenurik")]
Zenurik,

/// Used for certain Melee Stance Mods
#[serde(rename = "unairu")]
Unairu,

/// Y (Companion Abilities) - Dropped by all factions
#[serde(rename = "penjaga")]
Penjaga,

/// U (Anti-Sentient Mods) - Obtained upon completion of The Sacrifice
#[serde(rename = "umbra")]
Umbra,

/// O (Universal polarity) - Can be only applied by Aura- and Stance-Forma on their slots
/// respectively
#[serde(rename = "any")]
Any,
}

Expand Down

0 comments on commit 9c49e92

Please sign in to comment.