Skip to content

Commit

Permalink
fix: removed comments and add auto generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
CortinthusYu committed Oct 5, 2023
1 parent cb1247f commit 325e5e2
Show file tree
Hide file tree
Showing 10 changed files with 1,333 additions and 1,370 deletions.
25 changes: 1 addition & 24 deletions mona_core/src/character/characters/dendro/tighnari.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,30 +81,7 @@ impl<A: Attribute> ChangeAttribute<A> for TighnariEffect {
}
}

// #[derive(Copy, Clone, Eq, PartialEq, EnumString)]
// #[derive(FromPrimitive, EnumCountMacro)]
// pub enum TighnariDamageEnum {
// Normal1,
// Normal2,
// Normal3,
// Normal4,
// Charged1,
// Charged2,
// Charged3,
// Charged4,
// Plunging1,
// Plunging2,
// Plunging3,
// E1,
// Q1,
// Q2
// }
//
// impl Into<usize> for TighnariDamageEnum {
// fn into(self) -> usize {
// self as usize
// }
// }


damage_enum!(
TighnariDamageEnum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ impl TargetFunction for TighnariDefaultTargetFunction {
let dmg_q1 = Tighnari::damage::<SimpleDamageBuilder>(&&context, S::Q1, &CharacterSkillConfig::NoConfig, None);
let dmg_q2 = Tighnari::damage::<SimpleDamageBuilder>(&&context, S::Q2, &CharacterSkillConfig::NoConfig, None);
let dmg_e = Tighnari::damage::<SimpleDamageBuilder>(&&context, S::E1, &CharacterSkillConfig::NoConfig, None);

let dmg =
dmg_c3.spread.unwrap().expectation +
dmg_c4.spread.unwrap().expectation +
Expand Down Expand Up @@ -74,23 +73,8 @@ impl TargetFunctionMetaTrait for TighnariDefaultTargetFunction {
image: TargetFunctionMetaImage::Avatar
};

// #[cfg(not(target_family = "wasm"))]
// const CONFIG: Option<&'static [ItemConfig]> = Some(&[
// ItemConfig {
// name: "spread_rate",
// title: locale!(
// zh_cn: "蔓激化比例",
// en: "Spread Ratio",
// ),
// config: ItemConfigType::Float { min: 0.0, max: 1.0, default: 0.0 }
// }
// ]);

fn create(character: &CharacterCommonData, weapon: &WeaponCommonData, config: &TargetFunctionConfig) -> Box<dyn TargetFunction> {
// let spread_rate = match *config {
// TargetFunctionConfig::TighnariDefault { spread_rate } => spread_rate,
// _ => 0.0
// };
Box::new(TighnariDefaultTargetFunction)
}
}
Loading

0 comments on commit 325e5e2

Please sign in to comment.